public class SHARPModel extends Item
An SHARP Item for creating SHARP input files. This Item expects to find the input specifications generated from SHARP in the ${workspace}/SHARP directory. The specifications can be found at http://projects.eclipse.org/projects/technology.ice in the "files" section or in the ICE repository. The files are in the native ICE form specified by the XML schema (ICESchema.xsd) available from the same source.
This class' Item builder sets the identity of the SHARP-based application using loadSpecContents().
component
Constructor and Description |
---|
SHARPModel()
The constructor.
|
SHARPModel(org.eclipse.core.resources.IProject projectSpace)
The constructor with a project space in which files should be
manipulated.
|
Modifier and Type | Method and Description |
---|---|
FormStatus |
process(java.lang.String actionName)
This operation creates the SHARP input file.
|
addListener, cancelProcess, cancelProcess, clone, copy, disable, equals, getAvailableActions, getDescription, getForm, getId, getItemBuilderName, getItemType, getName, getOutputFile, getResource, getResource, getStatus, hashCode, hasProject, isEnabled, loadFromPSF, loadInput, reloadProjectData, setActionFactory, setDescription, setId, setIOService, setItemBuilderName, setName, setProject, setupFormWithServices, submitForm, update, update, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public SHARPModel()
The constructor.
public SHARPModel(org.eclipse.core.resources.IProject projectSpace)
The constructor with a project space in which files should be manipulated.
projectSpace
- The Eclipse project where files should be stored and from which they should be retrieved.
public FormStatus process(java.lang.String actionName)
This operation creates the SHARP input file.
process
in class Item
actionName
- The name of action that should be performed using the processed Form data.
The status of the Item after processing the Form and executing the action. It returns FormStatus.InfoError if it is unable to run for any reason, including being asked to run actions that are not in the list of available actions.