Bug 283690 - [plug-in registry] Separate model from org.eclipse.pde.runtime to new independent plugin
Summary: [plug-in registry] Separate model from org.eclipse.pde.runtime to new indepen...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Incubators (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 07:33 EDT by Wojciech Galanciak CLA
Modified: 2019-09-06 15:31 EDT (History)
4 users (show)

See Also:


Attachments
removes model from org.eclipse.pde.runtime (79.80 KB, patch)
2009-07-16 08:04 EDT, Wojciech Galanciak CLA
no flags Details | Diff
model plugin (64.20 KB, application/octet-stream)
2009-07-16 08:05 EDT, Wojciech Galanciak CLA
no flags Details
small update (1.22 KB, patch)
2009-07-17 08:54 EDT, Wojciech Galanciak CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Galanciak CLA 2009-07-16 07:33:52 EDT
We think that it is good idea to separate model implementation to new plugin because we can't required from our remote monitoring tool user to add additional view (plugin registry view) to his or her RCP application. Our proposition is to create new plugin org.eclipse.pde.runtime.core contains model implementation.
Comment 1 Wojciech Galanciak CLA 2009-07-16 08:04:36 EDT
Created attachment 141762 [details]
removes model from org.eclipse.pde.runtime

This patch removes model package from org.eclipse.pde.runtime (from incubator) and adds org.eclipse.pde.runtime.core to required plugins.
Comment 2 Wojciech Galanciak CLA 2009-07-16 08:05:54 EDT
Created attachment 141763 [details]
model plugin

This plugin contains model from org.eclipse.pde.runtime.
Comment 3 Jacek Pospychala CLA 2009-07-17 05:04:20 EDT
Chris, Curtis - how should we go about that?
Basically, to monitor Eclipse/Equinox apps we need some plug-in that will be installed on the monitored instance. It should not contain Plug-in Registry view, because this is something, that could be harmful for potential adopter (e.g. RCP application with sleak interface and novice users). But parts of org.eclipse.pde.runtime are necessary, because they contain universal OSGi data fetching logic and a simple data model.

The ideal solution for me would be to move Plug-in Registry view to org.eclipse.pde.ui view (and some day to org.eclipse.pde.ui.views) and make it depend on org.eclipse.pde.runtime.
Next pde.runtime should have no dependencies on UI, e.g. for people who run non-UI Equinox applications. User willing to monitor his Eclipse/Equinox app, would install pde.runtime AND specific connector plug-in, e.g. pde.runtime.rosgi.rs

PDE Spy would also have to find it's own plug-in (org.eclipse.pde.runtime.spy?). I think would be good for it's adoption.


Eventually we could take a different course of action - copy the part of org.eclipse.pde.runtime to every connector plug-in (e.g. pde.runtime.rosgi.rs, pde.runtime.jmx, etc.). This is idealogically bad because we duplicate code and make it difficult to develop more connectors (who cares?).


What you think?

Comment 4 Jacek Pospychala CLA 2009-07-17 06:09:20 EDT
Wojciech, model plugin needs a bit more care. 
RegistryModelFactory should stay in pde.runtime where it's extension point (o.e.p.runtime.backends) is. 
I'm not sure about RegistryModel - it's used only by the view, but let's keep it in runtime.core for a while. 
PDERuntimePlugin should be renamed to PDERuntimeCorePlugin, the "ID" field inside updated and unused methods removed. 
We don't need dependency on org.eclipse.ui as well (in MANIFEST.MF).
I also copied all .settings to the new plug-in.
I have put runtime.core with all above modifications to incubator so you can play with it.:-)

Comment 5 Jacek Pospychala CLA 2009-07-17 06:18:49 EDT
fyi, I also updated pde.runtime in incubator to work with pde.runtime.core - removed classes and moved RegistryModelFactory.
Comment 6 Wojciech Galanciak CLA 2009-07-17 08:54:35 EDT
Created attachment 141878 [details]
small update

It removes two problems:
- removes org.eclipse.pde.internal.runtime.model package from Export-Package
- adds org.eclipse.pde.runtime.core to Required Plugins
Comment 7 Jacek Pospychala CLA 2009-07-17 09:10:13 EDT
(In reply to comment #6)
> It removes two problems:
> - removes org.eclipse.pde.internal.runtime.model package from Export-Package
> - adds org.eclipse.pde.runtime.core to Required Plugins

Done.
Comment 8 Eclipse Webmaster CLA 2019-09-06 15:31:46 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.