iSeries Remote Systems
v6.0.0

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

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.compile.SystemCompileManager
      extended bycom.ibm.etools.iseries.core.compile.ISeriesCompileManager

public class ISeriesCompileManager
extends com.ibm.etools.systems.core.ui.compile.SystemCompileManager

Specialization of SystemCompileManager for ISeries native qsys compile support


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.compile.SystemCompileManager
copyright, currentCompileCommand, subsystemFactory, systemConnection
 
Constructor Summary
ISeriesCompileManager()
          Constructor for ISeriesCompileManager
 
Method Summary
 void addMultipleSelectionCompileActions(Shell shell, IStructuredSelection selection, com.ibm.etools.systems.core.ui.SystemMenuManager menu, String menuGroup)
           
protected  com.ibm.etools.systems.core.ui.compile.SystemCompileProfile createCompileProfile(com.ibm.etools.systems.model.SystemProfile profile)
          Overridable method to instantiate the SystemCompileProfile for the given system profile.
 com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor createSubstitutor(com.ibm.etools.systems.model.SystemConnection connection)
          Return the substitutor for doing variable substitution.
 com.ibm.etools.systems.core.ui.compile.SystemCompileCommandEditPane getCompileCommandEditPane(Shell shell, com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandEditPaneHoster hoster, boolean caseSensitive)
          For support of the Work With Compile Commands dialog.
static com.ibm.etools.systems.dstore.core.model.DataElement getDataElement(Object element)
          Get the DataElement given the input.
 com.ibm.etools.systems.core.ui.compile.SystemDefaultCompileCommands getDefaultCompileCommands()
          Return the default (supplied) compile commands to prime the compile commands with.
protected  com.ibm.etools.systems.core.ui.compile.SystemNewCompileSrcTypeDialog getNewSrcTypeDialog(Shell shell, boolean caseSensitive)
          For support of the Work With Compile Commands dialog.
 String getSourceTypePromptMRIKey()
          For support of the Work With Compile Commands dialog.
 ResourceBundle getSourceTypePromptMRIResourceBundle()
          For support of the Work With Compile Commands dialog.
 com.ibm.etools.systems.core.ui.commands.SystemCmdSubstVarList getSubstitutionVariableList()
          For support of the Work With Compile Commands dialog.
 boolean isCompilable(Object selection)
          Return true if the given remote object is potentially compilable.
 boolean isMultiSelectSupported(com.ibm.etools.systems.core.ui.compile.SystemCompileCommand compileCmd)
          Return true if multiple-select is supported for the compile action.
 
Methods inherited from class com.ibm.etools.systems.core.ui.compile.SystemCompileManager
addCompileActions, addSingleSelectionCompileActions, getAllCompileProfiles, getCompileProfile, getCompileProfileFolder, getCurrentCompileCommand, getDefaultSuppliedCommand, getSubstitutor, getSubSystemFactory, getSystemConnection, profileRenamed, setCurrentCompileCommand, setSubSystemFactory, setSystemConnection, wantToPrimeWithDefaults
 
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

ISeriesCompileManager

public ISeriesCompileManager()
Constructor for ISeriesCompileManager

Method Detail

isMultiSelectSupported

public boolean isMultiSelectSupported(com.ibm.etools.systems.core.ui.compile.SystemCompileCommand compileCmd)
Return true if multiple-select is supported for the compile action. We return false. Todo: support multi-select QSYS compiles


createCompileProfile

protected com.ibm.etools.systems.core.ui.compile.SystemCompileProfile createCompileProfile(com.ibm.etools.systems.model.SystemProfile profile)
Overridable method to instantiate the SystemCompileProfile for the given system profile.

We return an instance of ISeriesCompileProfile


getDefaultCompileCommands

public com.ibm.etools.systems.core.ui.compile.SystemDefaultCompileCommands getDefaultCompileCommands()
Return the default (supplied) compile commands to prime the compile commands with.


isCompilable

public boolean isCompilable(Object selection)
Return true if the given remote object is potentially compilable. This decides the existence of the Compile menu item. It is possible to enable/disable this if there is no current compile command... this is a more course grained decision.


getDataElement

public static com.ibm.etools.systems.dstore.core.model.DataElement getDataElement(Object element)
Get the DataElement given the input. The input is either a DataElement directly, or a ISeriesDataElementWrapper wrapper.


getSubstitutionVariableList

public com.ibm.etools.systems.core.ui.commands.SystemCmdSubstVarList getSubstitutionVariableList()
For support of the Work With Compile Commands dialog.

Return the substitution variables supported by compile commands managed by this manager. This is overridable, and typically is overridden.


createSubstitutor

public com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor createSubstitutor(com.ibm.etools.systems.model.SystemConnection connection)
Return the substitutor for doing variable substitution.

We create and return ISeriesCompileSubstitutor


getCompileCommandEditPane

public com.ibm.etools.systems.core.ui.compile.SystemCompileCommandEditPane getCompileCommandEditPane(Shell shell,
                                                                                                     com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandEditPaneHoster hoster,
                                                                                                     boolean caseSensitive)
For support of the Work With Compile Commands dialog.

Return our edit pane. Overriding this is an alternative to calling setEditPane. This is called in createContents


getNewSrcTypeDialog

protected com.ibm.etools.systems.core.ui.compile.SystemNewCompileSrcTypeDialog getNewSrcTypeDialog(Shell shell,
                                                                                                   boolean caseSensitive)
For support of the Work With Compile Commands dialog.

Return the dialog used to prompt for a new source type when "Add..." is pressed beside the source type combo. This returns an instance of the default SystemNewCompileSrcTypeDialog.


getSourceTypePromptMRIResourceBundle

public ResourceBundle getSourceTypePromptMRIResourceBundle()
For support of the Work With Compile Commands dialog.

Get the mri resource bundle for the source type prompt.


getSourceTypePromptMRIKey

public String getSourceTypePromptMRIKey()
For support of the Work With Compile Commands dialog.

Get the mri resource bundle key for the source type prompt. Will add ".label" and ".tooltip" to it.


addMultipleSelectionCompileActions

public void addMultipleSelectionCompileActions(Shell shell,
                                               IStructuredSelection selection,
                                               com.ibm.etools.systems.core.ui.SystemMenuManager menu,
                                               String menuGroup)
See Also:
SystemCompileManager.addMultipleSelectionCompileActions(org.eclipse.swt.widgets.Shell, org.eclipse.jface.viewers.IStructuredSelection, com.ibm.etools.systems.core.ui.SystemMenuManager, java.lang.String)

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.