Community
Participate
Working Groups
The SCAResourceImpl class inside the org.eclipse.stp.sca.util package of the SCA model use the static method Platform.getLocation(). This method only works in an eclipse environment. Composite files should be loaded using an alternative method if the SCA model is not used by an eclipse editor. for example: public static void prepareCompositeFile(URI uri) { try { File file; try { IPath path = Platform.getLocation(); file = new File(path.toString() + uri.toPlatformString(true)); } // Load file from the system if Eclipse platform is not running or present catch (NoClassDefFoundError e) { file = new File(uri.toFileString()); } ...
Fixed by commit #3544
Also raise AssertionFailedException when Platform class has been loaded but the eclipse platform has not been initialized
Fixed by commit #3545
Close old bugs.