Community
Participate
Working Groups
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.
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.
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.
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.
Moving Dougs bugs
Assigning to component owner PW
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.