|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ercp.eworkbench.ApplicationRegistry
public class ApplicationRegistry
eRCP Application registry.
Constructor Summary | |
---|---|
ApplicationRegistry()
Construct a new registry. |
Method Summary | |
---|---|
void |
addApplication(ApplicationDescriptor desc)
Adds an application. |
void |
addExtension(IExtensionTracker tracker,
IExtension addedExtension)
This method is called whenever an extension conforming to the extension point filter is being added to the registry. |
ApplicationDescriptor |
createApplication(java.lang.String label)
Create a new application. |
void |
deleteApplication(IApplicationDescriptor in)
Delete an application. |
void |
dispose()
|
IApplicationDescriptor |
findApplicationWithId(java.lang.String id)
Finds and returns the registered application with the given app id. |
IApplicationDescriptor |
findApplicationWithLabel(java.lang.String label)
Finds and returns the registered application with the given app id. |
IApplicationDescriptor[] |
getApplications()
Returns a list of the applications known to the workbench. |
void |
load()
Loads the registry. |
void |
removeExtension(IExtension source,
java.lang.Object[] objects)
This method is called after the removal of an extension. |
boolean |
validateLabel(java.lang.String label)
Return true if a label is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationRegistry()
Method Detail |
---|
public void addApplication(ApplicationDescriptor desc)
desc
- public ApplicationDescriptor createApplication(java.lang.String label)
label
- the name of the new descriptororiginalDescriptor
- the descriptor on which to base the new descriptor
null
if the
creation failed.public void deleteApplication(IApplicationDescriptor in)
in
- public IApplicationDescriptor findApplicationWithId(java.lang.String id)
IApplicationRegistry
findApplicationWithId
in interface IApplicationRegistry
public IApplicationDescriptor findApplicationWithLabel(java.lang.String label)
IApplicationRegistry
findApplicationWithLabel
in interface IApplicationRegistry
public IApplicationDescriptor[] getApplications()
IApplicationRegistry
getApplications
in interface IApplicationRegistry
public void load()
public boolean validateLabel(java.lang.String label)
true
if a label is valid.
This checks only the given label in isolation. It does not
check whether the given label is used by any
existing applications.
label
- the label to test
public void dispose()
public void removeExtension(IExtension source, java.lang.Object[] objects)
IExtensionChangeHandler
removeExtension
in interface IExtensionChangeHandler
source
- the extension being removedobjects
- the objects that were associated with the removed extensionpublic void addExtension(IExtensionTracker tracker, IExtension addedExtension)
IExtensionChangeHandler
addExtension
in interface IExtensionChangeHandler
tracker
- a tracker to which the handler has been registeredaddedExtension
- the extension being added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |