Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » View loading dependency
View loading dependency [message #327130] Fri, 11 April 2008 09:07 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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>
> ...
Re: View loading dependency [message #327156 is a reply to message #327130] Fri, 11 April 2008 18:06 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Leung Wang Hei wrote:
> Problem: Cannot find base viewId when initializing view positions
>
> Situation:
>
> Two plugins, say A and B and their dependency is:

They're both coming in as perspectiveExtensions, and there can be no
dependencies between perspectiveExtensions. A pE can only depend on a
perspective.

More specifically, the perspectiveExtensions are read in plugin-id
order, although that's an implementation detail, I don't think it is
spec'ed that way. So B will be processed after A.

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:How to define Eclipse editor size
Next Topic:Modifying resources from outside the workbench
Goto Forum:
  


Current Time: Thu Jun 27 19:59:33 GMT 2024

Powered by FUDForum. Page generated in 0.03070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top