Package net.sourceforge.squirrel_sql.fw.completion

Examples of net.sourceforge.squirrel_sql.fw.completion.CompletionCandidates


      for (int i = 0; i < candidates.length; i++)
      {
         candidates[i].setMaxCandidateNameLen(maxNameLen);
      }

      return new CompletionCandidates(candidates);
   }
View Full Code Here


         {
            ret.add(simpleInfo);
         }
      }

      return new CompletionCandidates(ret.toArray(new CompletionInfo[ret.size()]), replacementStart, stringToReplace);


   }
View Full Code Here

  {
      if(KeyEvent.VK_SPACE == keyCode && modifiers == KeyEvent.CTRL_MASK)
      {
         // Code Completion has been done within Code Completion. Now just replace what all candidates have in common.

         CompletionCandidates completionCandidates = _model.getCompletionCandidates(_cc.getTextTillCarret());

         _hqlEntryPanel.setSelectionStart(replaceBegin);
         _hqlEntryPanel.setSelectionEnd(_hqlEntryPanel.getCaretPosition());
         _hqlEntryPanel.replaceSelection(completionCandidates.getAllCandidatesPrefix(true));

         SwingUtilities.invokeLater(new Runnable()
         {
            public void run()
            {
View Full Code Here

      {
         CodeCompletionInfo[] functionResults = _completionFunctions[i].getFunctionResults(functionSting);

         if(null != functionResults)
         {
            return new CompletionCandidates(functionResults, lastIndexOfHash, functionSting);
         }
      }
      return null;
   }
View Full Code Here

      if(KeyEvent.VK_SPACE == keyCode && modifiers == KeyEvent.CTRL_MASK)
      {
         // Code Completion has been done within Code Completion.
         // and relaunch completion popup. 

         CompletionCandidates completionCandidates = _model.getCompletionCandidates(_cc.getTextTillCarret());

         _sqlEntryPanel.setSelectionStart(replaceBegin);
         _sqlEntryPanel.setSelectionEnd(_sqlEntryPanel.getCaretPosition());
         _sqlEntryPanel.replaceSelection(completionCandidates.getAllCandidatesPrefix(false));

         SwingUtilities.invokeLater(new Runnable()
         {
            public void run()
            {
View Full Code Here

         // This is here because addCompletionsAtListBegin() won't work when
         // schema info is still loading
         _functionsAdded = _standardCompletorModel.getCodeCompletionInfoCollection().addCompletionsAtListBegin(null, null, _completionFunctionsModel.getCompletions());
      }

      CompletionCandidates functionResult = _completionFunctionsModel.getCompletionCandidates(textTillCarret);

      if(null == functionResult)
      {
         return _standardCompletorModel.getCompletionCandidates(textTillCarret);
      }
View Full Code Here

         }
      }

      CodeCompletionInfo[] ccis = ret.toArray(new CodeCompletionInfo[ret.size()]);

      return new CompletionCandidates(ccis, parser.getReplacementStart(), parser.getStringToReplace());
   }
View Full Code Here

      for (int i = 0; i < candidates.length; i++)
      {
         candidates[i].setMaxCandidateSelectionStringName(maxNameLen);
      }

      return new CompletionCandidates(candidates);
   }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.completion.CompletionCandidates

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.