Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322117

Summary: [Perspectives] perspectiveExtension:warning "Referenced identifier 'xxx' in attribute 'relative' cannot be found" when referencing IPlaceHolderFolderLayout
Product: [Eclipse Project] Platform Reporter: Davy Meers <davymeers>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Davy Meers CLA 2010-08-09 05:55:50 EDT
Build Identifier: 20100617-1415

In the PerspectiveFactory you can specify IPlaceHolderFolderLayout's with layout.createPlaceholderFolder.
Using the extension point "org.eclipse.ui.perspectiveExtensions" you can add views to a perspective.

It is possible to place a view relative to a IPlaceHolderFolderLayout (using the relative attribute), but you get the warning "Referenced identifier 'xxx' in attribute 'relative' cannot be found".

This is because of the extension point's schema, that expects an IDREF for the attribute "relative".

It would be nice if we could specify the IPlaceHolderFolderLayout's declaratively (or broader: extend the "org.eclipse.ui.perspective" extension point, so we don't need to create a perspectivefactory any longer).
This would also solve this bug.

Another option is to change the schema, so ithe relative attribute doesn't expect a ID. But i don't really like that, because it opens the door for typo's etcetera.

This is probably related to bug 287551 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=287551).

Reproducible: Always

Steps to Reproduce:
1.create a perspective and add a IPlaceHolderLayout
2.add a view to the perspective using the perspectiveExtensions extension point, relative to the created IPlaceHolderLayout
3.when you run the application everything works as expected, but you get the specified warning
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:04:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 2 Eclipse Genie CLA 2021-11-26 14:47:51 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.