V Kash Singh
V Kash Singh

Reputation: 509

pugin-developent : Platform.getbundle("") is not accessible from xtend class

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"
}

enter image description here

Upvotes: 0

Views: 41

Answers (0)

Related Questions