use of org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab in project linuxtools by eclipse.
the class TestLaunching method setProfileAttributes.
@Override
protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) {
OprofileTestingEventConfigTab configTab = new OprofileTestingEventConfigTab();
OprofileSetupTab setupTab = new OprofileSetupTab();
configTab.setOprofileProject(proj.getProject());
configTab.setDefaults(wc);
setupTab.setDefaults(wc);
}
use of org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab in project linuxtools by eclipse.
the class TestLaunchingExternalProject method setProfileAttributes.
// Implemented abstract method of AbstractTest
@Override
protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) {
OprofileTestingEventConfigTab configTab = new OprofileTestingEventConfigTab();
configTab.setOprofileProject(externalProject);
OprofileSetupTab setupTab = new OprofileSetupTab();
configTab.setDefaults(wc);
setupTab.setDefaults(wc);
}
use of org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab in project linuxtools by eclipse.
the class TestSetup method testEventConfigTab.
@Test
public void testEventConfigTab() throws CoreException {
OprofileTestingEventConfigTab tab = new OprofileTestingEventConfigTab();
tab.createControl(new Shell());
assertNotNull(tab.getImage());
assertNotNull(tab.getName());
tab.setDefaults(config.getWorkingCopy());
tab.initializeFrom(config);
assertTrue(tab.isValid(config));
assertTrue(tab.getDefaultCheck().getSelection());
tab.getDefaultCheck().notifyListeners(SWT.Selection, null);
tab.getDefaultCheck().setSelection(false);
tab.getDefaultCheck().notifyListeners(SWT.Selection, null);
ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
wc.setAttribute(OprofileLaunchPlugin.ATTR_USE_DEFAULT_EVENT, false);
performApply(tab, wc);
assertFalse(tab.isValid(config));
}
use of org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab in project linuxtools by eclipse.
the class TestSetup method setProfileAttributes.
@Override
protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) {
OprofileTestingEventConfigTab configTab = new OprofileTestingEventConfigTab();
OprofileSetupTab setupTab = new OprofileSetupTab();
configTab.setOprofileProject(proj.getProject());
configTab.setDefaults(wc);
setupTab.setDefaults(wc);
}
Aggregations