Commit 709c6086 authored by Johannes Eder's avatar Johannes Eder
Browse files

YELLOW

parent 34065cad
......@@ -18,6 +18,8 @@ $Id: ApplicationWorkbenchAdvisor.java 769 2011-06-14 13:18:26Z ratiu $
package org.fortiss.af3.rcp.application.advisors;
import static org.fortiss.af3.project.ui.perspective.ModelingPerspectiveFactory.MODELING_PERSPECTIVE_ID;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.application.IWorkbenchConfigurer;
......@@ -28,7 +30,6 @@ import org.eclipse.ui.ide.IDE;
import org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator;
import org.fortiss.af3.project.AF3Project;
import org.fortiss.af3.project.ui.AF3ProjectUI;
import org.fortiss.af3.project.ui.perspective.ModelingPerspectiveFactory;
import org.fortiss.tooling.base.ToolingBase;
import org.fortiss.tooling.kernel.ToolingKernel;
import org.fortiss.tooling.kernel.ui.ToolingKernelUI;
......@@ -39,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.ToolingKernelUI;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 6104 $
* @ConQAT.Rating RED Hash: EE3D6DDA9E2CBB455637146A4E66B456
* @ConQAT.Rating YELLOW Hash: 92E0FAFB0396EDCEB5807E0CA9DBC636
*/
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
......@@ -53,24 +54,19 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
/** {@inheritDoc} */
@Override
public IAdaptable getDefaultPageInput() {
// TODO (TC, 25)
return ResourcesPlugin.getWorkspace().getRoot();
}
/** {@inheritDoc} */
@Override
public void preStartup() {
// TODO (TC, 25)
IDE.registerAdapters();
// TODO (TC, 25)
AF3ExplorationUIActivator.registerWorkbenchListener();
}
/** {@inheritDoc} */
@Override
// TODO (TC, 25)
public
void postStartup() {
public void postStartup() {
ToolingKernel.start();
ToolingBase.start();
ToolingKernelUI.start();
......@@ -82,7 +78,6 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
@Override
public void initialize(IWorkbenchConfigurer configurer) {
configurer.setSaveAndRestore(true);
// TODO (TC, 25)
ToolingKernel.initialize();
ToolingBase.initialize();
ToolingKernelUI.initialize();
......@@ -92,7 +87,6 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
/** {@inheritDoc} */
@Override
public String getInitialWindowPerspectiveId() {
// TODO (TC, 25)
return ModelingPerspectiveFactory.MODELING_PERSPECTIVE_ID;
return MODELING_PERSPECTIVE_ID;
}
}
......@@ -18,6 +18,8 @@ $Id: ApplicationWorkbenchWindowAdvisor.java 769 2011-06-14 13:18:26Z ratiu $
package org.fortiss.af3.rcp.application.advisors;
import static org.fortiss.af3.rcp.application.utils.ApplicationUtils.switchToAF3Perspective;
import java.util.HashSet;
import org.eclipse.swt.graphics.Point;
......@@ -31,7 +33,6 @@ import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
import org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator;
import org.fortiss.af3.rcp.application.utils.ApplicationUtils;
/**
* Workbench window advisor for AF3 RCP.
......@@ -39,7 +40,7 @@ import org.fortiss.af3.rcp.application.utils.ApplicationUtils;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 6104 $
* @ConQAT.Rating YELLOW Hash: CEDB04A71FD0D8A7F78F26C4533214DC
* @ConQAT.Rating YELLOW Hash: D7D60EE0A6E35DF0C0B9C5B7545EC4AB
*/
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
......@@ -86,11 +87,9 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
}
}
// Register DSE perspective listener
// TODO (TC, 25)
AF3ExplorationUIActivator.registerPerspectiveListener();
// enable AF3 Perspective rather than any other perspective at startup
// TODO (TC, 25)
ApplicationUtils.switchToAF3Perspective();
switchToAF3Perspective();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment