|
Re: what does "Referenced part does not exist yet" mean? [message #330824 is a reply to message #330810] |
Thu, 14 August 2008 09:05 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: tom.seidel.spiritlink.de
Paul,
with
layout.createFolder("com.mun.ist.MyViewsFolder", IPageLayout.BOTTOM,
0.5f, IPageLayout.ID_EDITOR_AREA);
you're creating a folder with the id "com.mun.ist.MyViewsFolder".
You cannot reference this folder-id in the 'relative'-attribute of your
perspective extension. This attribute requires a view-id, not a folder-id
Tom
Paul Th. Keyser schrieb:
> R3.3, WinXP
>
> I get this log-entry three times at startup in our RCP:
>
> !ENTRY org.eclipse.ui 4 4 2008-08-13 16:22:40.781
> !MESSAGE Referenced part does not exist yet: com.mun.ist.MyViewsFolder.
>
> The id refers to a layout-folder created in our IPerspectiveFactory,
> like this:
>
> public void createInitialLayout(IPageLayout layout) {
> layout.setEditorAreaVisible(false);
>
> layout.createFolder("com.mun.ist.MyViewsFolder", IPageLayout.BOTTOM,
> 0.5f, IPageLayout.ID_EDITOR_AREA);
> }
>
> The only other place where that ID is used is in our plugin.xml where
> three views declare as follows:
>
> <extension
> point="org.eclipse.ui.perspectiveExtensions">
> <perspectiveExtension
> targetID="com.mun.ist.our.perspective">
> <view
> closeable="true"
> id="com.mun.ist.some.view"
> moveable="true"
> ratio="0.5"
> relationship="stack"
> relative="com.mun.ist.MyViewsFolder"
> showTitle="true"
> standalone="false"
> visible="false">
> </view>
> </perspectiveExtension>
> </extension>
>
> What are we doing wrong? Or is that log-message just a warning and we
> can ignore it?
>
> thanks,
> -Paul
>
|
|
|
Re: what does "Referenced part does not exist yet" mean? [message #330841 is a reply to message #330824] |
Thu, 14 August 2008 13:28 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Paul E. Keyser![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=rolarenfan%40earthlink.net) Messages: 878 Registered: July 2009 |
Senior Member |
|
|
Tom Seidel wrote:
> Paul,
>
> with
> layout.createFolder("com.mun.ist.MyViewsFolder", IPageLayout.BOTTOM,
> 0.5f, IPageLayout.ID_EDITOR_AREA);
> you're creating a folder with the id "com.mun.ist.MyViewsFolder".
>
> You cannot reference this folder-id in the 'relative'-attribute of your
> perspective extension. This attribute requires a view-id, not a folder-id
>
> Tom
>
Ah -- I see. Can I use the id of the "editor area"? (I thought I tried
that and it failed.)
What we are trying to do is this:
====================================================
| | |
| OurFixed | |
| View | Editor Area |
| | |
| | |
| |__________________________________|
| | |
| | |
| | Plugged-In Views |
| | Area/Folder |
| | |
| | |
====================================================
Since the Views are plugged in, the IPerspectiveFactory of course cannot
know their ids.
Since the we want the Views located "down there", there is no way (that
I have thought of) to specify their location with respect to the
"OurFixedView".
Someone else tried the folder idea (which would work if we hard-wired in
the plugged-in views' ids, but ... bad plan).
thanks,
Paul
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05042 seconds