| Summary: | [Perspectives] How to place first view if no editor area | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sebastian Davids <sdavids> |
| Component: | UI | Assignee: | Nick Edgar <n.a.edgar> |
| Status: | VERIFIED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | Keywords: | helpwanted |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
ment 3.0 :D Rechecked with Version: 3.0.1 Build id: 200409161125 This is not a regression. @@@@ Still remains the problem how to place the first view if you do not have an editor area. One could use:
/** {@inheritDoc} */
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addView(
"rcp.view",
IPageLayout.TOP,
IPageLayout.RATIO_MAX,
IPageLayout.ID_EDITOR_AREA);
}
But shouldn't it be also possible via the manifest?
Also, as far as I know standalone="true" showTitle="false" cannot be set in createInitialLayout(IPageLayout). For the original problem, I suspect that it's just not handling the editor area special case, whether or not it is visible. But yes, this should be possible via the manifest. For standalone views in the perspective factory, use IPageLayout.addStandaloneView instead. Sebastian, if you wanted to apply your patching skills here, it would be appreciated. I'm going to take a look at it tonight or tomorrow. Grr... <slaps his forehead>
>>relative="org.eclipse.editorss"
Forgot the "ui".
While I was debugging I realized that a view is registered under "org.eclipse.ui.internal.introview". Is there a reason why this isn't done in the intro plugin? The workbench provides the view that contains the intro part. org.eclipse.ui.intro doesn't know that it's a view. For the original problem, was there nothing in the log? Seems like the error reporting could be improved if not. Moving to VERIFIED state. Note that you can use IPageLayout.ID_EDITOR_AREA instead of inlining the string yourself. |
!ENTRY org.eclipse.ui 4 4 2004-12-12 01:46:58.640 !MESSAGE Referenced part does not exist yet: org.eclipse.editorss. @@@@ public class RcpPerspective implements IPerspectiveFactory { /** {@inheritDoc} */ public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); } } <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.0"?> <plugin id="rcp" name="Rcp Plug-in" version="1.0.0" provider-name="Sebastian Davids"> <runtime> <library name="rcp.jar"> <export name="*"/> </library> </runtime> <requires> <import plugin="org.eclipse.core.runtime"/> <import plugin="org.eclipse.ui"/> </requires> <extension point="org.eclipse.core.runtime.applications" id="application"> <application> <run class="rcp.RcpApplication"/> </application> </extension> <extension point="org.eclipse.ui.perspectives"> <perspective id="rcp.perspective" class="rcp.RcpPerspective" name="Perspective"/> </extension> <extension point="org.eclipse.ui.views"> <view id="rcp.view" class="rcp.RcpView" name="View"/> </extension> <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="rcp.perspective"> <view id="rcp.view" relative="org.eclipse.editorss" relationship="top" standalone="true" showTitle="false"/> </perspectiveExtension> </extension> </plugin> @@@@ Version: 3.1.0 Build id: 200412011139 In 3.1 this used to not log an error. The underlying problem is: how to you place a view in a perspective when there is no editor area and no other views?