Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
709c6086
Commit
709c6086
authored
Oct 27, 2017
by
Johannes Eder
Browse files
YELLOW
parent
34065cad
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.rcp.application/trunk/src/org/fortiss/af3/rcp/application/advisors/ApplicationWorkbenchAdvisor.java
View file @
709c6086
...
...
@@ -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:
EE3D6DDA9E2CBB455637146A4E66B45
6
* @ConQAT.Rating
YELLOW
Hash:
92E0FAFB0396EDCEB5807E0CA9DBC63
6
*/
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
;
}
}
org.fortiss.af3.rcp.application/trunk/src/org/fortiss/af3/rcp/application/advisors/ApplicationWorkbenchWindowAdvisor.java
View file @
709c6086
...
...
@@ -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
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment