|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.wizard.Wizard
oracle.jdeveloper.offlinedb.wizard.ProviderWizard
public class ProviderWizard
Wizard for creating an Offline Database (OfflineDBObjectProvider). The class also contains static methods for creating, editing and choosing Offline Database providers.
Constructor Summary | |
---|---|
ProviderWizard() |
Method Summary | |
---|---|
static void |
addPanel(java.lang.String title, java.lang.Class panel, java.lang.String helpID) Adds a panel to the ProviderWizard so that whenever a provider is created, or its settings edited, the given panel appear in the dialog. |
static OfflineDBObjectProvider |
chooseProvider(Context c, boolean allowApplicationCreate, boolean allowProjectCreate, boolean allowProviderCreate) Prompts the user to choose an offline database in the given Context, optionally they can be allowed to create a new one. |
static OfflineDBObjectProvider |
chooseProvider(Context c, OfflineDBObjectProvider defaultSelection, boolean allowApplicationCreate, boolean allowProjectCreate, boolean allowProviderCreate) Prompts the user to choose an offline database in the given Context, optionally they can be allowed to create a new one. |
static OfflineDBObjectProvider |
chooseProvider(Project p, boolean allowProviderCreate) Prompts the user to choose an offline database in the given Project, optionally they can be allowed to create a new one. |
static OfflineDBObjectProvider |
chooseProvider(Project p, boolean allowProviderCreate, boolean incProjDeps) Prompts the user to choose an offline database in the given Project, optionally they can be allowed to create a new one. |
static OfflineDBObjectProvider |
chooseProvider(Project p, boolean allowProviderCreate, Database db) Allow the user to choose an offline provider that is compatible with the given provider settings from the given project (including its dependencies), The supplied Database will be used as the base for the offline database. |
static OfflineDBObjectProvider |
chooseProvider(Project p, OfflineDBObjectProvider pro) Allow the user to choose an offline provider that is compatible with the given provider from the given project (including its dependencies). |
static OfflineDBObjectProvider |
chooseProvider(Project p, ProviderSettings settings, java.net.URL url) Allow the user to choose an offline provider that is compatible with the given provider settings from the given project (including its dependencies). |
static OfflineDBObjectProvider |
createProvider(Context c) Launches the dialog to create a provider. |
static OfflineDBObjectProvider |
createProvider(Context c, java.lang.String name, java.lang.String schema, java.lang.Class clz) Launches the dialog to create a provider, based on supplied values |
static boolean |
editProvider(Context c) Launches the editor on the provider in the given context. |
static OfflineDBObjectProvider |
findOrCreateProviderNode(Project p, ProviderSettings settings) |
javax.swing.Icon |
getIcon() Gets the Icon to use in the Object Gallery. |
java.lang.String |
getLongLabel() Provides a description of the Wizard that appears in the hint text area of the Object Gallery. |
java.lang.String |
getShortLabel() Provides the label that represents the Wizard in the Object Gallery. |
static void |
initialiseTemplates(Context c, OfflineDBObjectProvider pro, java.lang.Boolean initialise, java.lang.Boolean edit) Called to handle the templates of a given offline database. |
boolean |
invoke(Context context) Invokes the wizard. |
boolean |
isAvailable(Context context) Called when the sensitivity of the menu item that opens this wizard must be determined. |
static void |
removePanel(java.lang.String title) Removes a previously registered panel from the ProviderWizard. |
static void |
showMissingProviderError(Context c, java.lang.String title) Shows a dialog to the user letting them know that the .offlinedb file is missing and we cannot continue without it. |
Methods inherited from class oracle.ide.wizard.Wizard |
---|
getLegacyParams, getMenuSpecification, getToolTipText, setLegacyParams, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProviderWizard()
Method Detail |
---|
public boolean isAvailable(Context context)
Wizard
isAvailable
in class Wizard
context
- The Context
to use when invoking this Wizard
.true
if the wizard can be invoked, or false
otherwise.public java.lang.String getShortLabel()
Wizard
getShortLabel
in class Wizard
public javax.swing.Icon getIcon()
Wizard
Icon
to use in the Object Gallery. If this Wizard is not accessed from the Object Gallery, the Wizard should return null
.getIcon
in class Wizard
Icon
to be displayed in the Object Gallery.public java.lang.String getLongLabel()
Wizard
Wizard.getShortLabel()
.getLongLabel
in class Wizard
public boolean invoke(Context context)
Wizard
invoke
in class Wizard
context
- The context of the wizard. All parameters required by the wizard must be set on the context. The wizard may also return values to the caller by setting them into the Context for the caller to retrieve.true
if the invocation was successful, false
if it failed or was canceled.public static void addPanel(java.lang.String title, java.lang.Class panel, java.lang.String helpID)
public static void removePanel(java.lang.String title)
public static OfflineDBObjectProvider chooseProvider(Project p, boolean allowProviderCreate)
public static OfflineDBObjectProvider chooseProvider(Project p, OfflineDBObjectProvider pro)
public static OfflineDBObjectProvider chooseProvider(Project p, ProviderSettings settings, java.net.URL url)
public static OfflineDBObjectProvider chooseProvider(Project p, boolean allowProviderCreate, boolean incProjDeps)
public static OfflineDBObjectProvider chooseProvider(Context c, boolean allowApplicationCreate, boolean allowProjectCreate, boolean allowProviderCreate)
public static OfflineDBObjectProvider chooseProvider(Project p, boolean allowProviderCreate, Database db)
public static OfflineDBObjectProvider chooseProvider(Context c, OfflineDBObjectProvider defaultSelection, boolean allowApplicationCreate, boolean allowProjectCreate, boolean allowProviderCreate)
public static boolean editProvider(Context c)
public static OfflineDBObjectProvider createProvider(Context c, java.lang.String name, java.lang.String schema, java.lang.Class clz)
c
- an IdeContext, possibly taken from the Travesablecontextname
- the value to populate the set the name field in the provider dialogschema
- the value to populate the schema field in the provider dialogclz
- the class needed to populate the Database emulaion value.public static OfflineDBObjectProvider createProvider(Context c)
public static OfflineDBObjectProvider findOrCreateProviderNode(Project p, ProviderSettings settings) throws java.io.IOException, DBException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.io.IOException
DBException
java.lang.IllegalAccessException
java.lang.InstantiationException
public static void showMissingProviderError(Context c, java.lang.String title)
c
- the current contexttitle
- the title for the resulting dialog (if null a default will be used).public static void initialiseTemplates(Context c, OfflineDBObjectProvider pro, java.lang.Boolean initialise, java.lang.Boolean edit)
c
- the current IDE contextpro
- the offline database to initialise the templates oninitialise
- whether to initialise default templates for the given offline databaseedit
- whether to launch the template editor dialog on the offline database's template settings.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |