Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334836 - Extending the Server Label Decorator
Summary: Extending the Server Label Decorator
Status: CLOSED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Angel Vera CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 16:13 EST by Israel Gomez Delgado CLA
Modified: 2017-10-11 16:35 EDT (History)
3 users (show)

See Also:
david_williams: pmc_approved+
arvera: pmc_approved? (raghunathan.srinivasan)
arvera: pmc_approved? (naci.dai)
arvera: pmc_approved? (deboer)
arvera: pmc_approved? (neil.hauge)
kaloyan: pmc_approved+
arvera: review+


Attachments
v1.0 (5.94 KB, patch)
2011-01-19 16:26 EST, Elson Yuen CLA
arvera: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Israel Gomez Delgado CLA 2011-01-19 16:13:55 EST
Build Identifier: 

Creating an UI Label Decorator extension, to extend Server Decoration, some times this decorator is not being updated while the Server Decorator it is. 

Reproducible: Always
Comment 1 Elson Yuen CLA 2011-01-19 16:26:37 EST
Created attachment 187152 [details]
v1.0

This patch adds the listener mechanism described in my previous comment.
Comment 2 Elson Yuen CLA 2011-01-19 16:27:09 EST
The problem is caused by the existing ServerView2 only notify the UI label decorator that is provided by the WTP framework.  In order to resolve that, we'll need to add a listener mechanism to allow other label decorators to listen to decorate changes whenever a refresh is needed.
Comment 3 Angel Vera CLA 2011-01-19 17:04:27 EST
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. 
Although not a stop-ship, it prevent adopters from providing their decorators and having them work correctly

* Is there a work-around? If so, why do you believe the work-around is insufficient? 
Although there might be possible workaround for adopters, a proper fix should be in WTP.

* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? 
From what I understand (Elson can correct me), this was tested running with an adopter product that provided their own ServerDecorator using the platform server decorator extension point.

* Give a brief technical overview. Who has reviewed this fix? 
I reviewed the fix offline and provided comments to make it safe. 
In the future we could improve the logic to make it more memory efficient by not cloning the list of decorators ids but rather ensure some synchronization that would work.

* What is the risk associated with this fix? 
minimal, the testing didn't reveal any problem
Comment 4 Elson Yuen CLA 2011-01-19 17:17:12 EST
Yes, the testing is done on an adopter product on a custom ServerDecorator using the platform server decorator extension point.
Comment 5 Angel Vera CLA 2011-01-19 17:20:39 EST
We should probably run a test to ensure that the changes work without an adopter extending it. But I agree with the changes and I am putting it for PMC approval.
Comment 6 Angel Vera CLA 2011-01-19 23:41:03 EST
Israel send me an email letting me know that completed the testing as per my request and things look good.
Comment 7 Angel Vera CLA 2011-01-19 23:50:12 EST
Changes committed to 32M
Comment 8 Angel Vera CLA 2011-01-19 23:51:18 EST
waiting for PMC approval to release
Comment 9 Angel Vera CLA 2011-01-19 23:56:05 EST
changes released to 32M 

still need to forward feed to HEAD
Comment 10 Angel Vera CLA 2011-01-31 10:44:05 EST
Changes committed to HEAD
Comment 11 Angel Vera CLA 2011-01-31 10:44:59 EST
Changes released to HEAD
Comment 12 Eclipse Genie CLA 2017-10-11 16:35:31 EDT
New Gerrit change created: https://git.eclipse.org/r/109020