Package org.eclipse.dltk.core

Examples of org.eclipse.dltk.core.IDLTKLanguageToolkit


    // }
    return false;
  }

  public static boolean isFixable(String pkgName, IScriptProject scriptProject) {
    IDLTKLanguageToolkit toolkit = null;
    toolkit = DLTKLanguageManager.getLanguageToolkit(scriptProject);
    if (toolkit != null && toolkit.getNatureId().equals(RutaNature.NATURE_ID)) {
      IInterpreterInstall install = null;
      try {
        install = ScriptRuntime.getInterpreterInstall(scriptProject);
      } catch (CoreException e) {
        if (DLTKCore.DEBUG) {
View Full Code Here


 
  public DeeSearchEngine_Test() {
  }
 
  protected SearchPattern createFocusPattern(IModelElement element, int limitTo) {
    IDLTKLanguageToolkit toolkit = DeeLanguageToolkit.getDefault();
    return SearchPattern.createPattern(element, limitTo, SearchPattern.R_EXACT_MATCH, toolkit);
  }
View Full Code Here

    return createStringPattern(patternStr, searchFor, limitTo, matchRule);
  }
 
  @SuppressWarnings("restriction")
  protected SearchPattern createStringPattern(String patternStr, int searchFor, int limitTo, int matchRule) {
    IDLTKLanguageToolkit toolkit = DeeLanguageToolkit.getDefault();
    SearchPattern pattern = SearchPattern.createPattern(patternStr, searchFor, limitTo, matchRule, toolkit);
    if(pattern instanceof FieldPattern) {
      FieldPattern fieldPattern = (FieldPattern) pattern;
      // we may have to work arround a DLTK bug here
      // -- we are still going to test this codepath, even though it's not accessible because of DLTK bug
View Full Code Here

        String nature = getNatureFromProject(project);
        return PHPNature.ID.equals(nature);
    }
   
    private static String getNatureFromProject(IScriptProject project) {
        IDLTKLanguageToolkit languageToolkit = DLTKLanguageManager
                .getLanguageToolkit(project);
        if (languageToolkit != null) {
            return languageToolkit.getNatureId();
        }
        return null;
    }
View Full Code Here

//    }
    return false;
  }

  public static boolean isFixable(String pkgName, IScriptProject scriptProject) {
    IDLTKLanguageToolkit toolkit = null;
    toolkit = DLTKLanguageManager.getLanguageToolkit(scriptProject);
    if (toolkit != null && toolkit.getNatureId().equals(RutaNature.NATURE_ID)) {
      IInterpreterInstall install = null;
      try {
        install = ScriptRuntime.getInterpreterInstall(scriptProject);
      } catch (CoreException e) {
        if (DLTKCore.DEBUG) {
View Full Code Here

    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    IFile f = root.getFileForLocation(path);
    if (f != null) {
      return f;
    }
    IDLTKLanguageToolkit toolkit = PHPLanguageToolkit.getDefault();
    PHPConsoleSourceModuleLookup lookup = new PHPConsoleSourceModuleLookup(
        toolkit);
    return lookup.findSourceModuleByLocalPath(path);
  }
View Full Code Here

    return methodNode;
  }

  public String getLangNature() {
    if (sourceModule != null) {
      IDLTKLanguageToolkit languageToolkit = DLTKLanguageManager
          .getLanguageToolkit(sourceModule);
      if (languageToolkit != null) {
        return languageToolkit.getNatureId();
      }
    }
    return null;
  }
View Full Code Here

    String dependsString = commandLine.getValue(Options.DEPENDS_OPTION);

    IScriptProject scriptProject = DLTKCore.create(project);

    if (!project.getFile(BUILDPATH).exists()) {
      IDLTKLanguageToolkit toolkit = getLanguageToolkit(getNatureId());
      BuildpathDetector detector = new BuildpathDetector(project, toolkit);
      detector.detectBuildpath(null);
      IBuildpathEntry[] detected = detector.getBuildpath();

      // remove any entries the detector may have added that are not valid for
View Full Code Here

        commandLine.getValue(Options.SCOPE_OPTION), type, project);

    SearchEngine engine = new SearchEngine();
    //IProject[] projects = DLTKSearchScopeFactory.getInstance().getProjects(scope);

    IDLTKLanguageToolkit toolkit = scope.getLanguageToolkit();

    SearchPattern searchPattern = null;

    // element search
    if(file != null && offset != null && length != null){
View Full Code Here

    throws Exception
  {
    boolean includeInterpreterEnvironment = false;
    DLTKSearchScopeFactory factory = DLTKSearchScopeFactory.getInstance();

    IDLTKLanguageToolkit toolkit = null;
    ProjectManager manager = ProjectManagement.getProjectManager(getNature());
    if(manager instanceof DltkProjectManager){
      DltkProjectManager dltkManager = (DltkProjectManager)manager;
      toolkit = dltkManager.getLanguageToolkit(dltkManager.getNatureId());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.IDLTKLanguageToolkit

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.