|
||||||||||
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.jst.pagedesigner.PDPlugin
public class PDPlugin
The main plugin class to be used in the desktop.
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
PDPlugin()
The constructor. |
Method Summary | |
---|---|
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
Returns the active workbench page. |
static org.eclipse.swt.widgets.Shell |
getActiveWorkbenchShell()
Returns the active workbench Shell. |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window. |
static org.eclipse.jst.jsf.common.ui.internal.guiutils.Alerts |
getAlerts()
get the alerts objects associated with this plugin for alerting the user. |
static org.eclipse.core.resources.IProject |
getCurrentProject()
Returns current active project. |
static PDPlugin |
getDefault()
Returns the shared instance. |
static org.eclipse.swt.widgets.Display |
getDisplay()
Returns the active display. |
java.io.File |
getFile(java.lang.String file)
|
org.eclipse.swt.graphics.Image |
getImage(java.lang.String name)
Returns a shared image for the given name. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String name)
Returns a shared ImageDescriptor for the given name Note: ImageDescriptor returned from this method will be automatically disposed of when this plug-in shuts down. |
static org.eclipse.core.runtime.Path |
getInstallLocation()
|
static org.eclipse.jst.jsf.common.ui.internal.logging.Logger |
getLogger(java.lang.Class theClass)
Returns a logger for the new class using this plugin for reference. |
static org.eclipse.wst.sse.core.internal.provisional.IModelManager |
getModelManager()
|
java.util.ResourceBundle |
getPluginDecriptorBundle()
Returns the plugin's descriptor's resource bundle, |
static java.lang.String |
getPluginId()
Returns this plugin's unique identifier |
java.util.Properties |
getProperties()
Returns the plugin's default properties. |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
org.eclipse.jst.jsf.common.ui.internal.logging.Logger |
getRootLogger()
Returns the plugin's root logger |
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
Returns the standard display to be used. |
static org.eclipse.core.resources.IWorkspace |
getWorkspace()
Returns the workspace instance. |
java.io.InputStream |
readFile(java.lang.String file)
Read a file resource. |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup, stop |
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 |
Constructor Detail |
---|
public PDPlugin()
Method Detail |
---|
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 static PDPlugin getDefault()
public static org.eclipse.jst.jsf.common.ui.internal.guiutils.Alerts getAlerts()
public static org.eclipse.jst.jsf.common.ui.internal.logging.Logger getLogger(java.lang.Class theClass)
public org.eclipse.jst.jsf.common.ui.internal.logging.Logger getRootLogger()
public static java.lang.String getPluginId()
public java.util.ResourceBundle getResourceBundle()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getPluginDecriptorBundle()
public java.util.Properties getProperties()
public static org.eclipse.swt.widgets.Display getStandardDisplay()
public static org.eclipse.core.resources.IWorkspace getWorkspace()
public org.eclipse.swt.graphics.Image getImage(java.lang.String name)
Note: Images returned from this method will be automitically disposed of when this plug-in shuts down. Callers must not dispose of these images themselves.
name
- the image name found in /icons (with extension)
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String name)
Note: ImageDescriptor returned from this method will be automatically disposed of when this plug-in shuts down. Callers must not dispose of these ImageDescriptor themselves.
name
- the ImageDescriptor name found in /icons (with extension)
public java.io.InputStream readFile(java.lang.String file) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public java.io.File getFile(java.lang.String file) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public static org.eclipse.core.runtime.Path getInstallLocation()
public static org.eclipse.wst.sse.core.internal.provisional.IModelManager getModelManager()
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
public static org.eclipse.swt.widgets.Display getDisplay()
public static org.eclipse.core.resources.IProject getCurrentProject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |