@Override
public void contextStop(IMemento memento, IProgressMonitor monitor) {
monitor.subTask("Shutting down Polytomous Key Viewer");
- viewer.setInput(null);
+ if(!viewer.getControl().isDisposed()){
+ viewer.setInput(null);
+ }
}
/* (non-Javadoc)
conversation = CdmStore.createConversation();
conversation.registerForDataStoreChanges(this);
List<PolytomousKey> input = CdmStore.getService(IPolytomousKeyService.class).list(PolytomousKey.class, null, null, null, null);
- viewer.setInput(input);
+ if(!viewer.getControl().isDisposed()){
+ viewer.setInput(input);
+ }
}
/* (non-Javadoc)
//FIXME : Need to make sure this is a stable fix (ticket 3822)
getConversationHolder().commit();
List<PolytomousKey> input = CdmStore.getService(IPolytomousKeyService.class).list(PolytomousKey.class, null, null, null, null);
- viewer.setInput(input);
+ if(!viewer.getControl().isDisposed()){
+ viewer.setInput(input);
+ }
}
public List<PolytomousKey> getKeys() {