use of org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab in project linuxtools by eclipse.
the class LaunchConfigTabTest method prep.
@Before
public void prep() throws Exception {
// $NON-NLS-1$
proj = createProjectAndBuild("cpptest");
config = createConfiguration(proj.getProject());
testShell = new Shell(Display.getDefault());
testShell.setLayout(new GridLayout());
tab = new ValgrindOptionsTab();
}
use of org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab in project linuxtools by eclipse.
the class HelgrindLaunchShortcut method setDefaultProfileAttributes.
@Override
protected void setDefaultProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException {
ValgrindOptionsTab tab = new ValgrindOptionsTab();
tab.setDefaults(wc);
ILaunchConfigurationTab defaultTab = ValgrindLaunchPlugin.getDefault().getToolPage(HelgrindPlugin.TOOL_ID);
defaultTab.setDefaults(wc);
}
use of org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab in project linuxtools by eclipse.
the class MinVersionTest method testTabsBadVersion.
@Test
public void testTabsBadVersion() throws Exception {
Shell testShell = new Shell(Display.getDefault());
testShell.setLayout(new GridLayout());
ValgrindOptionsTab tab = new ValgrindOptionsTab();
ILaunchConfiguration config = getLaunchConfigType().newInstance(null, getLaunchManager().generateLaunchConfigurationName(proj.getProject().getName()));
ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
tab.setDefaults(wc);
tab.createControl(testShell);
tab.initializeFrom(config);
tab.performApply(wc);
assertFalse(tab.isValid(config));
assertNotNull(tab.getErrorMessage());
testShell.dispose();
}
use of org.eclipse.linuxtools.internal.valgrind.launch.ValgrindOptionsTab in project linuxtools by eclipse.
the class AbstractValgrindTest method setProfileAttributes.
@Override
protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException {
ILaunchConfigurationTab tab = new ValgrindOptionsTab();
tab.setDefaults(wc);
tab = ValgrindLaunchPlugin.getDefault().getToolPage(getToolID());
tab.setDefaults(wc);
wc.setAttribute(LaunchConfigurationConstants.ATTR_TOOL, getToolID());
wc.setAttribute(LaunchConfigurationConstants.ATTR_FULLPATH_AFTER, false);
}
Aggregations