@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ArrayList<AbstractLaunchConfigurationTab> tabs = new ArrayList<>(); tabs.add(new RemoteProxyCMainTab()); tabs.add(new CArgumentsTab()); tabs.addAll(Arrays.asList(getProfileTabs())); tabs.add(new EnvironmentTab()); tabs.add(new SourceLookupTab()); tabs.add(new CommonTab()); setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()])); }
/** * Constructs a new tab with default context help. */ public CommonTab() { super(); setHelpContextId(IDebugHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_COMMON_TAB); }
createInputCaptureComponent(group); Composite comp = SWTFactory.createComposite(group, group.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0); fFileOutput = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_6); fFileOutput.setLayoutData(new GridData(SWT.BEGINNING, SWT.NORMAL, false, false)); fFileOutput.addSelectionListener(new SelectionAdapter() { ld.marginHeight = 1; ld.marginWidth = 0; fWorkspaceBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_12, null); fWorkspaceBrowse.addSelectionListener(new SelectionAdapter() { @Override fFileBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_7, null); fFileBrowse.addSelectionListener(new SelectionAdapter() { @Override fVariables = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_9, null); fVariables.addSelectionListener(new SelectionListener() { @Override public void widgetDefaultSelected(SelectionEvent e) {} }); fAppend = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_11);
@Override public void createControl(Composite parent) { Composite comp = new Composite(parent, SWT.NONE); setControl(comp); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), getHelpContextId()); comp.setLayout(new GridLayout(2, true)); comp.setFont(parent.getFont()); createSharedConfigComponent(comp); createFavoritesComponent(comp); createEncodingComponent(comp); createOutputCaptureComponent(comp); createLaunchInBackgroundComponent(comp); }
private void createInputCaptureComponent(Composite parent){ Composite comp1 = SWTFactory.createComposite(parent, parent.getFont(), 5, 5, GridData.FILL_BOTH, 0, 0); fConsoleOutput = createCheckButton(comp1, LaunchConfigurationsMessages.CommonTab_5); fConsoleOutput.addSelectionListener(new SelectionAdapter() { @Override fInputFileCheckButton = createCheckButton(comp, LaunchConfigurationsMessages.CommonTab_17); GridData gd = new GridData(SWT.BEGINNING, SWT.NORMAL, false, false); gd.horizontalSpan = 3; ld.marginHeight = 1; ld.marginWidth = 0; fInputWorkspaceBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_16, null); fInputWorkspaceBrowse.addSelectionListener(new SelectionAdapter() { @Override fInputFileBrowse = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_19, null); fInputFileBrowse.addSelectionListener(new SelectionAdapter() { @Override fInputVariables = createPushButton(bcomp, LaunchConfigurationsMessages.CommonTab_20, null); fInputVariables.addSelectionListener(new SelectionListener() { @Override setInputFileEnabled(false);
CommonTab tab = new CommonTab(); tab.setDefaults(workingCopy); tab.dispose();
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { RefreshTab refresh = new RefreshTab(); refresh.setHelpContextId(IAntUIHelpContextIds.ANT_REFRESH_TAB); ExternalToolsBuildTab build = new ExternalToolsBuildTab(); build.setHelpContextId(IAntUIHelpContextIds.ANT_BUILD_TAB); AntClasspathTab classpath = new AntClasspathTab(); classpath.setHelpContextId(IAntUIHelpContextIds.ANT_CLASSPATH_TAB); AntJRETab jre = new AntJRETab(); jre.setHelpContextId(IAntUIHelpContextIds.ANT_JRE_TAB); AntEnvironmentTab env = new AntEnvironmentTab(); env.setHelpContextId(IAntUIHelpContextIds.ANT_ENVIRONMENT_TAB); CommonTab common = new CommonTab(); common.setHelpContextId(IAntUIHelpContextIds.ANT_COMMON_TAB); ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new AntMainTab(), refresh, build, new AntTargetsTab(), classpath, new AntPropertiesTab(), jre, env, common }; setTabs(tabs); }
/** * Creates the controls needed to edit the launch in background * attribute of an external tool * * @param parent the composite to create the controls in */ protected void createLaunchInBackgroundComponent(Composite parent) { fLaunchInBackgroundButton = createCheckButton(parent, LaunchConfigurationsMessages.CommonTab_10); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 2; fLaunchInBackgroundButton.setLayoutData(data); fLaunchInBackgroundButton.setFont(parent.getFont()); fLaunchInBackgroundButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateLaunchConfigurationDialog(); } }); }
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ArrayList<AbstractLaunchConfigurationTab> tabs = new ArrayList<>(); tabs.add(new CMainTab2()); tabs.add(new CArgumentsTab()); tabs.addAll(Arrays.asList(getProfileTabs())); tabs.add(new EnvironmentTab()); tabs.add(new SourceLookupTab()); tabs.add(new CommonTab()); setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()])); }
@Override public void createTabs(ILaunchConfigurationDialog arg0, String arg1) { setTabs(new ILaunchConfigurationTab[] { new DotnetRunTab(), new CommonTab() }); }
@Override public void createTabs(ILaunchConfigurationDialog arg0, String arg1) { setTabs(new ILaunchConfigurationTab[] { new DotnetTestTab(), new CommonTab() }); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaConnectTab(), new SourceLookupTab(), new CommonTab(), }; setTabs(tabs); } }
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { setTabs(new ILaunchConfigurationTab[] { new ApiUseScanTab(), new ApiUsePatternTab(), new CommonTab() }); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { setTabs(new ILaunchConfigurationTab[]{ new ApiUseScanTab(), new ApiUsePatternTab(), new CommonTab() }); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new RoutineMainTab(), new ConnectionLevelOptionsTab(), new CommonTab() } ; setTabs(tabs); } }
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { setTabs(new ILaunchConfigurationTab[] { new DebugLaunchMainTab(), new DebuggerTab(), new CommonTab() }); }
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { setTabs(new ILaunchConfigurationTab[] { new AttachMainTab(), new DebuggerTab(), new CommonTab() }); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[2]; tabs[0] = new RunOnServerLaunchConfigurationTab(); tabs[0].setLaunchConfigurationDialog(dialog); tabs[1] = new CommonTab(); tabs[1].setLaunchConfigurationDialog(dialog); setTabs(tabs); } }
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new OfficeFloorMainTab(), new JavaJRETab(), new JavaClasspathTab(), new CommonTab() }; this.setTabs(tabs); } }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab(), }; setTabs(tabs); }