Example #1
0
 /**
  * Returns this plug-in's context type registry.
  *
  * @return the context type registry for this plug-in instance
  */
 public static ContextTypeRegistry getContextTypeRegistry() {
   if (fRegistry == null) {
     // create an configure the contexts available in the template editor
     fRegistry = new ContributionContextTypeRegistry();
     fRegistry.addContextType(DjContextType.DJ_COMPLETIONS_CONTEXT_TYPE);
     fRegistry.addContextType(DjContextType.DJ_TAGS_COMPLETIONS_CONTEXT_TYPE);
     fRegistry.addContextType(DjContextType.DJ_FILTERS_COMPLETIONS_CONTEXT_TYPE);
   }
   return fRegistry;
 }
 /**
  * Returns this plug-in's context type registry.
  *
  * @return the context type registry for this plug-in instance
  */
 public ContextTypeRegistry getContextTypeRegistry() {
   if (fRegistry == null) {
     // create and configure the contexts available in the template editor
     fRegistry = new ContributionContextTypeRegistry();
     fRegistry.addContextType(BuildFileContextType.BUILDFILE_CONTEXT_TYPE);
     fRegistry.addContextType(TargetContextType.TARGET_CONTEXT_TYPE);
     fRegistry.addContextType(TaskContextType.TASK_CONTEXT_TYPE);
   }
   return fRegistry;
 }
Example #3
0
 public ContextTypeRegistry getContextTypeRegistry() {
   if (fContextTypeRegistry == null) {
     // create an configure the contexts available in the template editor
     fContextTypeRegistry = new ContributionContextTypeRegistry();
     fContextTypeRegistry.addContextType(ErlangContextType.ERLANG_CONTEXT_TYPE_ID);
     fContextTypeRegistry.addContextType(
         ErlangSourceContextTypeModule.ERLANG_SOURCE_CONTEXT_TYPE_MODULE_ID);
     fContextTypeRegistry.addContextType(
         ErlangSourceContextTypeModuleElement.ERLANG_SOURCE_CONTEXT_TYPE_MODULE_ELEMENT_ID);
   }
   return fContextTypeRegistry;
 }
Example #4
0
 public ContextTypeRegistry getContextTypeRegistry() {
   if (fContextTypeRegistry == null) {
     fContextTypeRegistry = new ContributionContextTypeRegistry();
     fContextTypeRegistry.addContextType(
         "org.eclipse.linuxtools.rpm.ui.editor.preambleSection"); //$NON-NLS-1$
     fContextTypeRegistry.addContextType(
         "org.eclipse.linuxtools.rpm.ui.editor.preSection"); //$NON-NLS-1$
     fContextTypeRegistry.addContextType(
         "org.eclipse.linuxtools.rpm.ui.editor.buildSection"); //$NON-NLS-1$
     fContextTypeRegistry.addContextType(
         "org.eclipse.linuxtools.rpm.ui.editor.installSection"); //$NON-NLS-1$
     fContextTypeRegistry.addContextType(
         "org.eclipse.linuxtools.rpm.ui.editor.changelogSection"); //$NON-NLS-1$
   }
   return fContextTypeRegistry;
 }