Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.QualifiedName


  }

  public static String getImportByDefault(IProject project) {
    String byDefault;
    try {
      byDefault = project.getPersistentProperty(new QualifiedName("", BY_DEFAULT_PROPERTY_KEY));
    } catch (CoreException e) {
      byDefault = "";
    }
    if (null == byDefault)
      byDefault = "";
View Full Code Here


    return byDefault;
  }

  public static void setImportByDefault(IProject project, String byDefault) {
    try {
      project.setPersistentProperty(new QualifiedName("", BY_DEFAULT_PROPERTY_KEY), byDefault);
    } catch (CoreException e) {
      throw new InternalErrorCDE("unhandled exception", e);
    }
  }
View Full Code Here

  }

  public static String getAddToFlow(IProject project) {
    String byDefault;
    try {
      byDefault = project.getPersistentProperty(new QualifiedName("", ADD_TO_FLOW_PROPERTY_KEY));
    } catch (CoreException e) {
      byDefault = "";
    }
    if (null == byDefault)
      byDefault = "";
View Full Code Here

    return byDefault;
  }

  public static void setAddToFlow(IProject project, String byDefault) {
    try {
      project.setPersistentProperty(new QualifiedName("", ADD_TO_FLOW_PROPERTY_KEY), byDefault);
    } catch (CoreException e) {
      throw new InternalErrorCDE("unhandled exception", e);
    }
  }
View Full Code Here

            }

            natures[0] = MapReduceNature.ID;
            description.setNatureIds(natures);

            project.setPersistentProperty(new QualifiedName(Activator.PLUGIN_ID, "hadoop.runtime.path"), firstPage.currentPath);
            project.setPersistentProperty(new QualifiedName(Activator.PLUGIN_ID, "hadoop.version"), firstPage.hadoopVersionText);
            project.setDescription(description, new NullProgressMonitor());

            String[] natureIds = project.getDescription().getNatureIds();
            for (int i = 0; i < natureIds.length; i++) {
              log.fine("Nature id # " + i + " > " + natureIds[i]);
View Full Code Here

  /*
   * TODO Versioning connector needed here
   */
  public void configure() throws CoreException {

    String hadoopHomePath = project.getPersistentProperty(new QualifiedName(Activator.BUNDLE_ID, "hadoop.runtime.path"));
    String hadoopVersion = project.getPersistentProperty(new QualifiedName(Activator.BUNDLE_ID, "hadoop.version"));
   
    AbstractHadoopHomeReader homeReader = AbstractHadoopHomeReader.createReader(hadoopVersion);
    final List<File> coreJars = homeReader.getHadoopJars(new Path(hadoopHomePath).toFile());

    // Add Hadoop libraries onto classpath
View Full Code Here

        updateApplyButton();
      }
    });
   
    try {
      String typeSystemPath = ((IResource) getElement()).getPersistentProperty(new QualifiedName("",
              TYPE_SYSTEM_PROPERTY));
      typeSystemText.setText((typeSystemPath != null) ? typeSystemPath : getDefaultTypeSystemLocation());
    } catch (CoreException e) {
      typeSystemText.setText(DEFAULT_TYPE_SYSTEM_PATH);
    }
View Full Code Here

    // have check, so performOk is only done when ts file is a valid file string
   
    // store the value in the owner text field
    try {
      ((IResource) getElement()).setPersistentProperty(
              new QualifiedName("", TYPE_SYSTEM_PROPERTY), typeSystemText.getText());
    } catch (CoreException e) {
      return false;
    }
    return true;
  }
View Full Code Here

   
    IFile defaultTypeSystemFile = project.getFile(DEFAULT_TYPE_SYSTEM_PATH);
   
    String typeSystemLocation;
    try {
      typeSystemLocation = project.getPersistentProperty(new QualifiedName("", TYPE_SYSTEM_PROPERTY));
    } catch (CoreException e) {
      typeSystemLocation = null;
    }
   
    IFile typeSystemFile = null;
View Full Code Here

  }

  public static void setTypeSystemLocation(IProject project, String typeSystemLocation) {
   
    try {
      project.setPersistentProperty(new QualifiedName("", TYPE_SYSTEM_PROPERTY), typeSystemLocation);
    } catch (CoreException e) {
      CasEditorPlugin.log(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.QualifiedName

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.