what does "Referenced part does not exist yet" mean? [message #330810] |
Wed, 13 August 2008 20:38  |
Eclipse User |
|
|
|
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 #330824 is a reply to message #330810] |
Thu, 14 August 2008 09:05   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
Re: what does "Referenced part does not exist yet" mean? [message #330894 is a reply to message #330824] |
Fri, 15 August 2008 15:22   |
Eclipse User |
|
|
|
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
>
Ah, so now I tried again setting that attribute to
"org.eclipse.ui.editorss" -- and it works! Is doing that an unreliable
kluge (since the id should be the id of a View) or is the docco slightly
wrong (and should say "of a View or of the editor-area")?
I find that the folder must exist, at least (I think my prior attempt to
use the id "org.eclipse.ui.editorss" failed b/c I also removed the folder).
thanks,
Paul
|
|
|
|
Re: what does "Referenced part does not exist yet" mean? [message #330956 is a reply to message #330935] |
Tue, 19 August 2008 14:03  |
Eclipse User |
|
|
|
Paul Webster wrote:
> Paul Th. Keyser wrote:
>> Ah, so now I tried again setting that attribute to
>> "org.eclipse.ui.editorss" -- and it works! Is doing that an unreliable
>> kluge (since the id should be the id of a View) or is the docco
>> slightly wrong (and should say "of a View or of the editor-area")?
>
> The second (org.eclipse.ui.editorss is valid as a relative ID for
> perspective layouts).
>
> PW
>
>
OK, thanks -- shall I enter a bug against Eclipse/ PDE/ Doc for the
ext.-pt. "org.eclipse.ui.perspectiveExtensions"?
-Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03366 seconds