Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 288992
Collapse All | Expand All

(-)serverui/org/eclipse/wst/server/ui/internal/cnf/ServerDecorator.java (-1 / +12 lines)
Lines 11-16 Link Here
11
 package org.eclipse.wst.server.ui.internal.cnf;
11
 package org.eclipse.wst.server.ui.internal.cnf;
12
12
13
import org.eclipse.core.runtime.IStatus;
13
import org.eclipse.core.runtime.IStatus;
14
import org.eclipse.debug.core.ILaunchManager;
14
import org.eclipse.jface.viewers.*;
15
import org.eclipse.jface.viewers.*;
15
import org.eclipse.swt.graphics.Image;
16
import org.eclipse.swt.graphics.Image;
16
import org.eclipse.ui.ISharedImages;
17
import org.eclipse.ui.ISharedImages;
Lines 160-166 Link Here
160
	}
161
	}
161
	
162
	
162
	public static String getModuleStateText(ModuleServer ms) {
163
	public static String getModuleStateText(ModuleServer ms) {
163
		return "";
164
		if (ms == null || ms.module == null) {
165
			return null;
166
		}
167
		
168
		Server curServer = (Server) ms.getServer();
169
		if (curServer == null || curServer.getServerType() == null) {
170
			return null;
171
		}
172
		// For module state, we always use run mode since the state of the module will only be showing
173
		// Started state even for debug and profile mode.
174
		return getStateLabel(curServer.getServerType(), curServer.getModuleState(ms.module), ILaunchManager.RUN_MODE);
164
	}
175
	}
165
	
176
	
166
	public static String getModuleStatusText(ModuleServer ms) {
177
	public static String getModuleStatusText(ModuleServer ms) {

Return to bug 288992