/** * Returns the EMF root folder for the project. Defaults to the project. Subclasses can override. * * @return EMF root folder for the project. * * @since 1.0.0 */ public IContainer getEMFRoot() { return getProject(); }
/** * Create an EMF context for the project. * * @throws CoreException * * @since 1.0.0 */ protected void createEmfContext() throws CoreException { WorkbenchResourceHelperBase.createEMFContext(getProject(), this); }
/** * Return the full path of the project. * * @return full project path (relative to workspace) * @since 1.0.0 */ public IPath getProjectPath() { return getProject().getFullPath(); }
public IWorkspace getWorkspace() { return getProject().getWorkspace(); }
/** * Get the server property of the project from the supplied key * * @param key * java.lang.String * @deprecated we cannont use persistent properties because they are not stored in the repository * @since 1.0.0 */ protected String getProjectServerValue(String key) { if (key == null) return null; try { QualifiedName wholeName = qualifiedKey(key); return getProject().getPersistentProperty(wholeName); } catch (CoreException exception) { //If we can't find it assume it is null exception.printStackTrace(); return null; } }
/** * Set the server property of the project from the supplied value * * @param key * java.lang.String * @param value * String * @deprecated we cannont use persistent properties because they are not stored in the repository */ protected void setProjectServerValue(String key, String value) { if (key != null) { try { QualifiedName wholeName = qualifiedKey(key); getProject().setPersistentProperty(wholeName, value); } catch (CoreException exception) { //If we can't find it assume it is null exception.printStackTrace(); return; } } }