| Summary: | SCA model cannot be used outside of an eclipse environment | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Damien Fournier <damien.fournier> |
| Component: | Sca | Assignee: | Damien Fournier <damien.fournier> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | damien.fournier, vincent.zurczak |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
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. |
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()); } ...