diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java | 150 |
1 files changed, 75 insertions, 75 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java index e2dbb3a50..5503ed937 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractLaunchConfigurationTab.java @@ -11,7 +11,7 @@ *******************************************************************************/ package org.eclipse.debug.ui; - + import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; @@ -41,7 +41,7 @@ import org.eclipse.ui.progress.WorkbenchJob; * @since 2.0 */ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigurationTab2 { - + /** * The control for this page, or <code>null</code> */ @@ -52,69 +52,69 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura * contained in. */ private ILaunchConfigurationDialog fLaunchConfigurationDialog; - + /** * Current error message, or <code>null</code> */ private String fErrorMessage; - + /** * Current warning message, or <code>null</code> */ private String fWarningMessage; - + /** * Current message, or <code>null</code> */ private String fMessage; - + /** * Whether this tab needs to apply changes. This attribute is initialized to * <code>true</code> to be backwards compatible. If clients want to take advantage * of such a feature, they should set the flag to false, and check it before * applying changes to the launch configuration working copy. - * + * * @since 2.1 */ - private boolean fDirty = true; - + private boolean fDirty = true; + /** * Job to update the tab after a delay. Used to delay updates while * the user is typing. */ - private Job fRereshJob; - + private Job fRereshJob; + /** * The set help context id - * + * * @since 3.7 */ private String fHelpContextId = null; - + /** * Returns the dialog this tab is contained in, or * <code>null</code> if not yet set. - * + * * @return launch configuration dialog, or <code>null</code> */ protected ILaunchConfigurationDialog getLaunchConfigurationDialog() { return fLaunchConfigurationDialog; - } - + } + /** * Updates the buttons and message in this page's launch * configuration dialog. */ protected void updateLaunchConfigurationDialog() { if (getLaunchConfigurationDialog() != null) { - //order is important here due to the call to + //order is important here due to the call to //refresh the tab viewer in updateButtons() //which ensures that the messages are up to date getLaunchConfigurationDialog().updateButtons(); getLaunchConfigurationDialog().updateMessage(); } } - + /** * @see ILaunchConfigurationTab#getControl() */ @@ -125,7 +125,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura /** * Sets the control to be displayed in this tab. - * + * * @param control the control for this tab */ protected void setControl(Control control) { @@ -159,7 +159,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura /** * By default, do nothing. - * + * * @see ILaunchConfigurationTab#launched(ILaunch) * @deprecated As of R3.0, this method is no longer called by the launch * framework. Since tabs do not exist when launching is performed elsewhere @@ -178,10 +178,10 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog) { fLaunchConfigurationDialog = dialog; } - + /** * Sets this page's error message, possibly <code>null</code>. - * + * * @param errorMessage the error message or <code>null</code> */ protected void setErrorMessage(String errorMessage) { @@ -190,7 +190,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura /** * Sets this page's warning message, possibly <code>null</code>. - * + * * @param warningMessage the warning message or <code>null</code> * @since 3.9 */ @@ -200,34 +200,34 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura /** * Sets this page's message, possibly <code>null</code>. - * + * * @param message the message or <code>null</code> */ protected void setMessage(String message) { fMessage = message; } - + /** * Convenience method to return the launch manager. - * + * * @return the launch manager */ protected ILaunchManager getLaunchManager() { return DebugPlugin.getDefault().getLaunchManager(); - } - + } + /** * By default, do nothing. - * + * * @see ILaunchConfigurationTab#dispose() */ @Override public void dispose() { } - + /** * Returns the shell this tab is contained in, or <code>null</code>. - * + * * @return the shell this tab is contained in, or <code>null</code> */ protected Shell getShell() { @@ -237,38 +237,38 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura } return null; } - + /** * Creates and returns a new push button with the given * label and/or image. - * + * * @param parent parent control * @param label button label or <code>null</code> * @param image image of <code>null</code> - * + * * @return a new push button */ protected Button createPushButton(Composite parent, String label, Image image) { - return SWTFactory.createPushButton(parent, label, image); + return SWTFactory.createPushButton(parent, label, image); } - + /** * Creates and returns a new radio button with the given * label and/or image. - * + * * @param parent parent control * @param label button label or <code>null</code> - * + * * @return a new radio button */ protected Button createRadioButton(Composite parent, String label) { - return SWTFactory.createRadioButton(parent, label); - } - + return SWTFactory.createRadioButton(parent, label); + } + /** * Creates and returns a new check button with the given * label. - * + * * @param parent the parent composite * @param label the button label * @return a new check button @@ -277,7 +277,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura protected Button createCheckButton(Composite parent, String label) { return SWTFactory.createCheckButton(parent, label, null, false, 1); } - + /** * @see ILaunchConfigurationTab#canSave() */ @@ -285,7 +285,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public boolean canSave() { return true; } - + /** * @see ILaunchConfigurationTab#isValid(ILaunchConfiguration) */ @@ -301,11 +301,11 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura */ protected void createVerticalSpacer(Composite comp, int colSpan) { SWTFactory.createVerticalSpacer(comp, colSpan); - } - + } + /** * Create a horizontal separator. - * + * * @param comp parent widget * @param colSpan number of columns to span * @since 3.0 @@ -315,8 +315,8 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = colSpan; label.setLayoutData(gd); - } - + } + /** * @see ILaunchConfigurationTab#getImage() */ @@ -324,7 +324,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public Image getImage() { return null; } - + /** * Returns this tab's unique identifier or <code>null</code> if none. * By default, <code>null</code> is returned. Subclasses should override @@ -339,12 +339,12 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public String getId() { return null; } - + /** * Convenience method to set a boolean attribute of on a launch * configuration. If the value being set is the default, the attribute's * value is set to <code>null</code>. - * + * * @param attribute attribute identifier * @param configuration the configuration on which to set the attribute * @param value the value of the attribute @@ -363,10 +363,10 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura /** * Returns if this tab has pending changes that need to be saved. - * - * It is up to clients to set/reset and consult this attribute as required. + * + * It is up to clients to set/reset and consult this attribute as required. * By default, a tab is initialized to dirty for backwards compatibility. - * + * * @return whether this tab is dirty * @since 2.1 */ @@ -375,19 +375,19 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura } /** - * Sets the dirty state of the tab. Setting this flag allows clients to + * Sets the dirty state of the tab. Setting this flag allows clients to * explicitly say whether this tab has pending changes or not. - * - * It is up to clients to set/reset and consult this attribute as required. + * + * It is up to clients to set/reset and consult this attribute as required. * By default, a tab is initialized to dirty for backwards compatibility. - * + * * @param dirty what to set the dirty flag to * @since 2.1 */ protected void setDirty(boolean dirty) { fDirty = dirty; } - + /** * This method was added to the <code>ILaunchConfigurationTab</code> interface * in the 3.0 release to allow tabs to distinguish between a tab being activated @@ -400,9 +400,9 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura * communication by applying attributes from the active tab to the launch configuration * being edited, when a tab is exited, and by initializing a tab when activated. * The addition of the methods <code>activated</code> and <code>deactivated</code> - * allow tabs to determine the appropriate course of action. + * allow tabs to determine the appropriate course of action. * </p> - * + * * @see org.eclipse.debug.ui.ILaunchConfigurationTab#activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) * @since 3.0 */ @@ -422,7 +422,7 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura * communication by applying attributes from the active tab to the launch configuration * being edited, when a tab is exited, and by initializing a tab when activated. * The addition of the methods <code>activated</code> and <code>deactivated</code> - * allow tabs to determine the appropriate course of action. + * allow tabs to determine the appropriate course of action. * </p> * @see org.eclipse.debug.ui.ILaunchConfigurationTab#deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) * @since 3.0 @@ -431,10 +431,10 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public void deactivated(ILaunchConfigurationWorkingCopy workingCopy) { performApply(workingCopy); } - + /** * Returns the job to update the launch configuration dialog. - * + * * @return update job */ private Job getUpdateJob() { @@ -444,10 +444,10 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura } return fRereshJob; } - + /** * Schedules the update job to run for this tab based on this tab's delay. - * + * * @since 3.6 */ protected void scheduleUpdateJob() { @@ -455,11 +455,11 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura job.cancel(); // cancel existing job job.schedule(getUpdateJobDelay()); } - + /** * Creates and returns a job used to update the launch configuration dialog * for this tab. Subclasses may override. - * + * * @return job to update the launch dialog for this tab * @since 3.6 */ @@ -478,20 +478,20 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura } }; } - + /** * Return the time delay that should be used when scheduling the * update job. Subclasses may override. - * + * * @return a time delay in milliseconds before the job should run * @since 3.6 */ protected long getUpdateJobDelay() { return 200; - } + } /** - * Sets the help context id for this tab. + * Sets the help context id for this tab. * <p> * Not all tabs honor this setting, but if this method is called prior * to {@link #createControl(Composite)}, a tab implementation may use this @@ -503,10 +503,10 @@ public abstract class AbstractLaunchConfigurationTab implements ILaunchConfigura public void setHelpContextId(String id) { fHelpContextId = id; } - + /** * Returns the help context id for this tab or <code>null</code>. - * + * * @return the help context for this tab or <code>null</code> if unknown. * @since 3.7 */ |