org.eclipse.jpt.ui
Class JptUiPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.jpt.ui.JptUiPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class JptUiPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

Dali UI plug-in.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
static java.lang.String PLUGIN_ID
          The plug-in identifier of JPA UI support (value "org.eclipse.jpt.ui").
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
JptUiPlugin()
           
 
Method Summary
 void controlAffectsJavaSource(org.eclipse.swt.widgets.Control control)
          Tag the specified control so that whenever it (or any of its children, grandchildren, etc.) has the focus, the Dali model ignores any Java change events.
static org.eclipse.swt.graphics.Image getImage(java.lang.String key)
          Return an image for the specified .gif file in the icons folder.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String key)
          Return an image descriptor for the specified .gif file in the icons folder.
 JpaNavigatorProvider getJpaNavigatorProvider(JpaPlatform jpaPlatform)
           
 JpaPlatformUi getJpaPlatformUi(JpaPlatform jpaPlatform)
          Return the JPA platform UI corresponding to the specified JPA platform.
static JptUiPlugin instance()
          Returns the singleton JPT UI plug-in.
static void log(org.eclipse.core.runtime.IStatus status)
           
static void log(java.lang.String msg)
           
static void log(java.lang.Throwable throwable)
           
 void start(org.osgi.framework.BundleContext context)
          Register our SWT listener with the display so we receive notification of every "focus in" event.
 void stop(org.osgi.framework.BundleContext context)
          Unregister our SWT listener with the display.
 
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

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
The plug-in identifier of JPA UI support (value "org.eclipse.jpt.ui").

See Also:
Constant Field Values

PLUGIN_ID_

public static final java.lang.String PLUGIN_ID_
See Also:
Constant Field Values
Constructor Detail

JptUiPlugin

public JptUiPlugin()
Method Detail

instance

public static JptUiPlugin instance()
Returns the singleton JPT UI plug-in.


log

public static void log(org.eclipse.core.runtime.IStatus status)

log

public static void log(java.lang.String msg)

log

public static void log(java.lang.Throwable throwable)

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String key)
Return an image descriptor for the specified .gif file in the icons folder.


getImage

public static org.eclipse.swt.graphics.Image getImage(java.lang.String key)
Return an image for the specified .gif file in the icons folder.


controlAffectsJavaSource

public void controlAffectsJavaSource(org.eclipse.swt.widgets.Control control)
Tag the specified control so that whenever it (or any of its children, grandchildren, etc.) has the focus, the Dali model ignores any Java change events. This method is to be called when the control is first constructed.


getJpaPlatformUi

public JpaPlatformUi getJpaPlatformUi(JpaPlatform jpaPlatform)
Return the JPA platform UI corresponding to the specified JPA platform.


getJpaNavigatorProvider

public JpaNavigatorProvider getJpaNavigatorProvider(JpaPlatform jpaPlatform)

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Register our SWT listener with the display so we receive notification of every "focus in" event.

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Unregister our SWT listener with the display.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception