public boolean setInput(Object input) {
if (input instanceof AbstractGroupedContainerE4) {
TaxonBase newSelection = ((AbstractGroupedContainerE4) input).getData();
- if(selection!=newSelection){
+ if(selection!=newSelection || TaxonNameEditorE4.this.isDirty()){
selection = newSelection;
selService.setSelection(new StructuredSelection(selection));
}
}
}
+ private boolean isExecuting = false;
+
protected void setDelayedSelection() {
// TODO this might be done better
// this is the quickest solution i could come up with and it improves
@Override
public void run() {
getEditor().getManagedForm().setInput(selection);
+ isExecuting = false;
}
};
- display.timerExec(1000, runnable);
+ if(!isExecuting){
+ isExecuting = true;
+ display.timerExec(1000, runnable);
+ }
}