Bug 50517 - Can Error Log view be moved from PDE
Summary: Can Error Log view be moved from PDE
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: 4.11 M3   Edit
Assignee: Wim Jongman CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation, noteworthy
: 105585 107396 543120 (view as bug list)
Depends on: 543350 543351 543352
Blocks:
  Show dependency tree
 
Reported: 2004-01-23 17:33 EST by Steven Walton CLA
Modified: 2019-02-05 15:18 EST (History)
21 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Walton CLA 2004-01-23 17:33:44 EST
I'm creating an RCP (Rich Client Platform) application.  I want to be able to
view the error log view (for serviceability and while debugging).  However I
notice the   error log's id is in the pde.runtime package.  I do not wish to
include the PDE in my runtime.  Can the error log be moved to the platform level?
Comment 1 Wassim Melhem CLA 2004-01-23 17:38:48 EST
Jim,
the log view and the registry view are the only two things that are contained 
in the pde.runtime plug-in.
They are part of PDE because we are the ones who implemented them, but they 
are not necessarily PDE-specific.

Should they be moved down to the platform?
Comment 2 Jim des Rivieres CLA 2004-01-26 15:02:31 EST
Wassim: Do these views really depend on org.eclipse.update.ui.forms?

Nick: Would it be reasonable to treat these views like the other optional 
views that can be used with the generic workbench?
Comment 3 Wassim Melhem CLA 2004-01-26 16:11:21 EST
The error log is undergoing some enhancements.  Part of the work will remove 
the dependency on org.eclipse.update.ui.forms.
Comment 4 Wassim Melhem CLA 2004-01-26 16:22:00 EST
Also note that the dependency on core.resources can be easily removed also.
Comment 5 Nick Edgar CLA 2004-01-26 17:20:09 EST
Based on the comments about dependencies above, it sounds like their PDE 
dependencies can easily be factored out.  However, I don't think they should be 
moved into org.eclipse.ui.views (which currently contains just the Outline and 
Properties views) as the error log and registry view are really developer and 
debugging tools, not intended for use by regular end users.

I think it makes sense to keep them as part of the PDE component (since they 
are in aid of developing plug-ins), but move them to their a separate plugin 
without dependencies on the rest of PDE.
Comment 6 Wassim Melhem CLA 2004-01-26 17:26:41 EST
Nick, these views are already in their own lightweight plug-in 
(org.eclipse.pde.runtime), whose list of dependencies can be reduced to 
core.runtime.compatibility, org.eclipse.ui and org.eclipse.ui.views.

The question is of course whether this plug-in should remain part of the PDE 
feature.  Contents and use of the registry and the log views is not 
necessarily restricted to plug-in developers.  Applicaiton users are often 
asked to report the content of the log, and it would be better if they did not 
have to dig into their metadata directory to find it.
Comment 7 Jim des Rivieres CLA 2004-01-26 18:28:25 EST
Wassim: Is the dependency on org.eclipse.ui.views necessary? That plug-in only 
contains the Outline and Properties views. Do the registry and error views use 
either?


Comment 8 Wassim Melhem CLA 2004-01-26 18:44:45 EST
The registry view (the other view in the plug-in) uses the property sheet and 
hence the dependency on the ui.views.

Maybe we should consider whether these views should be moved down to the 
platform separately:

1. Log view: only requires org.eclipse.ui and core.runtime.compatibility.

2. Registry view: requires org.eclipse.ui, ui.views and 
core.runtime.compatibility.  This view is planned to undergo a major facelift 
to make it more useful, and the dependency on ui.views could go away as a 
result.

The log view seems a reasonable candidate for being pushed down to the 
platform, as it is pretty useful for your day-to-day Eclipse activities.

The registry view on the other hand can be viewed as development-specific, and 
should remain part of PDE.
Comment 9 Nick Edgar CLA 2004-01-26 18:47:17 EST
Matt, can you give your opinion here from the perspective of a non-IDE product 
group?  Would you have any use for either a log view or a registry view?
Comment 10 Jim des Rivieres CLA 2004-01-26 18:52:30 EST
One further consideration: to be maximally useful in RCP configurations we 
would probably want no eliminate the dependency on core.runtime.compatibility 
as we will for the other RCP components. Would there be significant work 
involved in moving these views to use only core.runtime?
Comment 11 Wassim Melhem CLA 2004-01-26 19:04:02 EST
All the classes that we use from core.runtime.compatibility are in fact coming 
from core.runtime.  So we could clean up the dependency list.

