Search in sources :

Example 1 with SystemTapOptionsTab

use of org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab 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 2 with SystemTapOptionsTab

use of org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab in project linuxtools by eclipse.

the class SystemTapTabTest method testTabs.

@Test
public void testTabs() throws CoreException {
    Shell sh = new Shell();
    Composite cmp = new Composite(sh, SWT.NONE);
    LaunchStapGraph shortCut = new LaunchStapGraph();
    SystemTapOptionsTab stp = new SystemTapOptionsTab();
    stp.createControl(cmp);
    ILaunchConfiguration configuration;
    configuration = shortCut.outsideGetLaunchConfigType().newInstance(null, (DebugPlugin.getDefault().getLaunchManager()).generateLaunchConfigurationName("invalid"));
    ILaunchConfigurationWorkingCopy wc = configuration.getWorkingCopy();
    stp.setDefaults(wc);
    stp.performApply(wc);
    wc.doSave();
    stp.initializeFrom(configuration);
    sh.open();
}
Also used : Shell(org.eclipse.swt.widgets.Shell) ILaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration) Composite(org.eclipse.swt.widgets.Composite) LaunchStapGraph(org.eclipse.linuxtools.internal.callgraph.launch.LaunchStapGraph) SystemTapOptionsTab(org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) Test(org.junit.Test)

Aggregations

SystemTapOptionsTab (org.eclipse.linuxtools.internal.callgraph.launch.SystemTapOptionsTab)2 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 ILaunchConfigurationTab (org.eclipse.debug.ui.ILaunchConfigurationTab)1 LaunchStapGraph (org.eclipse.linuxtools.internal.callgraph.launch.LaunchStapGraph)1 Composite (org.eclipse.swt.widgets.Composite)1 Shell (org.eclipse.swt.widgets.Shell)1 Test (org.junit.Test)1