Package com.gstaykov.pscoder.editor.completion

Examples of com.gstaykov.pscoder.editor.completion.CompletionDictionary


  public static FileData getFileDataForActiveFile() {
    IResource activeFile = getActiveFile();
    String projectName = activeFile.getProject().getName();
   
    try {
      CompletionDictionary projectDictionary = CompletionDictionary.getInstance(projectName);
      return projectDictionary.getFileData(activeFile.getLocation().toFile().getAbsolutePath());
     
      } catch (CoreException ce) {
          Logger.getInstance().logError("Error while trying to get completion dictionary object: \n", ce);
      }
View Full Code Here


  public String[] getInheritedMembers() {
    FileData activeFileData = Util.getFileDataForActiveFile();
    String[] sourcedFiles = activeFileData.getSourcedFiles();
   
    try {
      CompletionDictionary dict = CompletionDictionary.getInstance(Util.getActiveProject().getName());
     
      Vector<String> membersList = new Vector<String>();
     
      if (sourcedFiles != null && sourcedFiles.length > 0) {
        for (String sourcedFile : sourcedFiles) {
          System.out.println("Processing " + dict.getFullFilenameForEnding(sourcedFile));
          FileData sourcedFileData = dict.getFileData(dict.getFullFilenameForEnding(sourcedFile));
 
          membersList.addAll(Arrays.asList(sourcedFileData.getMembers()));
        }
      }
     
View Full Code Here

        }
       
        String functionName = getWord(Util.getActiveDocument(event).get(), tselection.getOffset());
        ITextEditor targetEditor = null;
        try {
            CompletionDictionary dict = CompletionDictionary.getInstance(Util.getActiveFile().getProject().getName());
            String fileName = dict.getFileData(Util.getActiveFile().getLocation().toFile().getAbsolutePath()).getFunctionOwner(functionName, dict);
            if (fileName == null)
                return null;
            targetEditor = (ITextEditor)openEditor(fileName);
        } catch (CoreException ce) {
            logger.logError("Error while trying to get Completion dictionary object", ce);
View Full Code Here

TOP

Related Classes of com.gstaykov.pscoder.editor.completion.CompletionDictionary

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.