Author: adietish
Date: 2010-09-22 12:45:40 -0400 (Wed, 22 Sep 2010)
New Revision: 25101
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBDSUtils.java
Log:
[JBDS-1321] product checking enabled again (disabled it for testing)
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBDSUtils.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBDSUtils.java 2010-09-22
16:42:37 UTC (rev 25100)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBDSUtils.java 2010-09-22
16:45:40 UTC (rev 25101)
@@ -10,18 +10,20 @@
******************************************************************************/
package org.jboss.tools.usage.internal;
+import org.eclipse.core.runtime.IProduct;
+import org.eclipse.core.runtime.Platform;
+
public class JBDSUtils {
private static Boolean isJBDS = null;
public static boolean isJBDS() {
-// if (isJBDS == null) {
-// IProduct product = Platform.getProduct();
-// isJBDS = (product != null
-// && JBDSConstants.JBDS_PRODUCT_ID.equals(product.getId()));
-// }
-// return isJBDS;
- return true;
+ if (isJBDS == null) {
+ IProduct product = Platform.getProduct();
+ isJBDS = (product != null
+ && JBDSConstants.JBDS_PRODUCT_ID.equals(product.getId()));
+ }
+ return isJBDS;
}
}
Show replies by date