@Override protected void updateLaunchConfigurationDialog() { super.updateLaunchConfigurationDialog(); }
protected Shell getShell() { return super.getShell(); }
@Override public void dispose() { super.dispose(); }
@Override public IStatus runInUIThread(IProgressMonitor monitor) { if (!getControl().isDisposed()) { updateLaunchConfigurationDialog(); } return Status.OK_STATUS; } @Override
if (!tab.isValid(config)) { setErrorMessage(tab.getErrorMessage()); return false; if (!tab.isValid(config)) { return false;
@Override public boolean isValid(ILaunchConfiguration launchConfig) { try { return super.isValid(launchConfig) && new File(launchConfig.getAttribute(DSPPlugin.ATTR_DSP_CMD, "/letshopenofileevergetthisname")).canExecute(); //$NON-NLS-1$ } catch (CoreException e) { AcutePlugin.logError(e); setErrorMessage(e.getMessage()); return false; } }
@Override protected void setDirty(boolean dirty) { // provide package visibility super.setDirty(dirty); }
@Override protected ILaunchConfigurationDialog getLaunchConfigurationDialog() { return super.getLaunchConfigurationDialog(); }
@Override public void activated(ILaunchConfigurationWorkingCopy workingCopy) { if (isDirty()) { super.activated(workingCopy); } }
/** * This method was added to the <code>ILaunchConfigurationTab</code> interface * in the 3.0 release to allow tabs to distinguish between a tab being deactivated * and saving its attributes to a launch configuration. To maintain backwards * compatible behavior, the default implementation provided, calls this tab's * <code>performApply</code> method. Tabs should override this method as required. * <p> * The launch tab framework was originally designed to take care of inter tab * 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. * </p> * @see org.eclipse.debug.ui.ILaunchConfigurationTab#deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) * @since 3.0 */ @Override public void deactivated(ILaunchConfigurationWorkingCopy workingCopy) { performApply(workingCopy); }
/** * 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 * and a tab group be initialized for the first time, from a selected launch * configuration. To maintain backwards compatible behavior, the default * implementation provided, calls this tab's <code>initializeFrom</code> method. * Tabs should override this method as required. * <p> * The launch tab framework was originally designed to take care of inter tab * 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. * </p> * * @see org.eclipse.debug.ui.ILaunchConfigurationTab#activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) * @since 3.0 */ @Override public void activated(ILaunchConfigurationWorkingCopy workingCopy) { initializeFrom(workingCopy); }
@Override public String getErrorMessage() { if (fSourceLookupPanel != null) { return fSourceLookupPanel.getErrorMessage(); } return super.getErrorMessage(); } /* (non-Javadoc)
@Override public boolean isValid(ILaunchConfiguration launchConfig) { if (!super.isValid(launchConfig)) { return false; } String projectName; try { projectName = launchConfig.getAttribute(DotnetRunDelegate.PROJECT_FOLDER, ""); //$NON-NLS-1$ if (projectName.isEmpty()) { return false; } return Tester.isDotnetProject(ResourcesPlugin.getWorkspace().getRoot().getProject(projectName)); } catch (CoreException e) { AcutePlugin.logError(e); setErrorMessage(e.getMessage()); return false; } }
@Override public void setDirty(boolean dirty) { super.setDirty(dirty); }
/** * 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 //refresh the tab viewer in updateButtons() //which ensures that the messages are up to date getLaunchConfigurationDialog().updateButtons(); getLaunchConfigurationDialog().updateMessage(); } }
&& !_databaseIdentifier.getProfileName().trim().equals("") && ProfileUtil.profileExist(_databaseIdentifier.getProfileName())) //$NON-NLS-1$ super.activated(workingCopy);
@Override public void performApply(ILaunchConfigurationWorkingCopy configuration) { // make sure tabs are not null, and the tab's controls have been // initialized. Boolean isInitialized = initialized.get(getProviderId()); isInitialized = (isInitialized != null) ? isInitialized : false; if (tabs != null && isInitialized) { for (AbstractLaunchConfigurationTab tab : tabs) { tab.performApply(configuration); } } }
tab.initializeFrom(configuration);
protected void updateLaunchConfigurationDialog() { super.updateLaunchConfigurationDialog(); }
@Override protected Shell getShell() { return super.getShell(); }