Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.compile
Class QSYSCompileProfile

java.lang.Object
  extended by SystemCompileProfile
      extended by com.ibm.etools.iseries.rse.ui.compile.QSYSCompileProfile

public class QSYSCompileProfile
extends 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
           
 
Constructor Summary
QSYSCompileProfile(SystemCompileManager manager, String profileName)
          Constructor for ISeriesCompileProfile Will automatically read from disk
 
Method Summary
 void addContributions(Object element)
           
protected  void doPreRead()
          This method is called by the constructor, prior to reading the xml contents from disk.
 SystemCompilableSource getCompilableSourceObject(Shell shell, Object selectedObject, 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  SystemCompileCommand migrateCompileCommand(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 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

QSYSCompileProfile

public QSYSCompileProfile(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 SystemCompileCommand migrateCompileCommand(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 SystemCompilableSource getCompilableSourceObject(Shell shell,
                                                        Object selectedObject,
                                                        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.


addContributions

public void addContributions(Object element)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.