Troubles extending a declared Perspective [message #435990] |
Mon, 29 August 2005 06:37 |
Raffael Heinzer Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hey there,
I am having a weird problem with the order, in which views are loaded.
Somehow it seems to depend on the plugin-id, whether my program runs or not.
Here's a description of my goal:
I want to have a plugin (plugin1) containing a perspective (perspective1).
This perspective should define a layout with 2 views (view1 + view2),
arranged next to each other.
Then, I want to offer the ability to stack a view (view3) contributed
from a different plugin (plugin2) onto one of the views from above.
And, I would like to specify whether view3 stacks upon view1 or view2,
so I started using view1 and view2 ids as my own way of having placeholders.
This actually works fine.
Now, the problem:
If I happen to name plugin2 with an id that is, alphabetically speaking,
smaller than the id of plugin1, say "aplugin2".
Then, when Eclipse starts to lay out the perspective, it seems to handle
"aplugin2" first, which fails, because view1 and view2 seem not to be
loaded yet. The error message on STDOUT is "Referenced part does not
exist yet: view1".
After quite a while, I found out that this problem only occurs, when I
declare the perspective-layout in plugin1 using a perspectiveExtension
(instead of programming it into the PerspectiveFactory).
I would be very curious to hear, whether I am going down a wrong path by
using views as placeholders. But the supported placeholders in the
perspective layout seem to address a slightly different issue.
And maybe this thing with plugin-ids determining the success of my
project sounds like a bug.
Thanks in advance,
: raffael
|
|
|
Powered by
FUDForum. Page generated in 0.02970 seconds