Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368418

Summary: Make the getServerNotificationManager method public
Product: [WebTools] WTP ServerTools Reporter: Ivan <newcastle7>
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Elson Yuen <eyuen7>
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan CLA 2012-01-12 03:42:59 EST
Build Identifier: Version: 3.6.1 Build id: M20100909-0800

I want to synchronize the state of my server in the Eclipse servers view. When someone starts/stops the server from outside Eclipse I would like my plug-in to detect any changes in the server's state. In order to do so I would need to use the observers of the WST.
Could the method getServerNotificationManager in the class org.eclipse.wst.server.core.internal.Server be public?

Reproducible: Always
Comment 1 Elson Yuen CLA 2012-04-03 10:26:19 EDT
You can use org.eclipse.wst.server.core.IServer.addServerListener(IServerListener) to add a listener to the server to listen to the server state changes.