org.eclipse.ui.IActionDelegate Java Examples

The following examples show how to use org.eclipse.ui.IActionDelegate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContextMenuActionsTest.java    From spotbugs with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Test
public void testSaveXML() throws CoreException {
    assertNoBugs();
    work(createFindBugsWorker());
    assertExpectedBugs();

    StructuredSelection selection = new StructuredSelection(getProject());
    IActionDelegate action = new SaveXMLActionTestSubclass(getTempFilePath());
    action.selectionChanged(null, selection);
    action.run(null);

    joinJobFamily(FindbugsPlugin.class);

    clearBugsState();
    assertNoBugs();

    loadXml(createFindBugsWorker(), getTempFilePath());
    assertExpectedBugs();
}
 
Example #2
Source File: ContextMenuActionsTest.java    From spotbugs with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Test
public void testLoadXML() throws CoreException {
    assertNoBugs();

    StructuredSelection selection = new StructuredSelection(getProject());
    IActionDelegate action = new LoadXMLActionTestSubclass(getBugsFileLocation());
    action.selectionChanged(null, selection);
    action.run(null);

    joinJobFamily(FindbugsPlugin.class);

    assertExpectedBugs();
}
 
Example #3
Source File: SVNPluginAction.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public IActionDelegate getDelegate() {
	return delegate;
}