diff options
author | ustieber | 2011-08-30 07:30:06 +0000 |
---|---|---|
committer | ustieber | 2011-08-30 07:30:06 +0000 |
commit | 547fa4dfd99b58ffcc0f777338cb02963e1683c4 (patch) | |
tree | 960af3c51c0207bfe1cc13fa83d1634e3107f3bf | |
parent | 9a867c2a2540006c9e9a3e461901e6058c7249e7 (diff) | |
download | org.eclipse.tcf-547fa4dfd99b58ffcc0f777338cb02963e1683c4.tar.gz org.eclipse.tcf-547fa4dfd99b58ffcc0f777338cb02963e1683c4.tar.xz org.eclipse.tcf-547fa4dfd99b58ffcc0f777338cb02963e1683c4.zip |
Target Explorer: getValidatableWizardPage() moved to BaseDialogPageControl
2 files changed, 17 insertions, 16 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseDialogPageControl.java b/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseDialogPageControl.java index a394af08c..ad77bc7ec 100644 --- a/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseDialogPageControl.java +++ b/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseDialogPageControl.java @@ -14,6 +14,7 @@ import org.eclipse.jface.dialogs.IDialogPage; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jface.operation.IRunnableContext; import org.eclipse.tm.te.ui.controls.interfaces.IRunnableContextProvider; +import org.eclipse.tm.te.ui.wizards.interfaces.IValidatableWizardPage; import org.eclipse.ui.forms.widgets.FormToolkit; @@ -56,6 +57,22 @@ public class BaseDialogPageControl extends BaseControl implements IRunnableConte } /** + * Returns the validatable wizard page instance. + * <p> + * The default implementation is testing the associated + * parent page to implement the {@link IValidatableWizardPage} interface. + * + * @return The validatable wizard page instance or <code>null</code>. + */ + public IValidatableWizardPage getValidatableWizardPage() { + IDialogPage parentPage = getParentPage(); + if (parentPage instanceof IValidatableWizardPage) { + return (IValidatableWizardPage)parentPage; + } + return null; + } + + /** * Sets the form toolkit to be used for creating the control widgets. * * @param toolkit The form toolkit instance or <code>null</code>. diff --git a/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseEditBrowseTextControl.java b/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseEditBrowseTextControl.java index 4dbe93954..b6bbb6083 100644 --- a/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseEditBrowseTextControl.java +++ b/target_explorer/plugins/org.eclipse.tm.te.ui.controls/src/org/eclipse/tm/te/ui/controls/BaseEditBrowseTextControl.java @@ -989,22 +989,6 @@ public class BaseEditBrowseTextControl extends BaseDialogPageControl { } /** - * Returns the validatable wizard page instance. - * <p> - * The default implementation is testing the associated - * parent page to implement the {@link IValidatableWizardPage} interface. - * - * @return The validatable wizard page instance or <code>null</code>. - */ - protected IValidatableWizardPage getValidatableWizardPage() { - IDialogPage parentPage = getParentPage(); - if (parentPage instanceof IValidatableWizardPage) { - return (IValidatableWizardPage)parentPage; - } - return null; - } - - /** * Default edit field control modification listener. The listener takes care of * updating the target server command line control if the parent page is of type * <code>AbstractTargetServerWizardPage</code>. In all cases, the parent pages |