org.eclipse.jpt.jpa.ui
Class JptJpaUiPlugin

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

public class JptJpaUiPlugin
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 JPQL_IDENTIFIER_CASE_PREF_KEY
          The preference key used to retrieve the case used for JPQL identifiers.
static java.lang.String JPQL_IDENTIFIER_LOWERCASE_PREF_VALUE
           
static java.lang.String JPQL_IDENTIFIER_MATCH_FIRST_CHARACTER_CASE_PREF_KEY
           
static java.lang.String JPQL_IDENTIFIER_UPPERCASE_PREF_VALUE
           
static java.lang.String PLUGIN_ID
          The plug-in identifier of JPA UI support (value "org.eclipse.jpt.jpa.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
JptJpaUiPlugin()
           
 
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 JptJpaUiPlugin instance()
          Returns the singleton JPT UI plug-in.
static void log(org.eclipse.core.runtime.IStatus status)
          Log the specified status.
static void log(java.lang.String msg)
          Log the specified message.
static void log(java.lang.String msg, java.lang.Throwable throwable)
          Log the specified message and exception or error.
static void log(java.lang.Throwable throwable)
          Log the specified exception or error.
 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.jpa.ui").

See Also:
Constant Field Values

PLUGIN_ID_

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

JPQL_IDENTIFIER_CASE_PREF_KEY

public static final java.lang.String JPQL_IDENTIFIER_CASE_PREF_KEY
The preference key used to retrieve the case used for JPQL identifiers.

See Also:
Constant Field Values

JPQL_IDENTIFIER_LOWERCASE_PREF_VALUE

public static final java.lang.String JPQL_IDENTIFIER_LOWERCASE_PREF_VALUE
See Also:
Constant Field Values

JPQL_IDENTIFIER_UPPERCASE_PREF_VALUE

public static final java.lang.String JPQL_IDENTIFIER_UPPERCASE_PREF_VALUE
See Also:
Constant Field Values

JPQL_IDENTIFIER_MATCH_FIRST_CHARACTER_CASE_PREF_KEY

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

JptJpaUiPlugin

public JptJpaUiPlugin()
Method Detail

instance

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


log

public static void log(java.lang.String msg)
Log the specified message.


log

public static void log(java.lang.Throwable throwable)
Log the specified exception or error.


log

public static void log(java.lang.String msg,
                       java.lang.Throwable throwable)
Log the specified message and exception or error.


log

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


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