if (item instanceof OpenTypeClassHolder) {
return ((OpenTypeClassHolder) item).displayName;
}
return null;
}
<BUG>private class ApexTypeSelectionHistory extends SelectionHistory {
static final String RESOURCE = "resource";</BUG>
@Override
<BUG>protected Object restoreItemFromMemento(IMemento memento) {
String resourcePath = memento.getString(RESOURCE);
OpenTypeClassHolder holder = resources.get(resourcePath);
</BUG>
return holder;

if (item instanceof OpenTypeClassHolder) {
OpenTypeClassHolder resource = (OpenTypeClassHolder) item;
return matches(resource.displayName);
