|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkbenchProfileSession
Session facade to access IWorkbenchProfiles, edit and create them
This session is available from the API (@see API)
There is only one active IWorkbenchProfile per runtime. (@see
#getActiveProfile())
It is possible for any object to register interest in changes of the active
profile by implementing the IActiveWorkbenchProfileChangeListener
interface
Method Summary | |
---|---|
void |
addActiveProfileListener(org.eclipse.tigerstripe.internal.api.profile.IActiveWorkbenchProfileChangeListener listener)
Registers a listener that will be called back each time the active profile changes |
boolean |
canRollback()
Returns true if a rollback file can be found to perform a rollback |
IWorkbenchProfile |
getActiveProfile()
Returns the active profile for this runtime. |
IWorkbenchProfile |
getWorkbenchProfileFor(java.lang.String pathname)
|
IWorkbenchProfile |
makeWorkbenchProfile()
Factory method for IWorkbenchProfiles |
void |
reloadActiveProfile()
Loads the active profile from the default Workbench profile location for this install. |
void |
removeActiveProfileListener(org.eclipse.tigerstripe.internal.api.profile.IActiveWorkbenchProfileChangeListener listener)
Un-registers the given listener from the list of active profile listeners |
IWorkbenchProfile |
rollbackActiveProfile()
Rolls back the active profile to its previous version. |
boolean |
saveAsActiveProfile(IWorkbenchProfile profile)
Sets the given profile as the active profile by saving it as such. |
boolean |
setDefaultActiveProfile()
Sets the active profile to the factory defaults. |
Method Detail |
---|
IWorkbenchProfile getActiveProfile()
void reloadActiveProfile()
boolean setDefaultActiveProfile() throws TigerstripeException
TigerstripeException
IWorkbenchProfile makeWorkbenchProfile()
IWorkbenchProfile getWorkbenchProfileFor(java.lang.String pathname) throws TigerstripeException
TigerstripeException
boolean saveAsActiveProfile(IWorkbenchProfile profile) throws TigerstripeException
Note: the profile is NOT reloaded, the action only sets up the given profile as the active profile. A reloadActiveProfile() is required.
profile
-
TigerstripeException
IWorkbenchProfile rollbackActiveProfile() throws TigerstripeException
Note: the profile is NOT reloaded, the rollback action only sets up the previous profile as the active profile. A reloadActiveProfile() is required.
TigerstripeException
boolean canRollback()
void addActiveProfileListener(org.eclipse.tigerstripe.internal.api.profile.IActiveWorkbenchProfileChangeListener listener)
listener
- void removeActiveProfileListener(org.eclipse.tigerstripe.internal.api.profile.IActiveWorkbenchProfileChangeListener listener)
listener
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |