Closed eclipse-ocl-bot closed 1 month ago
By Darie Moldovan on Nov 24, 2010 10:26
Example:
for adding the Project Explorer view to the bottom of the Eclipse Workbench, you just have to write something like:
String editorArea = layout.getEditorArea();\ \ layout.addView(\ IPageLayout.ID_PROJECT_EXPLORER,\ IPageLayout.LEFT, 0.25f,\ editorArea);
where ID_PROJECT_EXPLORER has the value "org.eclipse.ui.navigator.ProjectExplorer". I look for a similar way to add the OCL Console view.
By Adolfo Sanchez-Barbudo Herrera on Dec 02, 2010 08:59
Darie,
Apologizes for the delayed response.
The "OCL Console View" is not a View provided by MDT/OCL itself.
OCL provides a Console implementation which is added to the "Console View" (throw the IConsoleManager).
I've looked for your required "Console View" id:
org.eclipse.ui.console.ConsoleView
Try this ID to make the "Console View" appear in your perspective
P.S: note that only the "Console View" would appear, you'd then have to switch to the OCL Interactive Console.
Best Regards,\ Adolfo.
By Ed Willink on May 27, 2011 02:59
Closing INVALIDs
| --- | --- | | Bugzilla Link | 331030 | | Status | CLOSED INVALID | | Importance | P3 normal | | Reported | Nov 24, 2010 10:22 EDT | | Modified | May 27, 2011 02:59 EDT | | Reporter | Darie Moldovan |
Description
Build Identifier: 20100917-0705
The OCL Console View cannot be added to a newly created Eclipse perspective programatically. In the class, which implements IPerspectiveFactory and which defines which views are to be added to the new perspective (see method
public void createInitialLayout(IPageLayout layout)
), there seems to be no way to specify a string, which represents the ID of the OCL console view, so that it can be automatically loaded when the user opens the perspective (something like org.eclipse.ocl.bla-bla.OCLConsoleView).
Reproducible: Always
Steps to Reproduce: