Package org.eclipse.ui.preferences

Examples of org.eclipse.ui.preferences.ScopedPreferenceStore


  @Override
  public IPreferenceStore getPreferenceStore() {
    // Create the preference store lazily.
    if(preferenceStore == null) {
      // InstanceScope.INSTANCE added in 3.7
      preferenceStore = new ScopedPreferenceStore(new InstanceScope(), OverlayConstants.PLUGIN_ID);

    }
    return preferenceStore;
  }
View Full Code Here



    public GeneralPreferencePage()
    {
        super( GRID );
        preferences = new ScopedPreferenceStore( new ConfigurationScope(), Application.PLUGIN_ID );
        setPreferenceStore( preferences );
    }
View Full Code Here


    public SchemaPreferencePage()
    {
        super( GRID );
        preferences = new ScopedPreferenceStore( new ConfigurationScope(), Application.PLUGIN_ID );
        setPreferenceStore( preferences );
    }
View Full Code Here

  public ProjectTemplateStore(IProject project) {
    fInstanceStore = SymfonyUiPlugin.getDefault().getCodeTemplateStore();
    if (project == null) {
      fProjectStore = null;
    } else {
      final ScopedPreferenceStore projectSettings = new ScopedPreferenceStore(
          new ProjectScope(project), SymfonyUiPlugin.PLUGIN_ID);
      fProjectStore = new TemplateStore(projectSettings, KEY) {
        /*
         * Make sure we keep the id of added code templates - add
         * removes it in the usual add() method
         */
        public void add(TemplatePersistenceData data) {
          internalAdd(data);
        }

        public void save() throws IOException {

          StringWriter output = new StringWriter();
          TemplateReaderWriter writer = new TemplateReaderWriter();
          writer.save(getTemplateData(false), output);

          projectSettings.setValue(KEY, output.toString());
          projectSettings.save();
        }
      };
    }
  }
View Full Code Here

  }
 
  public IPreferenceStore getPreferenceStore() {
   
    if (prefStore == null) {
      prefStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, SymfonyCorePlugin.ID);
    }
   
    return prefStore;
  }
View Full Code Here

        // Now that we have a project, we can reset the scope to be project specific.  NB: We're
        // guaranteed that this is an IProject because we restrict to that in plugin.xml.
        IProject project = (IProject) element.getAdapter(IProject.class);
        if (project != null) {
            IScopeContext scope = new ProjectScope(project);
            setPreferenceStore(new ScopedPreferenceStore(scope, JSLintPlugin.PLUGIN_ID));
        }
    }
View Full Code Here

     */
    @Override
    public IPreferenceStore getPreferenceStore() {
        // Create the preference store lazily.
        if (preferenceStore == null) {
            preferenceStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, JSLintPlugin.PLUGIN_ID);
        }
        return preferenceStore;
    }
View Full Code Here

* @author Steffen Pingel
*/
public class AllJDTQuickfixTests {

  public static Test suite() {
    IPreferenceStore store = new ScopedPreferenceStore(new InstanceScope(), "org.eclipse.ajdt.ui");
    store.setValue("promptForAutoOpenCrossReference", false);

    TestSuite suite = new TestSuite(AllJDTQuickfixTests.class.getName());
    // $JUnit-BEGIN$

    suite.addTest(new TestSuite(AutowiredAnnotationQuickAssistProcessorTest.class));
View Full Code Here

* @author Steffen Pingel
*/
public class AllQuickfixTests {

  public static Test suite() {
    IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.ajdt.ui");
    store.setValue("promptForAutoOpenCrossReference", false);

    TestSuite suite = new TestSuite(AllQuickfixTests.class.getName());
    // $JUnit-BEGIN$

    suite.addTest(new TestSuite(ReflectionTests.class));
View Full Code Here

TOP

Related Classes of org.eclipse.ui.preferences.ScopedPreferenceStore

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.