use of org.eclipse.jdt.core.IJavaModel in project mdw-designer by CenturyLinkCloud.
the class ResourceWrapper method getJavaProject.
public IJavaProject getJavaProject() throws JavaModelException {
IJavaProject javaProject = null;
IProject project = getProject();
if (project != null) {
IJavaModel javaModel = JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());
if (javaModel != null)
javaProject = javaModel.getJavaProject(project.getName());
}
return javaProject;
}
use of org.eclipse.jdt.core.IJavaModel in project mdw-designer by CenturyLinkCloud.
the class ResourceWrapper method getOwningJavaProject.
public IJavaProject getOwningJavaProject() throws JavaModelException {
IJavaProject javaProject = null;
IProject owningProject = getOwningProject();
if (owningProject != null) {
IJavaModel javaModel = JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());
if (javaModel != null)
javaProject = javaModel.getJavaProject(owningProject.getName());
}
return javaProject;
}
Aggregations