Community
Participate
Working Groups
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: 1. create a new Eclipse Plugin 2. write a new perspective, with custom views 3. try to add the OCL console view somewhere on the Eclipse workbench automatically (NOT by hand every time you open Eclipse) 4. Run the plugin and open the new perspective
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.
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.
Closing INVALIDs