コード例 #1
0
  public HTMLTemplatePreferencePage() {
    HTMLUIPlugin htmlEditorPlugin = HTMLUIPlugin.getDefault();

    setPreferenceStore(htmlEditorPlugin.getPreferenceStore());
    setTemplateStore(htmlEditorPlugin.getTemplateStore());
    setContextTypeRegistry(htmlEditorPlugin.getTemplateContextRegistry());
  }
コード例 #2
0
  public boolean performOk() {
    boolean result = super.performOk();

    HTMLUIPlugin.getDefault().savePluginPreferences();

    return result;
  }
 public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
   final IContentAssistant assistant = super.getContentAssistant(sourceViewer);
   if (assistant instanceof ContentAssistant) {
     ((ContentAssistant) assistant)
         .enableAutoInsert(
             HTMLUIPlugin.getInstance()
                 .getPreferenceStore()
                 .getBoolean(HTMLUIPreferenceNames.INSERT_SINGLE_SUGGESTION));
   }
   return assistant;
 }
コード例 #4
0
 protected IPreferenceStore doGetPreferenceStore() {
   return HTMLUIPlugin.getDefault().getPreferenceStore();
 }
コード例 #5
0
 private void doSavePreferenceStore() {
   HTMLUIPlugin.getDefault().savePluginPreferences(); // UI
   HTMLCorePlugin.getDefault().savePluginPreferences(); // model
 }