Reputation: 509
i am trying to get my plug-in version in xtent class same way its working fine with java classes but throwing compilation error while using in xtend class want to automate the tool version.
import org.eclipse.core.runtime.Platform
import org.osgi.framework.Bundle
class StrapbaseXMLFrontend {
val static bundle =Platform.getBundle("id") as Bundle
val version = bundle.version.toString()
val static TOOL_VERSION = "3.26.0"
}
Upvotes: 0
Views: 41