public String elementToHandle(final IJavaElement element) { Assert.isNotNull(element); return elementToHandle(getProject(), element);
public static String elementToHandle(final String project, final IJavaElement element) { final int elementType= element.getElementType(); switch (elementType) { case IJavaElement.JAVA_PROJECT: return getHandlePrefix(IDENTIFIER_PROJECT) + element.getElementName(); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return resourceToHandle(project, getHandlePrefix(IDENTIFIER_ROOT), element.getResource()); case IJavaElement.COMPILATION_UNIT: return resourceToHandle(project, getHandlePrefix(IDENTIFIER_UNIT), element.getResource()); case IJavaElement.PACKAGE_FRAGMENT: return resourceToHandle(project, getHandlePrefix(IDENTIFIER_PACKAGE), element.getResource());                  } return element.getHandleIdentifier();
	public String elementToHandle(final IJavaElement element) {		Assert.isNotNull(element);		return elementToHandle(getProject(), element);	}