iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core.compile
Class ISeriesCompileProfile

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.compile.SystemCompileProfile
      extended bycom.ibm.etools.iseries.core.compile.ISeriesCompileProfile
All Implemented Interfaces:
com.ibm.etools.systems.core.ui.compile.ISystemCompileXMLConstants

public class ISeriesCompileProfile
extends com.ibm.etools.systems.core.ui.compile.SystemCompileProfile

ISeries native OS/400 flavour of the compile profile object, which manages a list of compile types, which in turn manages a list of compile commands per compilable source type.

Instantiated by the ISeries Objects subsystem factory.


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.systems.core.ui.compile.ISystemCompileXMLConstants
COMPILECOMMAND_ELEMENT, COPYRIGHT_ELEMENT, COPYRIGHT_TEXT, CURRENT_ATTRIBUTE, DEFAULT_ATTRIBUTE, FILE_NAME, ID_ATTRIBUTE, JOBENV_ATTRIBUTE, LABEL_ATTRIBUTE, LABEL_EDITABLE_ATTRIBUTE, LASTUSED_ATTRIBUTE, MENU_ATTRIBUTE, MENU_BOTH_VALUE, MENU_NON_PROMPTABLE_VALUE, MENU_NONE_VALUE, MENU_PROMPTABLE_VALUE, NATURE_ATTRIBUTE, NATURE_IBM_VALUE, NATURE_ISV_VALUE, NATURE_USER_VALUE, ORDER_ATTRIBUTE, ROOT_ELEMENT, STRING_EDITABLE_ATTRIBUTE, TYPE_ATTRIBUTE, TYPE_ELEMENT, VERSION_ATTRIBUTE, VERSION_VALUE
 
Constructor Summary
ISeriesCompileProfile(com.ibm.etools.systems.core.ui.compile.SystemCompileManager manager, String profileName)
          Constructor for ISeriesCompileProfile Will automatically read from disk
 
Method Summary
protected  void doPreRead()
          This method is called by the constructor, prior to reading the xml contents from disk.
 com.ibm.etools.systems.core.ui.compile.SystemCompilableSource getCompilableSourceObject(Shell shell, Object selectedObject, com.ibm.etools.systems.core.ui.compile.SystemCompileCommand compileCmd, boolean isPrompt, Viewer viewer)
          When the time comes to actually run a compile command against a selected source object, this method is called to return the instance of SystemCompilableSource to do that.
protected  com.ibm.etools.systems.core.ui.compile.SystemCompileCommand migrateCompileCommand(com.ibm.etools.systems.core.ui.compile.SystemCompileCommand oldCmd, String oldVrm)
          Opportunity for subclasses to do migration of compile commands read from disk, from a document that has an older vrm than the current vrm.
 
Methods inherited from class com.ibm.etools.systems.core.ui.compile.SystemCompileProfile
addCompileType, addContributions, getAssociatedData, getCompileFolder, getCompileProfileFile, getCompileProfileJavaFile, getCompileType, getCompileTypes, getCompileTypesArray, getParentManager, getProfile, getProfileName, getSaveFileName, printCommandsByType, removeCompileType, setAssociatedData, setProfileName, sub, writeToDisk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesCompileProfile

public ISeriesCompileProfile(com.ibm.etools.systems.core.ui.compile.SystemCompileManager manager,
                             String profileName)
Constructor for ISeriesCompileProfile Will automatically read from disk

Method Detail

doPreRead

protected void doPreRead()
This method is called by the constructor, prior to reading the xml contents from disk. It is an exit point in case subclasses need to do anything before the read, such as rename or migrate legacy information.

We use this opportunity to check if an old V4 copy of the compileNames.xml file exists, and if so move it to the new folder location as of V5.


migrateCompileCommand

protected com.ibm.etools.systems.core.ui.compile.SystemCompileCommand migrateCompileCommand(com.ibm.etools.systems.core.ui.compile.SystemCompileCommand oldCmd,
                                                                                            String oldVrm)
Opportunity for subclasses to do migration of compile commands read from disk, from a document that has an older vrm than the current vrm.


getCompilableSourceObject

public com.ibm.etools.systems.core.ui.compile.SystemCompilableSource getCompilableSourceObject(Shell shell,
                                                                                               Object selectedObject,
                                                                                               com.ibm.etools.systems.core.ui.compile.SystemCompileCommand compileCmd,
                                                                                               boolean isPrompt,
                                                                                               Viewer viewer)
When the time comes to actually run a compile command against a selected source object, this method is called to return the instance of SystemCompilableSource to do that.

We return an instance of our ISeriesCompileMember class.


iSeries Remote Systems
v6.0.0

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.