[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.core/src/main/org/jboss/ide/eclipse/core ...
Robert Stryker
rawblem at gmail.com
Thu Sep 14 14:32:45 EDT 2006
User: rawb
Date: 06/09/14 14:32:45
Modified: core/plugins/org.jboss.ide.eclipse.core/src/main/org/jboss/ide/eclipse/core
CorePlugin.java
Log:
Constant removed... now gotten from bundle as per request ;)
Revision Changes Path
1.4 +7 -12 jbosside/core/plugins/org.jboss.ide.eclipse.core/src/main/org/jboss/ide/eclipse/core/CorePlugin.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CorePlugin.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.core/src/main/org/jboss/ide/eclipse/core/CorePlugin.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CorePlugin.java 12 Sep 2006 21:31:51 -0000 1.3
+++ CorePlugin.java 14 Sep 2006 18:32:45 -0000 1.4
@@ -21,11 +21,13 @@
*/
package org.jboss.ide.eclipse.core;
+import java.util.Dictionary;
+
/**
* Core plugin.
*
* @author Laurent Etiemble
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class CorePlugin extends AbstractPlugin
{
@@ -33,18 +35,11 @@
private static CorePlugin plugin;
- public static final String ALPHA = "alpha";
- public static final String BETA = "beta";
- public static final String GA = "GA";
-
- /**
- * This variable will need to be updated at every release point.
- * Whether alpha, beta, major, minor, revision, etc.
- */
- private static final String JBOSS_IDE_RELEASE_VERSION = "2.0.0." + BETA + ".2";
-
public static final String getCurrentVersion() {
- return JBOSS_IDE_RELEASE_VERSION;
+ Dictionary d = plugin.getBundle().getHeaders();
+ Object o = d.get("Bundle-Version");
+ if( o != null && o instanceof String ) return (String)o;
+ return null;
}
More information about the jboss-cvs-commits
mailing list