| Summary: | [Compatibility] Investigate a way to allow views to be defined inside the shared area in 4.x using 3.x code and extensions only | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eiswind | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 4.1 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Remy Suen
Hi remy, don't have the bundle at hand. I tried a perspectivextension with org.eclipse.ui.editorss and relation stack. This is the XML snippet I am using to test:
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.team.cvs.ui.cvsPerspective">
<view
id="org.eclipse.ant.ui.views.AntView"
relationship="stack"
relative="org.eclipse.ui.editorss">
</view>
</perspectiveExtension>
</extension>
I can make this work on 4.x but on 3.x the error message will be logged. Is this a problem for you, Thomas?
!MESSAGE Referenced part does not exist yet: org.eclipse.ui.editorss.
Thats exactly what I've tried. As I don't think of stepping back after the first e4 release this is ok to me. Great news :) Created attachment 189803 [details]
ModeledPageLayout patch v1
(In reply to comment #3) > Thats exactly what I've tried. Great! Just wanted to make sure we're doing the same thing/tests. :) (In reply to comment #4) > Created attachment 189803 [details] > ModeledPageLayout patch v1 Patch released to HEAD. Hi Remy, I tried to add the view with "visible=false" to my perspective, as I don't want to show it at startup but only if some restricted command gets executed. But now I get Caused by: java.lang.IllegalArgumentException: The selected element org.eclipse.e4.ui.model.application.ui.advanced.impl.PlaceholderImpl@67969fa5 (elementId: de.eiswind.paris.client.core.ui.user.UserView, tags: null, contributorURI: null, transientData: null) (widget: null, renderer: null, toBeRendered: false, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (closeable: false) must be visible in the UI presentation Can you give me a pointer how I could make the view show up later but not at startup in the shared area? (In reply to comment #6) > Can you give me a pointer how I could make the view show up later but not at > startup in the shared area? Can you open a new bug with the error stack trace in it? I will take a look this week. filed as bug #339994 HI Remy, guess youzr on your way right now. I found that when I open two views in the shared area (wich works fine now) and close them both again, the other one gets reopened when I close the last one. It then toggles between both views when I close the view. No Exceptions, only this strange behaviour. Guess you have a good time at eclipsecon. So long Thomas (In reply to comment #9) > guess youzr on your way right now. I found that when I open two views in the > shared area (wich works fine now) and close them both again, the other one gets > reopened when I close the last one. It then toggles between both views when I > close the view. No Exceptions, only this strange behaviour. Hi Thomas, this is very disturbing! Please use breakpoints in CompatibilityPart to see when it calls the createPartControl(Composite) method after you close the second view (and presumably recreate the first one). After you get the stack trace, open a new bug and let me know. I dragged two views into the shared area with I20110317-2200 on Windows XP and could not reproduce the problem so it must be something specific to the perspective extension. > Guess you have a good time at eclipsecon. Thanks and thanks for testing 4.1 as always! I tried to reproduce the problem with this XML snippet and could not make the problem appear. I opened the 'Projects' and 'Markers' view and then tried closing them, they did not disappear.
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
closeable="true"
id="org.eclipse.jdt.ui.ProjectsView"
minimized="false"
moveable="true"
ratio="1.0"
relationship="stack"
relative="org.eclipse.ui.editorss"
showTitle="true"
standalone="false"
visible="false">
</view>
<view
closeable="true"
id="org.eclipse.ui.views.AllMarkersView"
minimized="false"
moveable="true"
ratio="1.0"
relationship="stack"
relative="org.eclipse.ui.editorss"
showTitle="true"
standalone="false"
visible="false">
</view>
</perspectiveExtension>
</extension>
|