Search in sources :

Example 1 with OprofileTestingEventConfigTab

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);
}
Also used : OprofileTestingEventConfigTab(org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab) OprofileSetupTab(org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileSetupTab)

Example 2 with OprofileTestingEventConfigTab

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);
}
Also used : OprofileTestingEventConfigTab(org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab) OprofileSetupTab(org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileSetupTab)

Example 3 with OprofileTestingEventConfigTab

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));
}
Also used : OprofileTestingEventConfigTab(org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab) Shell(org.eclipse.swt.widgets.Shell) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) Test(org.junit.Test) AbstractTest(org.eclipse.linuxtools.profiling.tests.AbstractTest)

Example 4 with OprofileTestingEventConfigTab

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);
}
Also used : OprofileTestingEventConfigTab(org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab) OprofileSetupTab(org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileSetupTab)

Aggregations

OprofileTestingEventConfigTab (org.eclipse.linuxtools.oprofile.launch.tests.utils.OprofileTestingEventConfigTab)4 OprofileSetupTab (org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileSetupTab)3 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 AbstractTest (org.eclipse.linuxtools.profiling.tests.AbstractTest)1 Shell (org.eclipse.swt.widgets.Shell)1 Test (org.junit.Test)1