Bug 239162 - move isCompatibleWithLaunchMode to utils
Summary: move isCompatibleWithLaunchMode to utils
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Angel Vera CLA
QA Contact: Tim deBoer CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2008-07-01 16:27 EDT by John J. Barton CLA
Modified: 2008-07-01 23:02 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 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: