Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » what does "Referenced part does not exist yet" mean?
what does "Referenced part does not exist yet" mean? [message #330810] Wed, 13 August 2008 20:38 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
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
Re: what does "Referenced part does not exist yet" mean? [message #330894 is a reply to message #330824] Fri, 15 August 2008 15:22 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
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
>

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 #330935 is a reply to message #330894] Mon, 18 August 2008 14:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


--
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


Re: what does "Referenced part does not exist yet" mean? [message #330956 is a reply to message #330935] Tue, 19 August 2008 14:03 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
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
Previous Topic:Help regarding equinox p2
Next Topic:Question about copy/paste behaviour on Linux
Goto Forum:
  


Current Time: Sun Nov 17 21:24:30 GMT 2024

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

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

Back to the top