Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311580 - ServerEditorOverviewPageModifier doesn't have a SWC
Summary: ServerEditorOverviewPageModifier doesn't have a SWC
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 3.2 RC1   Edit
Assignee: Angel Vera CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 12:11 EDT by Angel Vera CLA
Modified: 2017-10-11 16:33 EDT (History)
0 users

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


Attachments
v1.0 (1.45 KB, text/plain)
2010-05-04 12:11 EDT, Angel Vera CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angel Vera CLA 2010-05-04 12:11:38 EDT
Created attachment 166979 [details]
v1.0

Browsing through the code, it seems that the original contribution of the ServerEditorOverviewPageModifier has a defect in where the ServerWorkingCopy within the PageMofifier is never set because fireServerWorkingCopyChanged is never called. 

But fireServerWorkingCopyChange perhaps shouldn't exist in the scope OverviewPage because the SWC will only change once during initialization from null to an actual value.

I suggest we remove the fireServerWorkingCopyChanged method from the OverviewEditorPart and instead just set the SWC during initialization, as per the patch attached.
Comment 1 Angel Vera CLA 2010-05-11 13:37:16 EDT
* 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. 
Without this fix, the new extension point .ServerEditorOverviewPageModifier will not work correctly and adopter are not going to be able make full usage of this function

* Is there a work-around? If so, why do you believe the work-around is insufficient? 
No workoarund.

* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? 
I tested the fix by implementing a extension point that will use this function

* Give a brief technical overview. Who has reviewed this fix? 
Refer to comment #0

* What is the risk associated with this fix?
minimal, as this is a new extension point and it wasn't working correctly before.
Comment 2 Angel Vera CLA 2010-05-11 16:48:56 EDT
changes committed to HEAD
Comment 3 Angel Vera CLA 2010-05-11 17:10:45 EDT
Changes released to HEAD
Comment 4 Eclipse Genie CLA 2017-10-11 16:33:25 EDT
New Gerrit change created: https://git.eclipse.org/r/108947