Examples of PerlUnitContext


Examples of org.epic.perleditor.templates.perl.PerlUnitContext

    } catch (BadLocationException e) {e.printStackTrace();}
  }

  ((CompilationUnitContextType) fContextType).setContextParameters(document, completionPosition, selection.y);//mpilationUnit);

    PerlUnitContext context= (PerlUnitContext) fContextType.createContext();
    int start= context.getStart();
    int end= context.getEnd();
    IRegion region= new Region(start, end - start);

//    Template[] templates= Templates.getInstance().getTemplates();
  String subroutine = null;
    for (int i= 0; i != identifiers.length; i++) {
      subroutine = (String) identifiers[i];
       
      if (context.canEvaluate(subroutine, false)) {
        fProposals.add(new VariableProposal(subroutine, context, region, viewer, PerlPluginImages.get(PerlPluginImages.IMG_ICON_VARIABLE), PerlPluginImages.get(PerlPluginImages.IMG_ICON_VARIABLE)));
    }
  }
  }
View Full Code Here

Examples of org.epic.perleditor.templates.perl.PerlUnitContext

      } catch (BadLocationException e) {e.printStackTrace();}
    }

    ((CompilationUnitContextType) fContextType).setContextParameters(document, completionPosition, selection.y);//mpilationUnit);

    PerlUnitContext context= (PerlUnitContext) fContextType.createContext();
    int start= context.getStart();
    int end= context.getEnd();
    IRegion region= new Region(start, end - start);

//    Template[] templates= Templates.getInstance().getTemplates();
    String subroutine = null;
    for (int i= 0; i != identifiers.length; i++) {
      subroutine = (String) identifiers[i];
       
      if (context.canEvaluate(subroutine, true)) {
        fProposals.add(new SubroutineProposal(subroutine, context, region, viewer, PerlPluginImages.get(PerlPluginImages.IMG_ICON_SUBROUTINE), PerlPluginImages.get(PerlPluginImages.IMG_ICON_SUBROUTINE)));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.