Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368418 - Make the getServerNotificationManager method public
Summary: Make the getServerNotificationManager method public
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Elson Yuen CLA
QA Contact: Elson Yuen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 03:42 EST by Ivan CLA
Modified: 2012-04-03 10:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.