Examples of InstanceScope


Examples of org.eclipse.core.runtime.preferences.InstanceScope

  private boolean isReservedTaglibPrefix(String name) {
    return fReservedPrefixes.get(name) != null;
  }
 
  private void loadPreferences(IFile file) {
    fScopes = new IScopeContext[]{new InstanceScope(), new DefaultScope()};

    fPreferencesService = Platform.getPreferencesService();
    if (file != null && file.isAccessible()) {
      ProjectScope projectScope = new ProjectScope(file.getProject());
      if (projectScope.getNode(PREFERENCE_NODE_QUALIFIER).getBoolean(JSPCorePreferenceNames.VALIDATION_USE_PROJECT_SETTINGS, false)) {
        fScopes = new IScopeContext[]{projectScope, new InstanceScope(), new DefaultScope()};
      }
    }

    fSeverityIncludeFileMissing = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_DIRECTIVE_INCLUDE_FILE_NOT_FOUND);
    fSeverityIncludeFileNotSpecified = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_DIRECTIVE_INCLUDE_NO_FILE_SPECIFIED);
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

    else {
      fProject = null;
    }

    if (!useProject) {
      fPreferences = new InstanceScope().getNode(PREFERENCE_NODE_QUALIFIER);
    }
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

    boolean result = regionType.equals(DOMJSPRegionContexts.JSP_SCRIPTLET_OPEN) || regionType.equals(DOMJSPRegionContexts.JSP_EXPRESSION_OPEN) || regionType.equals(DOMJSPRegionContexts.JSP_DECLARATION_OPEN) || regionType.equals(DOMJSPRegionContexts.JSP_DIRECTIVE_OPEN);
    return result;
  }

  private void loadPreferences(IFile file) {
    fScopes = new IScopeContext[]{new InstanceScope(), new DefaultScope()};

    fPreferencesService = Platform.getPreferencesService();
    if (file != null && file.isAccessible()) {
      ProjectScope projectScope = new ProjectScope(file.getProject());
      if (projectScope.getNode(PREFERENCE_NODE_QUALIFIER).getBoolean(JSPCorePreferenceNames.VALIDATION_USE_PROJECT_SETTINGS, false)) {
        fScopes = new IScopeContext[]{projectScope, new InstanceScope(), new DefaultScope()};
      }
    }

    fSeverityMissingRequiredAttribute = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_MISSING_REQUIRED_ATTRIBUTE);
    fSeverityNonEmptyInlineTag = getMessageSeverity(JSPCorePreferenceNames.VALIDATION_ACTIONS_SEVERITY_NON_EMPTY_INLINE_TAG);
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

    if (context != null) {
      final IProject project = context.getProject();
      if (project != null && project.isAccessible()) {
        final ProjectScope projectScope = new ProjectScope(project);
        if (projectScope.getNode(XMLCorePlugin.getDefault().getBundle().getSymbolicName()).getBoolean(XMLCorePreferenceNames.USE_PROJECT_SETTINGS, false))
        return new IScopeContext[]{projectScope, new InstanceScope(), new DefaultScope()};
      }
    }
    return new IScopeContext[]{new InstanceScope(), new DefaultScope()};
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

    return cmDocument;
  }
 
  private String applyLineDelimiter(IFile file, String text) {
    String systemLineSeparator = System.getProperty("line.separator");
    String lineDelimiter = Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, systemLineSeparator, new IScopeContext[] {new ProjectScope(file.getProject()), new InstanceScope() });//$NON-NLS-1$
    if(!systemLineSeparator.equals(lineDelimiter)) {
      String convertedText = StringUtils.replace(text, "\r\n", "\n");
      convertedText = StringUtils.replace(convertedText, "\r", "\n");
      convertedText = StringUtils.replace(convertedText, "\n", lineDelimiter);
      return convertedText;
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

 
  public ProjectPreferences(IProject project)
  {
    m_searchScope = new IScopeContext[3];
    m_searchScope[0] = new ProjectScope(project);
    m_searchScope[1] = new InstanceScope();
    m_searchScope[2] = new DefaultScope();
 
    m_project = project;
   
    setupWorkingCopy();
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

public class WorkspacePreferences extends EsftpPreferences
  protected void setupScope()
  {
    m_original = new InstanceScope().getNode(Activator.PLUGIN_ID);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

     * @return the preferences for the project or prefs from workspace
     */
    public static IPreferenceStore getPluginPreferences(IProject project) {
        if (project == null || !isProjectSettingsEnabled(project)) {
            // read workspace (user) settings from instance area
            return new ScopedPreferenceStore(new InstanceScope(), FindbugsPlugin.PLUGIN_ID);
        }

        // use project settings
        return new ScopedPreferenceStore(new ProjectScope(project), FindbugsPlugin.PLUGIN_ID);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.InstanceScope

                    installTabsToSpacesConverter();
                }
            }
      };
     
      IEclipsePreferences peference = new InstanceScope().getNode(VerilogPlugin.ID);     
      peference.addPreferenceChangeListener(fPropertyChangeListener);
  }
View Full Code Here

Examples of org.jboss.metadata.plugins.scope.InstanceScope

   public List<Object> createBeans(String baseName) throws Throwable
   {
      List<Object> result = new ArrayList<Object>();

      KernelController controller = kernel.getController();
      InstanceScope is = metaData.getAnnotation(InstanceScope.class);
      String sflAnn = createAnnotation(is);

      // bean context
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("BeanContext", BaseContext.class.getName());
      builder.addConstructorParameter(BeanContainer.class.getName(), new BeanContainer<Object>());
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.