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);
}
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();
}
Aggregations