However, if we do so, the JDT compiler starts complaining that 
org.eclipse.osgi has to be on the classpath for the plug-in to compile. (bug 
50117)
Comment 12 Wassim Melhem CLA 2004-05-28 03:11:21 EDT
The log view is staying where it is in 3.0.  Will revisit the issue post-3.0
Comment 13 Wassim Melhem CLA 2005-08-11 08:24:40 EDT
*** Bug 105585 has been marked as a duplicate of this bug. ***
Comment 14 Wassim Melhem CLA 2005-08-19 01:17:10 EDT
*** Bug 107396 has been marked as a duplicate of this bug. ***
Comment 15 Wassim Melhem CLA 2005-12-19 03:07:30 EST
Reopening...

This issue keeps coming up, and I think we should reconsider the more general issue of what the granularity of a feature should be.
Comment 16 Wassim Melhem CLA 2006-06-20 15:58:13 EDT
The word is that the log view stays where it is in the PDE feature.  

If people want, they can just drop/package the plug-in on its own in their product and it will work fine as it has minimal dependencies.
Comment 17 Miles Parker CLA 2010-07-13 19:39:29 EDT
(In reply to comment #16)
> If people want, they can just drop/package the plug-in on its own in their
> product and it will work fine as it has minimal dependencies.

I guess it depends on what your definition of "minimal" is. :) Perhaps it has grown in the intervening years, but including optional dependencies you get pde.ui, jdt.ui, help, forms, etc..  That's a crazy amount of stuff to add in in order to get one piece of functionality that's of really broad use. I've stated a new bug 319802 to try to see if Platform is willing to steal it, because it is still lost on me why this is a PDE exclusive thing. But perhaps a refactoring of the pde runtime dependencies would be worth a look?
Comment 18 Miles Parker CLA 2010-07-13 19:51:29 EDT
Umm...never mind. See my comment on bug 319802 if you have time to kill..
Comment 19 Dani Megert CLA 2019-01-02 09:41:48 EST
*** Bug 543120 has been marked as a duplicate of this bug. ***
Comment 20 Dani Megert CLA 2019-01-02 11:17:53 EST
*** Bug 543120 has been marked as a duplicate of this bug. ***
Comment 21 Wim Jongman CLA 2019-01-07 12:51:19 EST
We have discussed this and we are going to investigate this for the next milestone.
Comment 22 Eclipse Genie CLA 2019-01-10 16:21:59 EST
New Gerrit change created: https://git.eclipse.org/r/134915
Comment 23 Eclipse Genie CLA 2019-01-10 17:03:05 EST
New Gerrit change created: https://git.eclipse.org/r/134918
Comment 24 Wim Jongman CLA 2019-01-11 09:11:25 EST
I think I am done, all builds complete normally. However, there might be some releng things that I might have missed.

Status update:

* I have created three bugs to track the changes in three different repositories.
* The view is self-contained which means that there are no outside references.
* Any unknown outside references should be done with the view id. Therefore, the view id does not change but will be kept in the pde domain: org.eclipse.pde.runtime.LogView 

Changes:

