|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.runtime.Plugin org.eclipse.ui.plugin.AbstractUIPlugin org.eclipse.xtend.shared.ui.Activator
public class Activator
The main plugin class
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_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 | |
---|---|
Activator()
The constructor. |
Method Summary | |
---|---|
void |
addToJarBlacklist(java.lang.String pattern)
Relevant for XtendXpandBuilder |
void |
addToJarWhitelist(java.lang.String pattern)
Relevant for XtendXpandBuilder |
static org.eclipse.core.resources.IStorage |
findStorage(org.eclipse.jdt.core.IJavaProject project,
ResourceID id,
boolean searchJars)
|
static ResourceID |
findXtendXpandResourceID(org.eclipse.jdt.core.IJavaProject project,
org.eclipse.core.resources.IStorage file)
|
static Activator |
getDefault()
Returns the shared instance. |
static ExecutionContext |
getExecutionContext(org.eclipse.jdt.core.IJavaProject project)
|
static IModelManager |
getExtXptModelManager()
Can return null if plugin is stopped. |
static java.lang.String |
getId()
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path. |
static java.lang.String |
getNatureId()
|
static ResourceContributor |
getRegisteredResourceContributorFor(java.lang.String fileExtension)
|
static ResourceContributor[] |
getRegisteredResourceContributors()
|
static java.util.List<StorageFinder> |
getRegisteredStorageFinder()
|
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
Returns the standard display to be used. |
boolean |
isBlacklistedJar(java.lang.String jarName)
Relevant for XtendXpandBuilder |
static boolean |
isXtendFile(java.lang.Object object)
|
static void |
logError(java.lang.String string,
java.lang.Exception e)
|
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
Constructor Detail |
---|
public Activator()
Method Detail |
---|
public static final java.lang.String getNatureId()
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 static Activator getDefault()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path
- the path
public static org.eclipse.swt.widgets.Display getStandardDisplay()
public static java.lang.String getId()
public static ResourceContributor[] getRegisteredResourceContributors()
public static java.util.List<StorageFinder> getRegisteredStorageFinder()
public static org.eclipse.core.resources.IStorage findStorage(org.eclipse.jdt.core.IJavaProject project, ResourceID id, boolean searchJars)
public static ResourceID findXtendXpandResourceID(org.eclipse.jdt.core.IJavaProject project, org.eclipse.core.resources.IStorage file)
public static IModelManager getExtXptModelManager()
null
if plugin is stopped.
public static ExecutionContext getExecutionContext(org.eclipse.jdt.core.IJavaProject project)
public static final boolean isXtendFile(java.lang.Object object)
public static ResourceContributor getRegisteredResourceContributorFor(java.lang.String fileExtension)
public static void logError(java.lang.String string, java.lang.Exception e)
public void addToJarWhitelist(java.lang.String pattern)
public void addToJarBlacklist(java.lang.String pattern)
public boolean isBlacklistedJar(java.lang.String jarName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |