org.eclipse.stp.core.infrastructure.emf
Interface ITechnologyFlavorLifecycle


public interface ITechnologyFlavorLifecycle

An ITechnologyFlavorLifecycle provides an opportunity to manage other technologies that are related to a set of resources, but may not be EMF based.

The ITechnologyFlavorLifecycles are integrated into the IEditModel framework through IEditingDomains. As lifecycle operations are invoked on the IEditModelScribbler, those methods will be delegated into the Lifecycle at the appropriate time.


Field Summary
static int DISCARD
           
static int SAVE
           
 
Method Summary
 void close(int option, IProgressMonitor monitor)
          Close the model elements held onto by the manager.
 ITechnologyFlavor createFlavor(IAdaptable adaptable)
           
 void discard(IProgressMonitor monitor)
          Discard any changes made to this point and release any model elements held onto by the manager.
 java.lang.String getId()
          Returns the identifier for this manager.
 void revert(IProgressMonitor monitor)
          Revert all changes made to the form found on disk.
 void save(boolean force, IProgressMonitor monitor)
          Persist all changes from the models managed by this ITechnologyFlavorManager
 

Field Detail

SAVE

static final int SAVE
See Also:
Constant Field Values

DISCARD

static final int DISCARD
See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Returns the identifier for this manager.

Returns:

createFlavor

ITechnologyFlavor createFlavor(IAdaptable adaptable)

save

void save(boolean force,
          IProgressMonitor monitor)
Persist all changes from the models managed by this ITechnologyFlavorManager

This method will also persist any requests to delete resource (from deleteResource()).

Parameters:
force - Specifies whether the save should be forced
monitor -
Throws:
EditModelException

revert

void revert(IProgressMonitor monitor)
Revert all changes made to the form found on disk.

Parameters:
monitor -

discard

void discard(IProgressMonitor monitor)
Discard any changes made to this point and release any model elements held onto by the manager.

Parameters:
monitor -

close

void close(int option,
           IProgressMonitor monitor)
Close the model elements held onto by the manager. Use the option supplied to determine if a save or discard should execute for any changes that have been made but not saved.

Parameters:
option -
monitor -