Bug 239162

Summary: move isCompatibleWithLaunchMode to utils
Product: [WebTools] WTP ServerTools Reporter: John J. Barton <johnjbarton>
Component: wst.serverAssignee: Angel Vera <arvera>
Status: NEW --- QA Contact: Tim deBoer <deboer>
Severity: enhancement    
Priority: P3 Keywords: api
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John J. Barton CLA 2008-07-01 16:27:40 EDT
Build ID: I20080609-1311

Steps To Reproduce:
In org.eclipse.wst.server.ui.internal.ServerUIPlugin
there is 
	public static boolean isCompatibleWithLaunchMode(IServer server, String launchMode) {
		if (server == null || launchMode == null)
			return false;
		
		int state = server.getServerState();
		if (state == IServer.STATE_STARTED && launchMode.equals(server.getMode()))
			return true;
		
		if (server.getServerType() != null && server.getServerType().supportsLaunchMode(launchMode))
			return true;
		return false;
	}

which would be handy for public API.

More information: