Author: adietish
Date: 2011-07-06 05:22:26 -0400 (Wed, 06 Jul 2011)
New Revision: 32636
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchCommandPreferences.java
Log:
[JBIDe-9054] added method that allows to indicate the default
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchCommandPreferences.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchCommandPreferences.java 2011-07-06
09:21:52 UTC (rev 32635)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchCommandPreferences.java 2011-07-06
09:22:26 UTC (rev 32636)
@@ -13,10 +13,17 @@
import org.eclipse.wst.server.core.IServerAttributes;
+/**
+ * @author André Dietisheim
+ */
public class LaunchCommandPreferences {
public static boolean ignoreLaunchCommand(IServerAttributes server) {
- String ignoreCommand =
server.getAttribute(IJBossToolingConstants.IGNORE_LAUNCH_COMMANDS, (String) null);
+ return ignoreLaunchCommand(server, false);
+ }
+
+ public static boolean ignoreLaunchCommand(IServerAttributes server, boolean
defaultValue) {
+ String ignoreCommand =
server.getAttribute(IJBossToolingConstants.IGNORE_LAUNCH_COMMANDS,
Boolean.toString(defaultValue));
return Boolean.valueOf(ignoreCommand);
}
Show replies by date