View loading dependency [message #327130] |
Fri, 11 April 2008 09: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>
....
|
|
|
Re: View loading dependency [message #327131 is a reply to message #327130] |
Fri, 11 April 2008 09:11 |
Eclipse User |
|
|
|
Originally posted by: gemaspecial.yahoo.com.hk
Sorry, forget to post the problem
Here is the .log
======================.log===========================
!ENTRY org.eclipse.ui 4 4 2008-04-11 16:56:55.578
!MESSAGE Referenced part does not exist yet: org.mywork.ui.views.ViewB.
======================.log===========================
I suppose eclipse loads ViewA BEFORE ViewB, just opposite to the
specified dependency.
I am sure the line "Require-Bundle: org.mywork.pluginB" is present in
pluginA's plugin.xml
Do I missing something?
Leung Wang Hei wrote:
> 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.03070 seconds