Bug 219996 - Consolidate java facet and standard.jre component code in one place
Summary: Consolidate java facet and standard.jre component code in one place
Status: CLOSED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-22 12:32 EST by Konstantin Komissarchik CLA
Modified: 2017-10-11 16:21 EDT (History)
3 users (show)

See Also:


Attachments
Changes to server component (13.57 KB, patch)
2008-02-22 13:06 EST, Konstantin Komissarchik CLA
no flags Details | Diff
Changes to common component (21.75 KB, patch)
2008-02-22 13:08 EST, Konstantin Komissarchik CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2008-02-22 12:32:48 EST
Right now the code that serves as the "bridge" between WTP's Faceted Project Framework and JDT is sprinkled throughout multiple plugins in three different components (common, j2ee and server tools). In particular, this is referring to the jst.java facet and standard.jre runtime component. The goal of this enhancement is to consolidate all of that code in one place. That would make it not only make the code easier to understand, but will also open the door for potentially offering that portion (jdt/facets integration) as a separate distribution.
Comment 1 Konstantin Komissarchik CLA 2008-02-22 13:06:00 EST
Created attachment 90498 [details]
Changes to server component

This patch contains the work to remove code related to standard.jre component from the jst.server.core and jst.server.ui plugins. In addition to applying this change, jst.server.ui/icons/obj16/jre.gif should be deleted (patch can't handle binary files).

This patch needs to be paired with patch to the common component that re-introduces this functionality. I will attach that patch next.
Comment 2 Konstantin Komissarchik CLA 2008-02-22 13:08:42 EST
Created attachment 90500 [details]
Changes to common component

This is a matching change to the "Changes to server component" patch. In addition to applying this patch, a jst.common.project.facet.core/images/standard-jre-component.gif file needs to be added. It can be created by copying jst.server.ui/icons/obj16/jre.gif file.
Comment 3 Angel Vera CLA 2008-02-22 16:41:19 EST
Comment on attachment 90500 [details]
Changes to common component

marking the second attachment as a patch.
Comment 4 Angel Vera CLA 2008-02-22 18:20:12 EST
Kosta, 

I reviewed the code, it looks good. I don't have any concerns as we are just moving code from one place to the other, and the new feature should break any adopter.

May I suggest the following changes in the MANIFEST.MF:
- Eclipse-LazyStart: true
+ Bundle-ActivationPolicy: lazy

The Eclipse-LazyStart is deprecated so we might as well change it to the new method.
Comment 5 Angel Vera CLA 2008-02-22 18:21:29 EST
fixing typo on comment #4:
...
 moving code from one place to the other, and the new feature should[n't] break any adopter.
...

(In reply to comment #4)
> Kosta, 
> 
> I reviewed the code, it looks good. I don't have any concerns as we are just
> moving code from one place to the other, and the new feature should break any
> adopter.
> 
> May I suggest the following changes in the MANIFEST.MF:
> - Eclipse-LazyStart: true
> + Bundle-ActivationPolicy: lazy
> 
> The Eclipse-LazyStart is deprecated so we might as well change it to the new
> method.
> 

Comment 6 Konstantin Komissarchik CLA 2008-02-22 18:25:27 EST
Sure. Should we update this attribute for all three bundles at the same time?
Comment 7 Angel Vera CLA 2008-02-22 18:27:39 EST
Yep.
Comment 8 Angel Vera CLA 2008-02-22 18:44:25 EST
Code checked in and released.
Comment 9 Konstantin Komissarchik CLA 2008-02-22 19:21:58 EST
Committed and releasted the changes to the common component as well.
Comment 10 Konstantin Komissarchik CLA 2008-02-25 14:36:20 EST
Hmm... I just synced to HEAD. It doesn't look like the changes to jst.server.ui made it in. This is causing some visual glitches in the latest i-build.
Comment 11 Angel Vera CLA 2008-02-25 14:44:49 EST
It seems that I forgot some files. I am revising this now.
Comment 12 Konstantin Komissarchik CLA 2008-02-25 14:47:54 EST
Thanks. Also see my note about the jre.gif file. You will have to manually delete it, since patches don't handle binary files.
Comment 13 Angel Vera CLA 2008-02-25 17:02:11 EST
Second round of files released to HEAD.
Comment 14 Konstantin Komissarchik CLA 2008-02-25 17:40:36 EST
Thanks. I am no longer showing any changes remaining after syncing to HEAD.
Comment 15 Konstantin Komissarchik CLA 2008-03-24 14:28:04 EDT
All changes related to this enhancement have been completed.
Comment 16 Konstantin Komissarchik CLA 2008-03-24 14:28:19 EDT
Closing.
Comment 17 Eclipse Genie CLA 2017-10-11 16:21:32 EDT
New Gerrit change created: https://git.eclipse.org/r/108542
Comment 18 Eclipse Genie CLA 2017-10-11 16:21:39 EDT
New Gerrit change created: https://git.eclipse.org/r/108546