Author: snjeza
Date: 2012-01-23 12:59:33 -0500 (Mon, 23 Jan 2012)
New Revision: 38031
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/JBossToolsEclipseEnvironment.java
Log:
JBIDE-10653 detect who have central enabled
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/JBossToolsEclipseEnvironment.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/JBossToolsEclipseEnvironment.java 2012-01-23
17:55:05 UTC (rev 38030)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/JBossToolsEclipseEnvironment.java 2012-01-23
17:59:33 UTC (rev 38031)
@@ -26,6 +26,7 @@
*/
public class JBossToolsEclipseEnvironment extends AbstractEclipseEnvironment implements
IJBossToolsEclipseEnvironment {
+ private static final String NOT_INSTALLED = "N/A"; //$NON-NLS-1$
private static final String CLOSED_BRACKET = ")"; //$NON-NLS-1$
private static final String TRUE = "true";
private static final String FALSE = "false";
@@ -74,7 +75,7 @@
public String getCentralEnabledValue() {
Bundle bundle = Platform.getBundle(JBOSS_CENTRAL_PLUGIN_ID);
if (bundle == null) {
- return FALSE;
+ return NOT_INSTALLED;
}
IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(JBOSS_CENTRAL_PLUGIN_ID);
boolean showOnStartup = prefs.getBoolean(SHOW_JBOSS_CENTRAL_ON_STARTUP,