private boolean oldPersistenceMappingFileExists() { Project appControllerProject = McAppUtils.getApplicationControllerProject(Ide.getActiveWorkspace(), null); String fileName = "persistenceMapping.xml"; URL sourceURL = FileUtils.getSourceURL(appControllerProject, "META-INF", fileName); String content = FileUtils.getStringFromInputStream(FileUtils.getInputStream(sourceURL)); return content != null; }
public String getWorkspaceName() { String name = Ide.getActiveWorkspace().getShortLabel(); // strip off ".jws" return name.substring(0, (name.length() - 4)); }