Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.wizards
Class JMCAbstractClassSelectionDialog

java.lang.Object
  extended by SystemPromptDialog
      extended by com.ibm.etools.iseries.edit.wizards.JMCAbstractClassSelectionDialog
Direct Known Subclasses:
JMCClassSelLocalDlg, JMCClassSelProjDlg, JMCClassSelRemoteDlg

public abstract class JMCAbstractClassSelectionDialog
extends SystemPromptDialog

super class of JMC class selection dialogs. This will handle the class loading and error handling.


Field Summary
protected static int LOCAL_DLG
           
protected static int PROJECT_DLG
           
protected static int REMOTE_DLG
           
 
Constructor Summary
JMCAbstractClassSelectionDialog(Shell arg0, String arg1, JMCURLClassLoader classLoader)
           
 
Method Summary
 void addFileToTree(File f, String displayName)
           
 void addFileToTree(File f, String displayName, int levelsToExpand)
          Adds file f as child of the treeRoot and the contents of f as children of f.
protected  void buttonPressed(int buttonID)
           
protected  Control createInner(Composite parent)
          Adds a new tree to the parent, and sets parent's layout to a new gridlayout.
abstract  void generateTreeContents()
          subclasses should call getTreeRoot() and add TreeItems to the provided Tree.
abstract  String getHelpID()
          Returns the msg ID in ISeriesSystemPlugin.plugin to use as f1 help for this page; must NOT return null
protected  Control getInitialFocusControl()
           
protected abstract  int getJMCClassSelDialogType()
          Get the dialog type so that we can properly save/load the files/folders added to the tree
 Class getSelectedClass()
           
abstract  boolean isDirty()
          flag to see if we need to save
 int open()
           
abstract  void populateWithOtherControls(Composite mainComposite)
          Method called after tree is generated so subclasses can add more stuff to mainComposite if they want to
protected  void update()
           
 void widgetDefaultSelected(SelectionEvent arg0)
          Listeners
 void widgetSelected(SelectionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_DLG

protected static final int LOCAL_DLG
See Also:
Constant Field Values

PROJECT_DLG

protected static final int PROJECT_DLG
See Also:
Constant Field Values

REMOTE_DLG

protected static final int REMOTE_DLG
See Also:
Constant Field Values
Constructor Detail

JMCAbstractClassSelectionDialog

public JMCAbstractClassSelectionDialog(Shell arg0,
                                       String arg1,
                                       JMCURLClassLoader classLoader)
Parameters:
arg0 -
arg1 -
classLoader - clas loader to use to load classes
Method Detail

generateTreeContents

public abstract void generateTreeContents()
subclasses should call getTreeRoot() and add TreeItems to the provided Tree. Call addZipFileContents(String absoluteZipFileLoc, TreeItem zipFileTI, int swtStyle) or addDirectoryContents(File directory, TreeItem directoryTI, int swtStyle, boolean useFullDirName) or addFileToTree(File f, boolean useFullPathName) to add the tree items


getHelpID

public abstract String getHelpID()
Returns the msg ID in ISeriesSystemPlugin.plugin to use as f1 help for this page; must NOT return null


populateWithOtherControls

public abstract void populateWithOtherControls(Composite mainComposite)
Method called after tree is generated so subclasses can add more stuff to mainComposite if they want to

Parameters:
mainComposite -

isDirty

public abstract boolean isDirty()
flag to see if we need to save

Returns:

getJMCClassSelDialogType

protected abstract int getJMCClassSelDialogType()
Get the dialog type so that we can properly save/load the files/folders added to the tree

Returns:

getSelectedClass

public Class getSelectedClass()

buttonPressed

protected void buttonPressed(int buttonID)

createInner

protected Control createInner(Composite parent)
Adds a new tree to the parent, and sets parent's layout to a new gridlayout. This can be overriden if you want to add other stuff to the parent too


open

public int open()

getInitialFocusControl

protected Control getInitialFocusControl()

addFileToTree

public void addFileToTree(File f,
                          String displayName)

addFileToTree

public void addFileToTree(File f,
                          String displayName,
                          int levelsToExpand)
Adds file f as child of the treeRoot and the contents of f as children of f. Does nothing if f is null. same as addFileToTree(f, useFullPathName, 0)


update

protected void update()

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)
Listeners


widgetSelected

public void widgetSelected(SelectionEvent se)

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.