public final class DatabaseConnectionEditor
extends java.lang.Object
For full control over the editor, call createLauncher()
to get a
launcher which can then be customised before launching the actual dialog.
Use AppDatabaseConnectionEditor
to create/edit an
application's connections
Modifier and Type | Class and Description |
---|---|
static interface |
DatabaseConnectionEditor.ConnectionEditor
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseConnectionEditorLauncher |
createLauncher()
Creates a new launcher for the database connection create/edit dialog.
|
static ConnectionInfo |
editConnection(ConnectionInfo info,
boolean allowAllStores)
Launches the connection editor.
|
static java.lang.String |
editConnection(java.lang.String connName)
Deprecated.
|
static java.lang.String |
editConnection(java.lang.String storeName,
java.lang.String connName)
Launches the connection editor.
|
static java.lang.String |
editConnection(java.lang.String storeName,
java.lang.String connName,
boolean allowAllStores)
Launches the connection editor.
|
static void |
setEditor(java.lang.Class<? extends DatabaseConnectionEditor.ConnectionEditor> ed)
Deprecated.
- use
setLauncher(java.lang.Class<? extends oracle.jdeveloper.db.DatabaseConnectionEditorLauncher>) , the new launcher class is more
powerful as it can return the chosen store and connection name together,
and is also more flexible for change (abstract class rather than an
interface). |
static void |
setLauncher(java.lang.Class<? extends DatabaseConnectionEditorLauncher> clz)
Deprecated.
use extension.xml hook (see above).
|
@Deprecated public static void setEditor(java.lang.Class<? extends DatabaseConnectionEditor.ConnectionEditor> ed)
setLauncher(java.lang.Class<? extends oracle.jdeveloper.db.DatabaseConnectionEditorLauncher>)
, the new launcher class is more
powerful as it can return the chosen store and connection name together,
and is also more flexible for change (abstract class rather than an
interface).@Deprecated public static void setLauncher(java.lang.Class<? extends DatabaseConnectionEditorLauncher> clz)
This method has been deprecated in favour of the following extension.xml hook:
<database-connection-hook xmlns="http://xmlns.oracle.com/ide/db/extension"> <connection-editor-launcher>com.example.MyEditLauncher</connection-editor-launcher> </database-connection-hook>
clz
- public static DatabaseConnectionEditorLauncher createLauncher()
@Deprecated public static java.lang.String editConnection(java.lang.String connName)
editConnection(String,String)
connName
- name of the connection to edit, or null to prompt the
user to create a new connection.public static java.lang.String editConnection(java.lang.String storeName, java.lang.String connName)
AppDatabaseConnectionEditor
to create/edit an application's connectionsstoreName
- the store of connections the connection will be edited in.
If null, the store will be worked out from the context, but then there is
the potential for the store to be unknown for a created connection as only
the name is returned.connName
- name of the connection to edit, or null to prompt the
user to create a new connection.public static java.lang.String editConnection(java.lang.String storeName, java.lang.String connName, boolean allowAllStores)
storeName
- the store of connections the connection will be edited in.connName
- name of the connection to edit, or null to prompt the
user to create a new connection.allowAllStores
- used for features that are centric to the database
navigator and not application based. if true the user gets a choice of
all available connection stores.public static ConnectionInfo editConnection(ConnectionInfo info, boolean allowAllStores)
info
- store/conection name of the connection to edit, or null to
prompt the user to create a new connection. The info can have a store
but no name to default the creation to a specific store.allowAllStores
- used for features that are centric to the database
navigator and not application based. if true the user gets a choice of
all available connection stores.