View loading dependency [message #327130] |
Fri, 11 April 2008 05:07  |
Eclipse User |
|
|
|
Originally posted by: gemaspecial.yahoo.com.hk
Problem: Cannot find base viewId when initializing view positions
Situation:
Two plugins, say A and B and their dependency is:
A -> (depends on) B
Each plugin gets a view, say ViewA and ViewB
I want to put ViewA on top of ViewB by default.
Thanks
================code================================
ViewA position in plugin.xml
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.mywork.perspective">
<view
id="org.mywork.ui.views.ViewA"
ratio="0.5"
relationship="bottom"
relative="org.mywork.ui.views.ViewB"/>
</perspectiveExtension>
.....
ViewB position in plugin.xml
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.mywork.perspective">
<view
id="org.mywork.ui.views.ViewB"
ratio="1.0"
relationship="top"
relative="org.eclipse.ui.editorss"/>
</perspectiveExtension>
</extension>
....
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04969 seconds