Bug 38125 - [Contributions] adapters: Element factory registry should be public
Summary: [Contributions] adapters: Element factory registry should be public
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2003-05-26 15:17 EDT by Marcelo Paternostro CLA
Modified: 2019-09-06 16:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Paternostro CLA 2003-05-26 15:17:17 EDT
The pair IPersistableElement and IElementFactory forms a very helpfull and 
powerfull mechanism that be used in lots of different implementations.  The 
only problem is that WorkbenchPlugin.getDefault().getElementFactory(factoryId) 
cannot be accessed because it is in an internal package.

In my code, I am defining a new type of object that implements 
IPersistableElement. What I would like to do now is to load my object in any 
place I want, but this is not possible since I don't have access to the 
factory registry.
Comment 1 John Arthorne CLA 2003-05-26 19:01:20 EDT
You can register a factory using the org.eclipse.ui.elementFactories extension
point.  Look in the Platform Plugin Developer's Guide under Programmer's Guide >
Plugging into the Workbench > More workbench extensions >
org.eclipse.ui.elementFactories for more details.
Comment 2 Marcelo Paternostro CLA 2003-05-26 19:13:55 EDT
I've done that.  My point is that I would like to get a reference to an 
existing factory after obtained its string id.  I don't think there is 
a "public" of doing it.
Comment 3 John Arthorne CLA 2003-06-02 17:00:05 EDT
Note that WorkbenchPlugin.getElementFactory is just a convenience method.  The
extension point format is well known, and includes the class attribute, so you
can query the plugin registry directly to obtain an instance of a given factory.

Moving to platform UI for further comment.
Comment 4 Michael Van Meekeren CLA 2006-04-21 13:56:14 EDT
Moving Dougs bugs
Comment 5 Paul Webster CLA 2007-04-05 19:02:31 EDT
Assigning to component owner
PW
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:19:23 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.