Package org.eclipse.dltk.internal.core

Examples of org.eclipse.dltk.internal.core.ExternalProjectFragment


        IProjectFragment[] allProjectFragments;
        allProjectFragments = scriptProject.getAllProjectFragments();
        for (IProjectFragment fragment : allProjectFragments) {
          if (fragment instanceof ExternalProjectFragment) {
            ExternalProjectFragment external = (ExternalProjectFragment) fragment;
            if (external.getBuildpathEntry().equals(entry)) {
              return super.getChildren(external);
            }
          }
        }
      } catch (ModelException e) {
View Full Code Here


   * {@inheritDoc}
   */
  public void run() {
    Object object = fSelectedElements.get(0);
    if (object instanceof ExternalProjectFragment) {
      ExternalProjectFragment projFragment = (ExternalProjectFragment) object;
      IScriptProject scriptProject = projFragment.getScriptProject();
      try {
        BuildPathUtils.removeEntryFromBuildPath(scriptProject,
            projFragment.getBuildpathEntry());
      } catch (ModelException e) {
        Logger.logException("Could not remove buildPathEntry", e); //$NON-NLS-1$
      }
    } else if (object instanceof IProjectFragment) {
      IProjectFragment root = (IProjectFragment) object;
View Full Code Here

   */
  @Override
  public String getText(Object element) {

    if (element instanceof ExternalProjectFragment) {
      ExternalProjectFragment fragment = (ExternalProjectFragment) element;
      String name = LanguageModelInitializer
          .getPathName(EnvironmentPathUtils.getLocalPath(fragment
              .getPath()));
      if (name != null) {
        return name;
      }
      return fragment.toStringWithAncestors();
    }
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=295256
    if (element instanceof IProjectFragment) {
      IProjectFragment fragment = (IProjectFragment) element;
      return fragment.getElementName();
    }
    // end
    if (element instanceof IncludePath) {
      Object entry = ((IncludePath) element).getEntry();

View Full Code Here

  }

  static public boolean isExternalElement(IModelElement element) {
    element = element.getAncestor(IModelElement.PROJECT_FRAGMENT);
    if (element instanceof ExternalProjectFragment) {
      ExternalProjectFragment fragment = (ExternalProjectFragment) element;
      if (fragment.isExternal()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.core.ExternalProjectFragment

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.