Search in sources :

Example 6 with ILaunchConfigurationTab

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);
}
Also used : SystemTapOptionsTab(org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab) ILaunchConfigurationTab(org.eclipse.debug.ui.ILaunchConfigurationTab)

Example 7 with ILaunchConfigurationTab

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);
}
Also used : JavaArgumentsTab(org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab) SourceLookupTab(org.eclipse.debug.ui.sourcelookup.SourceLookupTab) EnvironmentTab(org.eclipse.debug.ui.EnvironmentTab) CommonTab(org.eclipse.debug.ui.CommonTab) JavaClasspathTab(org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab) ServerLaunchConfigurationTab(org.eclipse.wst.server.ui.ServerLaunchConfigurationTab) ILaunchConfigurationTab(org.eclipse.debug.ui.ILaunchConfigurationTab)

Example 8 with ILaunchConfigurationTab

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;
}
Also used : ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) ILaunchConfigurationTab(org.eclipse.debug.ui.ILaunchConfigurationTab)

Example 9 with ILaunchConfigurationTab

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);
}
Also used : ValgrindOptionsTab(org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab) ILaunchConfigurationTab(org.eclipse.debug.ui.ILaunchConfigurationTab)

Example 10 with ILaunchConfigurationTab

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);
    }
}
Also used : CoreException(org.eclipse.core.runtime.CoreException) ProfileLaunchConfigurationTabGroup(org.eclipse.linuxtools.profiling.launch.ProfileLaunchConfigurationTabGroup) CTabItem(org.eclipse.swt.custom.CTabItem) ILaunchConfigurationTab(org.eclipse.debug.ui.ILaunchConfigurationTab)

Aggregations

ILaunchConfigurationTab (org.eclipse.debug.ui.ILaunchConfigurationTab)14 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)5 ValgrindOptionsTab (org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab)4 ProfileLaunchConfigurationTabGroup (org.eclipse.linuxtools.profiling.launch.ProfileLaunchConfigurationTabGroup)3 CoreException (org.eclipse.core.runtime.CoreException)2 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1 AbstractCLaunchDelegate (org.eclipse.cdt.launch.AbstractCLaunchDelegate)1 AbstractLaunchConfigurationTab (org.eclipse.debug.ui.AbstractLaunchConfigurationTab)1 CommonTab (org.eclipse.debug.ui.CommonTab)1 EnvironmentTab (org.eclipse.debug.ui.EnvironmentTab)1 ILaunchConfigurationDialog (org.eclipse.debug.ui.ILaunchConfigurationDialog)1 SourceLookupTab (org.eclipse.debug.ui.sourcelookup.SourceLookupTab)1 JavaArgumentsTab (org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab)1 JavaClasspathTab (org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab)1 IRunnableWithProgress (org.eclipse.jface.operation.IRunnableWithProgress)1 SystemTapOptionsTab (org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab)1 ProfileLaunchShortcut (org.eclipse.linuxtools.profiling.launch.ProfileLaunchShortcut)1 CTabItem (org.eclipse.swt.custom.CTabItem)1 ServerLaunchConfigurationTab (org.eclipse.wst.server.ui.ServerLaunchConfigurationTab)1