Revision 917d4abe
Added by Andreas Müller almost 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/AbstractGroupedContainerE4.java | ||
---|---|---|
109 | 109 |
private Label nonEditableInfoLabel; |
110 | 110 |
private DefaultToolTip nonEditableInfoHover; |
111 | 111 |
|
112 |
private static AbstractGroupedContainerE4 selection; |
|
112 |
private static AbstractGroupedContainerE4<?> selection;
|
|
113 | 113 |
|
114 | 114 |
private FocusListener focusListener; |
115 | 115 |
private LineBreakListener lineBreakListener; |
... | ... | |
121 | 121 |
private Color backgroundColor; |
122 | 122 |
private boolean isDirty; |
123 | 123 |
|
124 |
private ISelectionChangedListener selectionChangedListener; |
|
124 |
// private ISelectionChangedListener selectionChangedListener;
|
|
125 | 125 |
|
126 | 126 |
public AbstractGroupedContainerE4(AbstractGroupE4 group, T taxonBase) { |
127 | 127 |
setData(taxonBase); |
... | ... | |
151 | 151 |
} |
152 | 152 |
|
153 | 153 |
protected void createListener() { |
154 |
nameCompositeModifyListener = new ModifyListener() { |
|
155 |
|
|
156 |
@Override |
|
157 |
public void modifyText(ModifyEvent e) { |
|
154 |
nameCompositeModifyListener = (ModifyEvent e)->{ |
|
158 | 155 |
// mark the composite dirty |
159 | 156 |
setDirty(true); |
160 | 157 |
// parse the text |
... | ... | |
170 | 167 |
storeCursor(); |
171 | 168 |
// notify selection listener |
172 | 169 |
setDelayedSelection(); |
173 |
} |
|
174 | 170 |
}; |
171 |
|
|
175 | 172 |
nameCompositeFocusListener = new FocusAdapter() { |
176 | 173 |
|
177 | 174 |
@Override |
... | ... | |
340 | 337 |
|
341 | 338 |
protected void enableFreeText() { |
342 | 339 |
setEnabled(isFreetextEditingAllowed()); |
343 |
|
|
344 | 340 |
} |
345 | 341 |
|
346 | 342 |
/** |
Also available in: Unified diff
cleanup