use of org.eclipse.debug.ui.ILaunchConfigurationTab in project linuxtools by eclipse.
the class AbstractStapTest method setProfileAttributes.
@Override
protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) {
ILaunchConfigurationTab tab = new SystemTapOptionsTab();
tab.setDefaults(wc);
}
use of org.eclipse.debug.ui.ILaunchConfigurationTab in project sling by apache.
the class SlingLaunchpadLaunchConfigurationTabGroup method createTabs.
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[6];
tabs[0] = new ServerLaunchConfigurationTab(new String[] { LAUNCHPAD_SERVER_ID });
tabs[0].setLaunchConfigurationDialog(dialog);
tabs[1] = new JavaArgumentsTab();
tabs[1].setLaunchConfigurationDialog(dialog);
tabs[2] = new JavaClasspathTab();
tabs[2].setLaunchConfigurationDialog(dialog);
tabs[3] = new SourceLookupTab();
tabs[3].setLaunchConfigurationDialog(dialog);
tabs[4] = new EnvironmentTab();
tabs[4].setLaunchConfigurationDialog(dialog);
tabs[5] = new CommonTab();
tabs[5].setLaunchConfigurationDialog(dialog);
setTabs(tabs);
}
use of org.eclipse.debug.ui.ILaunchConfigurationTab in project linuxtools by eclipse.
the class LaunchConfigTabTest method initConfig.
private ILaunchConfigurationWorkingCopy initConfig() throws CoreException {
ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
tab.setDefaults(wc);
tab.createControl(testShell);
tab.initializeFrom(config);
int ix = Arrays.asList(tab.getTools()).indexOf(CachegrindPlugin.TOOL_ID);
tab.getToolsCombo().select(ix);
ILaunchConfigurationTab dynamicTab = tab.getDynamicTab();
this.dynamicTab = (CachegrindToolPage) dynamicTab;
return wc;
}
use of org.eclipse.debug.ui.ILaunchConfigurationTab in project linuxtools by eclipse.
the class CachegrindLaunchShortcut method setDefaultProfileAttributes.
@Override
protected void setDefaultProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException {
ValgrindOptionsTab tab = new ValgrindOptionsTab();
tab.setDefaults(wc);
ILaunchConfigurationTab defaultTab = ValgrindLaunchPlugin.getDefault().getToolPage(CachegrindPlugin.TOOL_ID);
defaultTab.setDefaults(wc);
}
use of org.eclipse.debug.ui.ILaunchConfigurationTab in project linuxtools by eclipse.
the class AbstractProfilingOptionsTab method loadTabGroupItems.
private void loadTabGroupItems(CTabFolder tabgroup, String curProviderId) {
// dispose of old tabs and their state
for (CTabItem item : tabgroup.getItems()) {
item.dispose();
}
setErrorMessage(null);
initialized.clear();
ProfileLaunchConfigurationTabGroup tabGroupConfig;
if (curProviderId == null || curProviderId.isEmpty()) {
curProviderId = getDefaultProviderId();
}
// starting initialization of this tab's controls
initialized.put(curProviderId, false);
tabGroupConfig = ProviderFramework.getTabGroupProviderFromId(curProviderId);
if (tabGroupConfig == null) {
String profilingToolName = null;
try {
profilingToolName = initial.getAttribute(ProviderProfileConstants.PROVIDER_CONFIG_TOOLNAME_ATT, (String) null);
} catch (CoreException e) {
// do nothing
}
if (profilingToolName == null) {
setErrorMessage(NLS.bind(Messages.ProfilingTab_specified_providerid_not_installed, curProviderId));
} else {
setErrorMessage(NLS.bind(Messages.ProfilingTab_specified_profiler_not_installed, profilingToolName));
}
return;
}
tabs = tabGroupConfig.getProfileTabs();
setProvider(curProviderId);
// Show provider name in combo.
int itemIndex = getComboItemIndexFromId(curProviderId);
providerCombo.select(itemIndex);
// Set name of configuration.
setConfigurationName(providerCombo.getText());
// create the tab item, and load the specified tab inside
for (ILaunchConfigurationTab tab : tabs) {
tab.setLaunchConfigurationDialog(getLaunchConfigurationDialog());
CTabItem item = new CTabItem(tabgroup, SWT.NONE);
item.setText(tab.getName());
item.setImage(tab.getImage());
tab.createControl(tabgroup);
item.setControl(tab.getControl());
tabgroup.setSelection(0);
}
}
Aggregations