Revision 12257a98
Added by Patrick Plitzner almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractCdmEditorViewPart.java | ||
---|---|---|
4 | 4 |
package eu.etaxonomy.taxeditor.view; |
5 | 5 |
|
6 | 6 |
import org.eclipse.jface.viewers.ISelection; |
7 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
7 | 8 |
import org.eclipse.swt.widgets.Composite; |
8 | 9 |
import org.eclipse.swt.widgets.Display; |
9 | 10 |
import org.eclipse.ui.IEditorPart; |
... | ... | |
31 | 32 |
* If it is <code>true</code> then it is currently delaying a selection. |
32 | 33 |
*/ |
33 | 34 |
private boolean isInDelay; |
34 |
|
|
35 |
|
|
35 | 36 |
protected Object selectionProvidingPart; |
36 | 37 |
|
37 | 38 |
|
... | ... | |
94 | 95 |
isInDelay = true; |
95 | 96 |
Display.getCurrent().asyncExec(delaySelection); |
96 | 97 |
} |
98 |
} |
|
99 |
|
|
100 |
/** |
|
101 |
* {@inheritDoc} |
|
102 |
*/ |
|
103 |
@Override |
|
104 |
public void showViewer(Object part, IStructuredSelection selection) { |
|
105 |
super.showViewer(part, selection); |
|
97 | 106 |
selectionProvidingPart = part; |
98 | 107 |
} |
99 | 108 |
|
Also available in: Unified diff
ref #6596 Keep track of active "editor"