Examples of IJavaModel


Examples of org.eclipse.jdt.core.IJavaModel

  public static IJavaProject[] getGwtProjects() {

    IJavaProject[] gwtProjects = new IJavaProject[0];
    try {
      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
      IJavaModel javaModel = JavaCore.create(root);
      gwtProjects = filterGwtProjects(javaModel.getJavaProjects());
    } catch (JavaModelException e) {
      Activator.logException(e);
    }
    return gwtProjects;
  }
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

  public static IJavaProject[] getGwtProjects() {
   
    IJavaProject[] gwtProjects = new IJavaProject[0];
    try {
      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
      IJavaModel javaModel = JavaCore.create(root);
      gwtProjects = filterGwtProjects(javaModel.getJavaProjects());
    } catch (JavaModelException e) {
      Activator.logException(e);
    }
    return gwtProjects;
  }
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

          }
        }

      }
    }
    IJavaModel create = JavaCore.create(ResourcesPlugin.getWorkspace()
        .getRoot());
    try {
      IJavaProject[] javaProjects = create.getJavaProjects();
      HashSet<IJavaProject> p = new HashSet<IJavaProject>();
      for (IJavaProject pa : javaProjects) {
        if (pa.getProject().getNature(
            Constants.GOOGLE_APP_ENGINE_NATURE) != null) {
          p.add(pa);
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

//    IDialogSettings dialogSettings= JavaPlugin.getDefault().getDialogSettings();
//    boolean doFilter= !dialogSettings.getBoolean(DIALOG_SETTINGS_SHOW_ALL) && !fProjectsWithSpecifics.isEmpty();
//    //checkbox.setSelection(doFilter);
    updateFilter(true);

    IJavaModel input= JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());
    fTableViewer.setInput(input);

    doSelectionChanged(new Object[0]);
    Dialog.applyDialogFont(composite);
    return composite;
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

        public void run() {
          viewer.refresh();
        }
      });
     
      IJavaModel model = JavaModelManager.getJavaModelManager().getJavaModel();
      IJavaProject[] projects;
     
      try {
        projects = model.getJavaProjects();
      } catch (JavaModelException e) {
        log(e.getMessage(), e);
        return Status.CANCEL_STATUS;
      }
     
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

                            viewer.refresh();
                        }
                    }
                });
                statisticsManager.clearMatches();
                IJavaModel model = JavaModelManager.getJavaModelManager().getJavaModel();
                IJavaProject[] projects;
                try {
                    projects = model.getJavaProjects();
                } catch (JavaModelException e) {
                    log(e.getMessage(), e);
                    return Status.CANCEL_STATUS;
                }
                Collection/* <SinkDescription> */sinks = XMLConfig.readSinks("sinks.xml");
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

    return false;
  }

  public static IFolder getWebInf(ILaunchConfiguration configuration){
    IJavaModel javaModel = JavaCore.create(ResourcesPlugin.getWorkspace()
        .getRoot());
    String projectName = null;
    String webAppDirName = null;
    try {
      projectName = configuration.getAttribute(
          IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
      webAppDirName = configuration.getAttribute(Plugin.ATTR_WEBAPPDIR,
          "");
    } catch (CoreException e) {
      Plugin.logError(e);
    }

    if (projectName == null || projectName.trim().equals("")
        || webAppDirName == null || webAppDirName.trim().equals("")) {
      return null;
    }

    IJavaProject project = javaModel.getJavaProject(projectName);
    if (project == null) {
      return null;
    }

    // this should be fine since the plugin checks whether WEB-INF exists
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

    return false;
  }

  public static IFolder getWebInf(ILaunchConfiguration configuration){
    IJavaModel javaModel = JavaCore.create(ResourcesPlugin.getWorkspace()
        .getRoot());
    String projectName = null;
    String webAppDirName = null;
    try {
      projectName = configuration.getAttribute(
          IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
      webAppDirName = configuration.getAttribute(Plugin.ATTR_WEBAPPDIR,
          "");
    } catch (CoreException e) {
      Plugin.logError(e);
    }

    if (projectName == null || projectName.trim().equals("")
        || webAppDirName == null || webAppDirName.trim().equals("")) {
      return null;
    }

    IJavaProject project = javaModel.getJavaProject(projectName);
    if (project == null) {
      return null;
    }

    // this should be fine since the plugin checks whether WEB-INF exists
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

   
    public static IJavaProject getJavaProject(String projectName) {
        if (projectName.length() < 1) {
            return null;
        }
        IJavaModel javaModel = JavaCore.create(
                MuClipsePlugin.getWorkspaceRoot());
        return javaModel.getJavaProject(projectName);     
    }
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel

     */
    public static IJavaProject getJavaProject(String projectName) {
        if (projectName.length() < 1) {
            return null;
        }
        IJavaModel javaModel = JavaCore.create(
                MuClipsePlugin.getWorkspaceRoot());
        return javaModel.getJavaProject(projectName);     
    }
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.