@Override protected boolean encodeElement(Object element, IMemento memento, IPresentationContext context) throws CoreException { if (supportsContext(context)) { String name = getElementName(element, context); memento.putString(ELEMENT_NAME, name); return true; } return false; }