|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.compile.SystemCompileType
A SystemCompileType is effectively an index that maps a compilable source type (like ".cpp") to a list of SystemCompileCommand objects that represent the commands that are registered against that source type. It also remembers the last-used such compile command.
There is a one-to-one relationship between a source type like (".cpp") and a SystemCompileType... for each compilable source type there will be one SystemCompileType object. It is a list of these that is effectively persisted to disk via an xml file, one file per system profile. This is what the SystemCompileProfile class manages ... a list of SystemCompileProfile objects.
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
SystemCompileType(SystemCompileProfile profile)
Constructor for SystemCompileType when the source type isn't known yet. |
|
SystemCompileType(SystemCompileProfile profile,
String type)
Constructor for SystemCompileType when you know the source type it represents. |
|
SystemCompileType(SystemCompileProfile profile,
String type,
SystemCompileCommand lastUsedCompileCmd)
Constructor for SystemCompileType when you know the source type and last used command |
Method Summary | |
---|---|
void |
addCompileCommand(SystemCompileCommand command)
Add a compile command at the end. |
void |
addCompileCommandInOrder(SystemCompileCommand compileCommand)
Add a compile command, into its appropriate order as per its getOrder() value. |
Object |
getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. |
SystemCompileCommand |
getCompileCommand(int index)
Get the compile command, given its index |
Vector |
getCompileCommands()
Get all compile commands associated with this type |
SystemCompileCommand[] |
getCompileCommandsArray()
Get all compile commands associated with this type, as an array. |
Vector |
getCompileId(String id)
Get compile commands, given the id. |
SystemCompileCommand |
getCompileLabel(String label)
Get the compile command, given its label |
Vector |
getExistingLabels()
Return a vector of Strings representing the labels for all the compile commands within this type. |
SystemCompileCommand |
getLastUsedCompileCommand()
Get the last used compile command |
Vector |
getNonPromptableCompileCommands()
Get all non-promptable compile commands associated with this type |
int |
getNumOfCommands()
Get the number of compile commands associated with this type |
SystemCompileProfile |
getParentProfile()
Get the parent SystemCompileProfile profile |
Vector |
getPromptableCompileCommands()
Get all promptable compile commands associated with this type |
String |
getType()
Get the source type value this represents. |
void |
insertCompileCommand(SystemCompileCommand compileName,
int index)
Insert a compile command at the given index |
boolean |
isDuplicateLabelExists(String nameString)
Find out if a compile label with the same name already exists. |
boolean |
isIdExists(String id)
Find out if a given compile label already exists |
boolean |
isLabelExists(String nameString)
Find out if a given compile label already exists |
SystemCompileCommand |
removeCompileCommand(int index)
Remove a compile command given its index |
void |
removeCompileCommand(SystemCompileCommand cmd)
Remove a compile command give its reference |
void |
setLastUsedCompileCommand(SystemCompileCommand lastUsedCompileCommand)
Set the last used compile command |
void |
setParentProfile(SystemCompileProfile profile)
Set the parent SystemCompileProfile profile |
void |
setType(String type)
Set the source type value this represents. |
String |
toString()
Return this object as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public SystemCompileType(SystemCompileProfile profile)
setType(String)
public SystemCompileType(SystemCompileProfile profile, String type)
public SystemCompileType(SystemCompileProfile profile, String type, SystemCompileCommand lastUsedCompileCmd)
Method Detail |
public void setParentProfile(SystemCompileProfile profile)
public SystemCompileProfile getParentProfile()
public void setType(String type)
public String getType()
public void setLastUsedCompileCommand(SystemCompileCommand lastUsedCompileCommand)
public SystemCompileCommand getLastUsedCompileCommand()
public void addCompileCommand(SystemCompileCommand command)
public void addCompileCommandInOrder(SystemCompileCommand compileCommand)
public void removeCompileCommand(SystemCompileCommand cmd)
cmd
- the compile command to removepublic SystemCompileCommand removeCompileCommand(int index)
index
- the zero-based index of the compile command to removepublic void insertCompileCommand(SystemCompileCommand compileName, int index)
index
- the zero-based index to insert it atpublic Vector getCompileCommands()
public SystemCompileCommand[] getCompileCommandsArray()
public int getNumOfCommands()
public Vector getPromptableCompileCommands()
public Vector getNonPromptableCompileCommands()
public SystemCompileCommand getCompileLabel(String label)
public Vector getCompileId(String id)
public boolean isIdExists(String id)
public SystemCompileCommand getCompileCommand(int index)
public boolean isLabelExists(String nameString)
public boolean isDuplicateLabelExists(String nameString)
public Vector getExistingLabels()
public String toString()
public Object getAdapter(Class adapterType)
getAdapter
in interface IAdaptable
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |