public abstract class Dialog extends org.eclipse.jface.dialogs.Dialog implements IDialog
This dialog utilizes all the functionality available within the JFace org.eclipse.jface.dialogs.Dialog, but it gives the IBM Sales Center extension definitions a Dialog with a zero-argument constructor for registry instantiation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
protected java.util.Map | data_
Data hashmap.
|
Constructor and Description |
---|
Dialog()
This creates a dialog instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object | getData(java.lang.String key)
This method gets the data associated with the given key.
|
void | setData(java.lang.String key, java.lang.Object value)
This method sets the data associated with the given key.
|
public static final java.lang.String COPYRIGHT
protected java.util.Map data_
public Dialog()
This is the only constructor to create an IBM Sales Center dialog. This zero-argument constructor calls the JFace Dialog's constructor that takes a shell as the single argument. Since an IBM Sales Center dialog is really an IDialog, its constructor is called by the createExecutableExtension method when the extension needs to be opened. Only zero-argument constructors are allowed by this dynamic instantiation mechanism.
So the shell that needs to be passed as the parent shell of this dialog is obtained using TelesalesUIPlugin.getTopMostShell().
Subclasses need not implement a constructor. If the subclass wants to override the default shell style bits, however, then it must implement a zero-argument constructor. This constructor should first call super constructor and then the setShellStyle method. (Note: Shell style bits can only be set in the constructor.)
Note that the window will have no visual representation (no widgets) until it is told to open.
public java.lang.Object getData(java.lang.String key)
public void setData(java.lang.String key, java.lang.Object value)