Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.QualifiedName


    if (project != null) {
      if (kind.length() > 0) {
        String persistentProperty = project
            .getProject()
            .getPersistentProperty(
                new QualifiedName(
                    "com.onpositive.baseviewer.columnsvisible",
                    kind));
        if (persistentProperty != null
            && persistentProperty.length() > 0) {
          String[] split = persistentProperty.split(",");
View Full Code Here


    if (project != null) {
      if (kind.length() > 0) {
        return project
            .getProject()
            .getPersistentProperty(
                new QualifiedName(
                    "com.onpositive.baseviewer.columnswidth",
                    kind));
      }
    }
    return null;
View Full Code Here

    if (project != null) {
      if (kind != null && kind.length() > 0) {
        String persistentProperty = project
            .getProject()
            .getPersistentProperty(
                new QualifiedName(
                    "com.onpositive.baseviewer.columnssort",
                    kind));
        return persistentProperty;// .equals("Parent") ?
                      // "":persistentProperty;
      }
View Full Code Here

    if (project != null) {
      if (kind.length() > 0) {
        String persistentProperty = project
            .getProject()
            .getPersistentProperty(
                new QualifiedName(
                    "com.onpositive.baseviewer.columnssortorder",
                    kind));
        if (persistentProperty != null) {
          return Integer.parseInt(persistentProperty);
        }
View Full Code Here

  protected void storeColumnsSort(String name) throws CoreException {
    if (project != null) {
      if (kind.length() > 0) {
        project.getProject().setPersistentProperty(
            new QualifiedName(
                "com.onpositive.baseviewer.columnssort", kind),
            name);
      }
    }
  }
View Full Code Here

  protected void storeColumnsSortAscending(int order) throws CoreException {
    // TODO Auto-generated method stub
    if (project != null) {
      if (kind.length() > 0) {
        project.getProject().setPersistentProperty(
            new QualifiedName(
                "com.onpositive.baseviewer.columnssortorder",
                kind), order + "");
      }
    }
  }
View Full Code Here

        if (store == null) {
          PreferenceStore newStore = new PreferenceStore();
          sessionPreferenceStores.put(getTypesystemId(element), newStore);
          newStore.addPropertyChangeListener(new SaveSessionPreferencesTrigger(element));

          String sessionPreferenceString = typeSystemFile.getPersistentProperty(new QualifiedName(
                  "", CAS_EDITOR_SESSION_PROPERTIES));

          if (sessionPreferenceString != null) {
            try {
              newStore.load(new ByteArrayInputStream(sessionPreferenceString.getBytes("UTF-8")));
View Full Code Here

      } catch (IOException e) {
        CasEditorIdePlugin.log(e);
      }

      try {
        tsFile.setPersistentProperty(new QualifiedName("", CAS_EDITOR_SESSION_PROPERTIES),
                new String(prefBytes.toByteArray(), "UTF-8"));
      } catch (CoreException e) {
        CasEditorIdePlugin.log(e);
      } catch (IOException e) {
        CasEditorIdePlugin.log(e);
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

   * @param name the name of the preference to restore
   */
  private void restoreValue(String name){
    try{
      //  Obtain the preference from the project store
      String value = m_project.getPersistentProperty(new QualifiedName(m_pageID,name));
     
      //  Couldnt find the preference (or it's invalidly set to null), so default to the workbench preferences
      if(value == null)   value = getDefaultString(name);

      //  Found the value, push it through saveValue() which will put it in the appropriate places
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.