if (serviceClass == null) {
Logger.log(Logger.ERROR, "Could not retrieve service class to open class dialog");
return;
}
ModelAccess composer = ModelAccess.getInstance();
IResource resource = marker.getResource();
className = serviceClass.substring(serviceClass.lastIndexOf("\\"), serviceClass.length());
String ns = serviceClass.replace(className, "");
IPath folderPath = composer.reverseResolve(resource.getProject(), ns);
if (folderPath == null) {
MessageDialog.openError(Display.getCurrent().getActiveShell(), "Error opening class wizard", "Could not open the New Class wizard. See the workspace log for details");
Logger.log(Logger.ERROR, "Unable to retrieve target folder from composer information");
return;