Package org.eclipse.core.runtime.preferences

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


    handleMarkupSeveritySelection(fOriginalUseExtendedMarkupValidation);

  }

  protected void performDefaultsForValidatingGroup() {
    IEclipsePreferences modelPreferences = new DefaultScope().getNode(getPreferenceNodeQualifier());
    boolean useXIncludeButtonSelected = modelPreferences.getBoolean(XMLCorePreferenceNames.USE_XINCLUDE, true);

    if (fUseXinclude != null) {
      fUseXinclude.setSelection(useXIncludeButtonSelected);
    }
View Full Code Here


      fHonourAllSchemaLocations.setSelection(useHonourAllButtonSelected);
    }
  }

  protected void performDefaultsForMarkupValidationGroup() {
    IEclipsePreferences modelPreferences = new DefaultScope().getNode(getPreferenceNodeQualifier());
    boolean useExtendedMarkupValidation = modelPreferences.getBoolean(XMLCorePreferenceNames.MARKUP_VALIDATION, false);

    if (fExtendedMarkupValidation != null) {
      if (fExtendedMarkupValidation.getSelection() != useExtendedMarkupValidation) {
        handleMarkupSeveritySelection(useExtendedMarkupValidation);
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
   */
  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(XMLCorePlugin.getDefault().getBundle().getSymbolicName());

    // formatting preferences
    node.putInt(XMLCorePreferenceNames.LINE_WIDTH, 72);
    node.putBoolean(XMLCorePreferenceNames.CLEAR_ALL_BLANK_LINES, false);
    node.put(XMLCorePreferenceNames.INDENTATION_CHAR, XMLCorePreferenceNames.TAB);
View Full Code Here

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

  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

  /* (non-Javadoc)
   * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
   */
  @Override
  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(EclipastiePlugin.PLUGIN_ID);

    node.put(IEclipastiePreferenceConstants.MENU_HANDLER_OPENFILEQUESTION_TOGGLE_PREFERENCE,
         IEclipastiePreferenceConstants.DEFAULT_OPENFILEQUESTION_TOGGLE);
    node.put(IEclipastiePreferenceConstants.MENU_HANDLER_CLIPBOARDQUESTION_TOGGLE_PREFERENCE,
         IEclipastiePreferenceConstants.DEFAULT_CLIPBOARDFILEQUESTION_TOGGLE);
View Full Code Here

*/
public class PreferenceInitializer extends AbstractPreferenceInitializer {

  @Override
  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(LodgeItProvider.PLUGIN_ID);

    node.put(ILodgeItPreferenceConstants.LODGEIT_API_URL_PREFERENCE, ILodgeItPreferenceConstants.DEFAULT_API_URL);
  }
View Full Code Here

  public PreferenceInitializer() {
  }

  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(Activator.PLUGIN_ID);
    node.put(Activator.PREF_AUTO_UPDATE, "true");
    node.put(Activator.PREF_UPDATE_INTERVAL, "30");
    node.put(Activator.PREF_POPUP_ON_ERROR, "false");

    String[] filterprefs = new String[] { Activator.PREF_FILTER_FAIL, Activator.PREF_FILTER_FAIL_TEST, Activator.PREF_FILTER_NO_BUILD, Activator.PREF_FILTER_SUCCESS };
View Full Code Here

  public PreferenceInitializer() {
  }

  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(Activator.PLUGIN_ID);
    node.put(Activator.PREF_AUTO_UPDATE, "true");
    node.put(Activator.PREF_UPDATE_INTERVAL, "30");
    node.put(Activator.PREF_POPUP_ON_ERROR, "false");
  }
View Full Code Here

    public static final String SEVERITY_ARGUMENTS_MISMATCH = "SEVERITY_ARGUMENTS_MISMATCH";
    public static final int DEFAULT_SEVERITY_ARGUMENTS_MISMATCH = IMarker.SEVERITY_INFO; //Currently does not run by default!

    @Override
    public void initializeDefaultPreferences() {
        Preferences node = new DefaultScope().getNode(DEFAULT_SCOPE);

        for (int i = 0; i < AnalysisPreferences.completeSeverityMap.length; i++) {
            Object[] s = AnalysisPreferences.completeSeverityMap[i];
            node.putInt((String) s[1], (Integer) s[2]);
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.preferences.DefaultScope

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.