/** * Reinit the tabs of the launch configuration dialog. * * @param launchConfiguration the {@link LaunchConfiguration}. */ private void reinitTabs(ILaunchConfiguration launchConfiguration) { ILaunchConfigurationTab[] tabs = getLaunchConfigurationDialog().getTabs(); for (ILaunchConfigurationTab configTab : tabs) { configTab.initializeFrom(launchConfiguration); } }
/** * The default page for a debug view is its viewer. * * @see PageBookView#createDefaultPage(PageBook) */ @Override protected IPage createDefaultPage(PageBook book) { ViewerPage page = new ViewerPage(); page.createControl(book); initPage(page); return page; }
/** * By default, delegate to all of the tabs in this group. * * @see ILaunchConfigurationTabGroup#initializeFrom(ILaunchConfiguration) */ @Override public void initializeFrom(ILaunchConfiguration configuration) { ILaunchConfigurationTab[] tabs = getTabs(); for (int i = 0; i < tabs.length; i++) { tabs[i].initializeFrom(configuration); } }
/** * @param configuration */ private void relaunchInDebugMode(ILaunchConfiguration configuration) { DebugUITools.launch(configuration, ILaunchManager.DEBUG_MODE); } }
@Override public boolean isValid(ILaunchConfiguration config) { setMessage(null); setErrorMessage(null); return validateLocalShared() && validateRedirectFile() && validateEncoding() && validateStdinFile(); }
@Override public Image getImage() { return DebugUITools.getImage(IInternalDebugUIConstants.IMG_WIZBAN_IMPORT_BREAKPOINTS); } }
/** * 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(); } }
/** * By default, delegate to all of the tabs in this group. * * @see ILaunchConfigurationTabGroup#setDefaults(ILaunchConfigurationWorkingCopy) */ @Override public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { ILaunchConfigurationTab[] tabs = getTabs(); for (int i = 0; i < tabs.length; i++) { tabs[i].setDefaults(configuration); } }
/** * By default, delegate to all of the tabs in this group. * * @see ILaunchConfigurationTabGroup#performApply(ILaunchConfigurationWorkingCopy) */ @Override public void performApply(ILaunchConfigurationWorkingCopy configuration) { ILaunchConfigurationTab[] tabs = getTabs(); for (int i = 0; i < tabs.length; i++) { tabs[i].performApply(configuration); } }
/** * handles the shared radio button being selected */ private void handleSharedRadioButtonSelected() { setSharedEnabled(isShared()); updateLaunchConfigurationDialog(); }
@Override protected void setDirty(boolean dirty) { // provide package visibility super.setDirty(dirty); }
@Override public void widgetSelected(SelectionEvent e) { updateLaunchConfigurationDialog(); } });
@Override public void selectionChanged(SelectionChangedEvent event) { handleTableSelectionChanged(event); } });
@Override public void keyPressed(KeyEvent e) { handleKeyPressed(e); } });
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { if(fGroup != null) { fGroup.createTabs(dialog, mode); fMode = mode; } }
@Override public void widgetSelected(SelectionEvent e) { editVariables(); } });
@Override public void dispose() { // don't instantiate the delegate if it has not been used if (fDelegate != null) { fDelegate.dispose(); } }
@SuppressWarnings("deprecation") @Override public void launched(ILaunch launch) { if(fGroup != null) { fGroup.launched(launch); } }
/** * Re-launches the given configuration in the specified mode. * */ public static void relaunch(ILaunchConfiguration config, String mode) { DebugUITools.launch(config, mode); }
@Override public void widgetSelected(SelectionEvent evt) { handleInputFileButtonSelected(); updateLaunchConfigurationDialog(); } });