|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.cdt.ui.CUIPlugin
public class CUIPlugin
Field Summary | |
---|---|
static java.lang.String |
BUILDER_ID
|
static java.lang.String |
C_PROBLEMMARKER
|
static java.lang.String |
C_PROJECT_WIZARD_ID
|
static java.lang.String |
CCWIZARD_CATEGORY_ID
|
static java.lang.String |
CPP_PROJECT_WIZARD_ID
|
static java.lang.String |
CVIEW_ID
|
static java.lang.String |
CVIEWS_SCOPE
The id of the scope used by all the CDT views (value "org.eclipse.cdt.ui.scope" ). |
static java.lang.String |
CWIZARD_CATEGORY_ID
|
static java.lang.String |
EDITOR_ID
|
static java.lang.String |
ID_CALL_HIERARCHY
|
static java.lang.String |
ID_CBROWSING_PERSPECTIVE
The id of the C Browsing Perspective (value "org.eclipse.cdt.ui.CBrowsingPerspective" ). |
static java.lang.String |
ID_CELEMENT_CREATION_ACTION_SET
The id of the C Element Creation action set (value "org.eclipse.cdt.ui.CElementCreationActionSet" ). |
static java.lang.String |
ID_CHIERARCHY_PERSPECTIVE
The id of the C hierarchy perspective (value "org.eclipse.cdt.ui.CHierarchyPerspective" ). |
static java.lang.String |
ID_CPERSPECTIVE
The id of the C perspective (value "org.eclipse.cdt.ui.CPerspective" ). |
static java.lang.String |
ID_INCLUDE_BROWSER
|
static java.lang.String |
ID_MEMBERS_VIEW
The view part id of the C Browsing Members view (value "org.eclipse.cdt.ui.MembersView" ). |
static java.lang.String |
ID_NAMESPACES_VIEW
The view part id of the C Browsing Namespaces view (value "org.eclipse.cdt.ui.NamespacesView" ). |
static java.lang.String |
ID_PROJECTS_VIEW
The view part id of the C Browsing Projects view (value "org.eclipse.cdt.ui.ProjectsView" ). |
static java.lang.String |
ID_TYPE_HIERARCHY
|
static java.lang.String |
ID_TYPES_VIEW
The view part id of the C Browsing Types view (value "org.eclipse.cdt.ui.TypesView" ). |
static java.lang.String |
PLUGIN_CORE_ID
|
static java.lang.String |
PLUGIN_ID
|
static java.lang.String |
SEARCH_ACTION_SET_ID
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
CUIPlugin()
|
Method Summary | |
---|---|
void |
configurePluginDebugOptions()
|
static void |
createStandardGroups(org.eclipse.jface.action.IMenuManager menu)
Creates the CUIplugin standard groups in a context menu. |
static void |
errorDialog(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
org.eclipse.core.runtime.IStatus s,
boolean logError)
Utility method with conventions |
static void |
errorDialog(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.Throwable t,
boolean logError)
Utility method with conventions |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
|
static org.eclipse.swt.widgets.Shell |
getActiveWorkbenchShell()
|
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
|
AsmTextTools |
getAsmTextTools()
Returns the shared assembly text tools |
ASTProvider |
getASTProvider()
Returns the AST provider. |
org.eclipse.cdt.internal.core.model.IBufferFactory |
getBufferFactory()
|
CEditorTextHoverDescriptor[] |
getCEditorTextHoverDescriptors()
Returns all C editor text hovers contributed to the workbench. |
org.eclipse.jface.preference.IPreferenceStore |
getCombinedPreferenceStore()
Returns a combined preference store, this store is read-only. |
IBuildConsoleManager |
getConsoleManager()
Return the default console manager. |
IBuildConsoleManager |
getConsoleManager(java.lang.String name,
java.lang.String id)
Return a console manager specified by id. |
org.eclipse.cdt.core.model.CoreModel |
getCoreModel()
|
static CUIPlugin |
getDefault()
|
static org.eclipse.ui.IEditorPart[] |
getDirtyEditors()
Returns an array of all editors that have an unsaved content. |
CDocumentProvider |
getDocumentProvider()
Returns the used document provider |
ExternalSearchDocumentProvider |
getExternalSearchDocumentProvider()
Returns the used external search document provider |
CFoldingStructureProviderRegistry |
getFoldingStructureProviderRegistry()
Returns the registry of the extensions to the org.eclipse.jdt.ui.javaFoldingStructureProvider
extension point. |
static java.lang.String |
getFormattedString(java.lang.String key,
java.lang.String arg)
|
static java.lang.String |
getFormattedString(java.lang.String key,
java.lang.String[] args)
|
static ImageDescriptorRegistry |
getImageDescriptorRegistry()
|
static org.eclipse.ui.IEditorPart[] |
getInstanciatedEditors()
Returns an array of all instanciated editors. |
static java.lang.String |
getPluginId()
|
ProblemMarkerManager |
getProblemMarkerManager()
Returns the problem marker manager |
static java.util.ResourceBundle |
getResourceBundle()
|
static java.lang.String |
getResourceString(java.lang.String key)
|
org.eclipse.jface.text.source.ISharedTextColors |
getSharedTextColors()
|
static org.eclipse.cdt.core.model.IWorkingCopy[] |
getSharedWorkingCopies()
|
org.eclipse.swt.widgets.Shell |
getShell()
Answers the Shell associated with the active workbench, or
one of the windows associated with the workbench. |
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
Returns the standard display to be used. |
org.eclipse.jface.text.templates.ContextTypeRegistry |
getTemplateContextRegistry()
Returns the template context type registry for the C plugin. |
org.eclipse.jface.text.templates.persistence.TemplateStore |
getTemplateStore()
Returns the template store for the C editor templates. |
CTextTools |
getTextTools()
Returns the shared text tools |
IWorkingCopyManager |
getWorkingCopyManager()
Returns the working copy manager |
static org.eclipse.core.resources.IWorkspace |
getWorkspace()
|
void |
log(org.eclipse.core.runtime.IStatus status)
|
void |
log(java.lang.Throwable e)
|
void |
logErrorMessage(java.lang.String message)
|
void |
resetCEditorTextHoverDescriptors()
Resets the C editor text hovers contributed to the workbench. |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
public static final java.lang.String PLUGIN_CORE_ID
public static final java.lang.String EDITOR_ID
public static final java.lang.String CVIEW_ID
public static final java.lang.String C_PROBLEMMARKER
public static final java.lang.String ID_INCLUDE_BROWSER
public static final java.lang.String ID_CALL_HIERARCHY
public static final java.lang.String ID_TYPE_HIERARCHY
public static final java.lang.String C_PROJECT_WIZARD_ID
public static final java.lang.String CPP_PROJECT_WIZARD_ID
public static final java.lang.String CWIZARD_CATEGORY_ID
public static final java.lang.String CCWIZARD_CATEGORY_ID
public static final java.lang.String SEARCH_ACTION_SET_ID
public static final java.lang.String BUILDER_ID
public static final java.lang.String ID_CPERSPECTIVE
"org.eclipse.cdt.ui.CPerspective"
).
public static final java.lang.String ID_CHIERARCHY_PERSPECTIVE
"org.eclipse.cdt.ui.CHierarchyPerspective"
).
public static final java.lang.String ID_CBROWSING_PERSPECTIVE
"org.eclipse.cdt.ui.CBrowsingPerspective"
).
public static java.lang.String ID_PROJECTS_VIEW
"org.eclipse.cdt.ui.ProjectsView"
).
public static java.lang.String ID_NAMESPACES_VIEW
"org.eclipse.cdt.ui.NamespacesView"
).
public static java.lang.String ID_TYPES_VIEW
"org.eclipse.cdt.ui.TypesView"
).
public static java.lang.String ID_MEMBERS_VIEW
"org.eclipse.cdt.ui.MembersView"
).
public static final java.lang.String ID_CELEMENT_CREATION_ACTION_SET
"org.eclipse.cdt.ui.CElementCreationActionSet"
).
public static final java.lang.String CVIEWS_SCOPE
"org.eclipse.cdt.ui.scope"
).
Constructor Detail |
---|
public CUIPlugin()
Method Detail |
---|
public org.eclipse.cdt.internal.core.model.IBufferFactory getBufferFactory()
public static org.eclipse.cdt.core.model.IWorkingCopy[] getSharedWorkingCopies()
public static java.lang.String getResourceString(java.lang.String key)
public static org.eclipse.core.resources.IWorkspace getWorkspace()
public static java.lang.String getFormattedString(java.lang.String key, java.lang.String arg)
public static java.lang.String getFormattedString(java.lang.String key, java.lang.String[] args)
public static java.util.ResourceBundle getResourceBundle()
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
public static CUIPlugin getDefault()
public void log(java.lang.Throwable e)
public void log(org.eclipse.core.runtime.IStatus status)
public void logErrorMessage(java.lang.String message)
public static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, org.eclipse.core.runtime.IStatus s, boolean logError)
logError
- TODOpublic static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, java.lang.Throwable t, boolean logError)
logError
- TODOpublic CDocumentProvider getDocumentProvider()
public ExternalSearchDocumentProvider getExternalSearchDocumentProvider()
public IWorkingCopyManager getWorkingCopyManager()
public CTextTools getTextTools()
public AsmTextTools getAsmTextTools()
public IBuildConsoleManager getConsoleManager()
public IBuildConsoleManager getConsoleManager(java.lang.String name, java.lang.String id)
name
- console nameid
- console id
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public org.eclipse.cdt.core.model.CoreModel getCoreModel()
public static java.lang.String getPluginId()
public static ImageDescriptorRegistry getImageDescriptorRegistry()
public ProblemMarkerManager getProblemMarkerManager()
public org.eclipse.jface.text.source.ISharedTextColors getSharedTextColors()
public void configurePluginDebugOptions()
public org.eclipse.jface.preference.IPreferenceStore getCombinedPreferenceStore()
public static org.eclipse.ui.IEditorPart[] getDirtyEditors()
public static org.eclipse.ui.IEditorPart[] getInstanciatedEditors()
public static org.eclipse.swt.widgets.Display getStandardDisplay()
public static void createStandardGroups(org.eclipse.jface.action.IMenuManager menu)
public CEditorTextHoverDescriptor[] getCEditorTextHoverDescriptors()
public void resetCEditorTextHoverDescriptors()
This will force a rebuild of the descriptors the next time a client asks for them.
public CFoldingStructureProviderRegistry getFoldingStructureProviderRegistry()
org.eclipse.jdt.ui.javaFoldingStructureProvider
extension point.
IJavaFoldingStructureProvider
public org.eclipse.jface.text.templates.ContextTypeRegistry getTemplateContextRegistry()
public org.eclipse.jface.text.templates.persistence.TemplateStore getTemplateStore()
public ASTProvider getASTProvider()
public org.eclipse.swt.widgets.Shell getShell()
Shell
associated with the active workbench, or
one of the windows associated with the workbench.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |