Search in sources :

Example 1 with CompatibilityView

use of org.eclipse.ui.internal.e4.compatibility.CompatibilityView in project windup-eclipse-plugin by windup.

the class WindupUiTest method init.

@Before
public void init() throws CoreException {
    projectProvider = workbenchBot.importProject(Activator.PLUGIN_ID, null, PROJECT, false);
    openWindupPerspective();
    this.issueExplorer = (IssueExplorer) ((CompatibilityView) partService.findPart(IssueExplorer.VIEW_ID).getObject()).getView();
    assertNotNull("Issue Explorer is NULL.", issueExplorer);
    System.out.println("@Before::init:: start MTA server.");
    windupLauncher.start(new WindupServerCallbackAdapter(Display.getDefault().getActiveShell()) {

        @Override
        public void serverStart(IStatus status) {
            if (status.isOK() && windupClient.getExecutionBuilder() != null) {
                System.out.println("@Before::init:: MTA server started successfully.");
            } else {
                System.out.println("@Before::init:: MTA server failed to start.");
            }
        }
    }, WindupRuntimePlugin.computeJRELocation());
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) WindupServerCallbackAdapter(org.jboss.tools.windup.ui.util.WindupServerCallbackAdapter) CompatibilityView(org.eclipse.ui.internal.e4.compatibility.CompatibilityView) Before(org.junit.Before)

Aggregations

IStatus (org.eclipse.core.runtime.IStatus)1 CompatibilityView (org.eclipse.ui.internal.e4.compatibility.CompatibilityView)1 WindupServerCallbackAdapter (org.jboss.tools.windup.ui.util.WindupServerCallbackAdapter)1 Before (org.junit.Before)1