|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.deploy.dt.DeployDesignTime
oracle.jdeveloper.deploy.dt.DeployProfileDt
public abstract class DeployProfileDt
An instance of this class implements design-time support for its particular deployment profile type and has three responsibilities:
Controller and
ContextMenuListener interfaces, inherited from
DeployDesignTime.
NodeInfo.
| Constructor Summary | |
|---|---|
DeployProfileDt()
|
|
| Method Summary | |
|---|---|
void |
addDeploymentSubmenu(Context context,
javax.swing.JMenu profileSubMenu)
|
boolean |
addToApplicationAssemblyOnProfileAutogen()
Returns true if the profile created by this type of DeployProfileDt should be added to the default application level profile. |
protected Node |
createDesignTimeNode(Context context)
The implementation of this method makes use of the template method design pattern. |
protected java.net.URL |
ensureSuffix(java.net.URL selectedURL)
Part of template method design pattern. |
protected Node |
findOrCreateDeployNode(java.net.URL saveURL)
Part of template method design pattern. |
protected void |
finishCreation(Context profileContext,
Profile profile)
|
Attributes |
getAttributes()
This implementation returns attributes that make the deployment profile node deletable, saveable, renameable, closeable, and not deployable. |
protected Context |
getCreationContext()
Returns the Context being used for the
Profile being created. |
protected abstract java.lang.String |
getDefaultProfileName()
Returns the prefix for the default deployment profile name that is generated for the user when a newly created deployment profile is being saved. |
protected abstract java.lang.String |
getDisplayName()
Returns the display name that is used to identify the deployment profile in the object gallery. |
javax.swing.Icon |
getIcon()
This implementatino returns a generic icon representing the deployment profile. |
java.lang.String |
getLongLabel()
Returns a long label that can be displayed to the user. |
java.lang.String |
getMostRecentDeployTarget()
|
java.lang.Class |
getNodeClass()
This implementation returns the XMLDataNode class. |
java.lang.String |
getShortLabel()
Returns a short label that can be displayed to the user. |
protected java.lang.String |
getSuffix()
|
protected java.lang.String[] |
getTechnologyKeys()
Support for technology scopes in deployment profiles. |
java.lang.String |
getToolTipText()
Returns the tool tip text to show when the mouse pointer pauses over a UI component that represents this Displayable. |
java.lang.String |
getUniqueName(java.util.Set usedNames)
Generates a new unique namefor the deployment profile. |
java.lang.String |
getXMLNamespaceURI()
This implementation always returns null. |
protected boolean |
isCreatedInContainer()
|
protected boolean |
launchDialog(Context context,
Profile profile)
|
protected Profile |
newContainerDeploymentProfile(Context context)
The implementation of this method makes use of the template method design pattern. |
protected Profile |
newProfileInstance(DataContainer container,
java.lang.String profileName)
|
protected java.net.URL |
newUniqueURL(Context context)
Part of template method design pattern. |
protected void |
setCreationContext(Context context)
Sets the creation Context being used for profile creation. |
boolean |
supportsApplicationLevelCreation()
Returns true if this type of DeployProfileDt can be used to create an application-level profile. |
boolean |
supportsProjectLevelCreation()
Returns true if this type of DeployProfileDt can be used to create a project-level profile. |
java.lang.String |
toString()
Returns the Short Label displayed to a user. |
| Methods inherited from class oracle.jdeveloper.deploy.dt.DeployDesignTime |
|---|
createDeployMenuItem, createDeployMenuItem, createDeployMenuItem, createIdeAction, getDefaultCommand, getLabelForCommand, handleDefaultAction, handleEvent, isInSupportedNavigator, isInSupportedNavigator, menuWillHide, menuWillShow, startup, unwrapData, unwrapData, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.NodeInfo |
|---|
getDataClass, getXMLRootElement |
| Constructor Detail |
|---|
public DeployProfileDt()
| Method Detail |
|---|
public java.lang.Class getNodeClass()
XMLDataNode class.
getNodeClass in interface NodeInfoNodeInfo.getNodeClass()public javax.swing.Icon getIcon()
getIcon in interface DisplayablegetIcon in interface NodeInfoIcon to be displayed for the
Displayable.NodeInfo.getIcon()public java.lang.String getXMLNamespaceURI()
null.
Subclasses should return a meaningful value from this method
if the XML namespace URI is to be used for recognizing
purposes.
getXMLNamespaceURI in interface NodeInfopublic Attributes getAttributes()
getAttributes in interface NodeInfoNodeInfo.getAttributes()public java.lang.String getShortLabel()
DisplayableString is considered
translatable and should therefore be placed in an appropriate
resource file. When possible, the returned label should be
reasonably short enough to show in the navigator or explorer
windows but long enough to clearly identify and distinguish the
Displayable.
getShortLabel in interface DisplayableDisplayable
that can be shown to the user.public java.lang.String getLongLabel()
DisplayableString is considered translatable
and should therefore be placed in an appropriate resource file.
The long label differs from the short label essentially on length.
Usually the long label will only be shown on-demand and in places
where horizontal space is more available. Examples are the status
bar and tooltips.
getLongLabel in interface DisplayableDisplayable that
can be shown to the user.public java.lang.String getToolTipText()
DisplayableDisplayable.
In many cases it may be appropriate for this method to return the
same value as Displayable.getLongLabel().
getToolTipText in interface DisplayableDisplayable.public java.lang.String toString()
DisplayabletoString method in java.lang.Object.
Implementors of the Displayable interface should
override this as appropriate. The default implementation is
the same as getShortLabel
toString in interface DisplayabletoString in class java.lang.ObjectObject.toString(),
Displayable.getShortLabel()protected boolean isCreatedInContainer()
protected boolean launchDialog(Context context,
Profile profile)
protected Profile newProfileInstance(DataContainer container,
java.lang.String profileName)
public void addDeploymentSubmenu(Context context,
javax.swing.JMenu profileSubMenu)
public java.lang.String getMostRecentDeployTarget()
protected java.lang.String[] getTechnologyKeys()
protected Node createDesignTimeNode(Context context)
This method is the launching point for the wizard that steps the
user through the creation of a deployment profile. The default
implementation puts up a URLChooser dialog for the
default save location of the profile. Subclasses can customize
this method to provide whatever UI is appropriate.
This method will return null if something goes wrong
during creation or if the user canceled creation.
protected Profile newContainerDeploymentProfile(Context context)
This method is the launching point for the wizard that steps the user through the creation of a deployment profile. Subclasses can customize this method to provide whatever UI is appropriate.
This method will return null if something goes wrong
during creation or if the user canceled creation.
protected void finishCreation(Context profileContext,
Profile profile)
protected abstract java.lang.String getDisplayName()
NOTE: The returned string is translatable.
protected abstract java.lang.String getDefaultProfileName()
NOTE: The returned string is translatable, even if it is some form of abbreviation.
protected java.net.URL newUniqueURL(Context context)
#newDeploymentProfile(Context).
Generates a new unique URL for the deployment profile.
The Context is provided to help build the default
URL.
public java.lang.String getUniqueName(java.util.Set usedNames)
Set is provided to help build the default
name and contains the profile names already in the container (project/workspace).
protected final java.net.URL ensureSuffix(java.net.URL selectedURL)
#newDeploymentProfile(Context).
Ensures that the specified URL has the ".deploy"
suffix. If the suffix must be added, a new URL is
created (since URLs are immutable).
protected java.lang.String getSuffix()
protected Node findOrCreateDeployNode(java.net.URL saveURL)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
#newDeploymentProfile(Context).
This method first checks if the path selected is already in the
NodeFactory cache. If so, the user is requesting to
overwrite it; the old Node is removed from the cache
before the new Node is created.
java.lang.IllegalAccessException
java.lang.InstantiationExceptionprotected final Context getCreationContext()
Context being used for the
Profile being created.
protected final void setCreationContext(Context context)
Context being used for profile creation.
public boolean supportsApplicationLevelCreation()
public boolean supportsProjectLevelCreation()
public boolean addToApplicationAssemblyOnProfileAutogen()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||