Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.QualifiedName


   * @param res resource (for example project)
   * @return string of additional parameters
   */
  public static String getAdditionalParameters(IResource res){
    try {
      String s = res.getPersistentProperty(new QualifiedName("", P_EXTRA_PARAMETERS));
      if (s==null)
        return "";
      else
        return s;
    } catch (Throwable e) {
View Full Code Here


        }
      }
     
      IResource res = ((IResource) getElement().getAdapter(IResource.class));
      res.setPersistentProperty(
        new QualifiedName("", P_ANALYSIS),
        analysis);
     
      res.setPersistentProperty(
          new QualifiedName("", P_ANALYSE_ALLFUNS),
          analyse_allfuns.getSelection()?"true":"false");

      res.setPersistentProperty(
          new QualifiedName("", P_EXTRA_PARAMETERS),
          additional_parameters.getText());

    } catch (CoreException e) {
      return false;
    }
View Full Code Here

      if (file instanceof IFile) {
        try {
          IFile ifile = (IFile) file;
          ifile.refreshLocal(1, null);
          ((IFile) file).setPersistentProperty(
                  new QualifiedName(PLUGIN_ID, IMPORTABLE_PART_CONTEXT), editor.getFile()
                          .getLocation().toString());
        } catch (CoreException e) {
          throw new InternalErrorCDE("unexpected exception", e);
        }
      }
View Full Code Here

        projectName = project.getName();
        monitor.subTask("Checking " + projectName);
        if (project.hasNature(ToolNature.NATURE_ID)){
//          setRule(FScript.getFScript(project).getRule());
          final Map<String, RepositoryComponent> list = FScript.getFScript(project).ListWorkspaceChanges();
          QualifiedName partner = RepositoryPropertiesManager.getSyncQualifiedName(project);
          syncronizer.add(partner);
          syncronizer.flushSyncInfo(partner, project, IResource.DEPTH_INFINITE);
          final List<IFile> components = new ArrayList<IFile>();
          project.accept(new IResourceProxyVisitor() {
            public boolean visit(IResourceProxy proxy) throws CoreException {
View Full Code Here

//    }
    return null;
  }
 
  public static QualifiedName getSyncQualifiedName(IResource resource){
    return new QualifiedName(ToolNature.PROJECT_QUALIFIED_NAME, "Repository:" + resource.getProject().getName());
  }
View Full Code Here

  private String getELTranslatorProperty(IFile file) {
    String elTranslatorValue = null;
    if (file != null) {
      if (file.exists()) {
        try {
          elTranslatorValue = file.getPersistentProperty(new QualifiedName(JSP_CORE_PLUGIN_ID, ELTRANSLATOR_PROP_NAME));
          if (null == elTranslatorValue) {

            elTranslatorValue = file.getProject().getPersistentProperty(new QualifiedName(JSP_CORE_PLUGIN_ID, ELTRANSLATOR_PROP_NAME));
          }
        }
        catch (CoreException e) {
          // ISSUE: why do we log this here? Instead of allowing to
          // throwup?
View Full Code Here

   * @param baseResource the base resource where the bean is being used
   * @param typeName the <i>fully qualified</i> type name (eg. javax.swing.JButton) of the bean
   */
  public IJavaPropertyDescriptor[] getRuntimeProperties(IResource baseResource, String typeName) {
    IJavaProject javaProject = JavaCore.create(baseResource.getProject());
    QualifiedName typeQualifiedName = getTypeQualifiedName(typeName);
    List getMethodResults = new ArrayList();
    List isMethodResults = new ArrayList();
    List setMethodResults = new ArrayList();
    List descriptorResults = new ArrayList();
    try {
      IType type = javaProject.findType(typeQualifiedName.getQualifier() + "." + typeQualifiedName.getLocalName()); //$NON-NLS-1$
      // type must exist
      if(type != null) {
        ITypeHierarchy hierarchy = type.newTypeHierarchy(null);
        IType[] supers = hierarchy.getAllSuperclasses(type);
 
View Full Code Here

    while (count++ < length - 1) {
      root.append(st.nextToken());
      if (count < length - 1)
        root.append('.');
    }
    return new QualifiedName(root.toString(), st.nextToken());
  }
View Full Code Here

  public void storeColumnsWidth() throws CoreException {
    if (project != null) {
      if (kind.length() > 0) {
        if (project.exists()) {
          project.getProject().setPersistentProperty(
              new QualifiedName(
                  "com.onpositive.baseviewer.columnswidth",
                  kind), getColumnsWidthString());
        }
      }
    }
View Full Code Here

          bld.deleteCharAt(bld.length() - 1);
        }
        String cString = bld.toString();
        if (project.exists()) {
          project.getProject().setPersistentProperty(
              new QualifiedName(
                  "com.onpositive.baseviewer.columnsvisible",
                  kind), cString);
        }
      }
    }
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.