PDE (https://git.eclipse.org/r/#/c/134915/)
* Removed the view from the PDE feature
* Removed the view code
* Removed the entry in the PDE pom.xml
* PDE build completes normally

Platform.releng (https://git.eclipse.org/r/#/c/134920/)
* Added the bundle to the platform feature
* Releng build completes normally

Platform.ui (https://git.eclipse.org/r/#/c/134918/)
* Added the view code
* Changed the view's pom.xml to use the correct parent
* Bumped the last segment of the version number
* Added the module to the bundles' pom
* Platform build completes normally
Comment 25 Matthias Becker CLA 2019-01-14 05:27:05 EST
(In reply to Wim Jongman from comment #24)
> I think I am done, all builds complete normally. However, there might be
> some releng things that I might have missed.
> 
> Status update:
> 
> * I have created three bugs to track the changes in three different
> repositories.
> * The view is self-contained which means that there are no outside
> references.
> * Any unknown outside references should be done with the view id. Therefore,
> the view id does not change but will be kept in the pde domain:
> org.eclipse.pde.runtime.LogView 
> 
> Changes:
> 
> PDE (https://git.eclipse.org/r/#/c/134915/)
> * Removed the view from the PDE feature
> * Removed the view code
> * Removed the entry in the PDE pom.xml
> * PDE build completes normally
> 
> Platform.releng (https://git.eclipse.org/r/#/c/134920/)
> * Added the bundle to the platform feature
> * Releng build completes normally
> 
> Platform.ui (https://git.eclipse.org/r/#/c/134918/)
> * Added the view code
> * Changed the view's pom.xml to use the correct parent
> * Bumped the last segment of the version number
> * Added the module to the bundles' pom
> * Platform build completes normally

Wim. As you also moved some icons you should also move them in the images repository
https://git.eclipse.org/r/#/admin/projects/platform/eclipse.platform.images
Comment 26 Dani Megert CLA 2019-01-14 05:46:05 EST
(In reply to Matthias Becker from comment #25)
> Wim. As you also moved some icons you should also move them in the images
> repository
> https://git.eclipse.org/r/#/admin/projects/platform/eclipse.platform.images
Good point!

Luckily, the documentation itself is already in the Platform Doc and not in the PDE Doc.


Regarding the timing: The India team is away today and tomorrow, so, most likely they won't be available to fix any build related problems.
Comment 27 Wim Jongman CLA 2019-01-14 06:20:36 EST
> (In reply to Matthias Becker from comment #25)
> > Wim. As you also moved some icons you should also move them in the images
> > repository
> > https://git.eclipse.org/r/#/admin/projects/platform/eclipse.platform.images

Thanks Matthias. I looked at it and there is no change needed. The images are already in the correct place.



(In reply to Dani Megert from comment #26)
> Regarding the timing: The India team is away today and tomorrow, so, most
> likely they won't be available to fix any build related problems.

Ok. In this case, I suggest doing the move to tomorrow evening instead. This will give the India team to resolve any issues or rollback the changes during their day on Wednesday. 

Lars, ok for you?
Comment 28 Alexander Kurtakov CLA 2019-01-14 06:58:06 EST
(In reply to Wim Jongman from comment #27)
> > (In reply to Matthias Becker from comment #25)
> > > Wim. As you also moved some icons you should also move them in the images
> > > repository
> > > https://git.eclipse.org/r/#/admin/projects/platform/eclipse.platform.images
> 
> Thanks Matthias. I looked at it and there is no change needed. The images
> are already in the correct place.
> 
> 
> 
> (In reply to Dani Megert from comment #26)
> > Regarding the timing: The India team is away today and tomorrow, so, most
> > likely they won't be available to fix any build related problems.
> 
> Ok. In this case, I suggest doing the move to tomorrow evening instead. This
> will give the India team to resolve any issues or rollback the changes
> during their day on Wednesday. 

I have an agreement with Sravan that I cover build issues this week. So from that point of view there is no need for delays for releng help if needed.

> 
> Lars, ok for you?
Comment 29 Wim Jongman CLA 2019-01-14 07:58:48 EST
(In reply to Alexander Kurtakov from comment #28)

> 
> I have an agreement with Sravan that I cover build issues this week. So from
> that point of view there is no need for delays for releng help if needed.

Cheers Alexander. Then we will stick to the original plan of releasing tomorrow morning.
Comment 30 Wim Jongman CLA 2019-01-15 05:22:26 EST
We have moved the error log view from PDE to Platform. 

It was trivial really because the original authors had already written the view in such a way that it was just an ordinary move. Very elegant.

I could not track them down in git but a tip of the hat to them.

I'm closing as resolved but it still needs to be verified. 

Just in time for the SLA window of 15 years!
Comment 31 Dani Megert CLA 2019-01-15 05:25:47 EST
I suggest to add an entry to the N&N.
Comment 32 Eclipse Genie CLA 2019-01-15 06:01:25 EST
New Gerrit change created: https://git.eclipse.org/r/135089
Comment 34 Eclipse Genie CLA 2019-01-15 06:14:08 EST
New Gerrit change created: https://git.eclipse.org/r/135092
Comment 36 Wim Jongman CLA 2019-01-16 14:16:23 EST
Verified in eclipse-SDK-I20190115-1800-win32-x86_64
Comment 37 Eclipse Genie CLA 2019-02-05 08:38:23 EST
New Gerrit change created: https://git.eclipse.org/r/136303
Comment 39 Mickael Istria CLA 2019-02-05 15:18:22 EST
Thanks Wim. And congrats for tackling the older bug for this upcoming release! (unless bug 38016 finds its way in).