Revision 2661173a
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
58 | 58 |
/** |
59 | 59 |
* @author pplitzner |
60 | 60 |
* @since Aug 10, 2017 |
61 |
* |
|
62 | 61 |
*/ |
63 | 62 |
public abstract class AbstractCdmEditorPartE4 |
64 | 63 |
implements IConversationEnabled, IDirtyMarkable, ISelectionElementEditingPart, IPostOperationEnabled{ |
... | ... | |
109 | 108 |
public synchronized void setThisPart(MPart thisPart) { |
110 | 109 |
this.thisPart = thisPart; |
111 | 110 |
} |
112 |
|
|
113 | 111 |
} |
114 | 112 |
|
115 | 113 |
protected Viewer viewer; |
... | ... | |
182 | 180 |
} |
183 | 181 |
} |
184 | 182 |
|
185 |
/** {@inheritDoc} */ |
|
186 | 183 |
@Override |
187 | 184 |
public void changed(Object object) { |
188 | 185 |
if(selectionProvidingPart!=null){ |
... | ... | |
282 | 279 |
((DetailsViewerE4)viewer).setDetailsEnabled(isEnabled); |
283 | 280 |
} |
284 | 281 |
((DetailsViewerE4)viewer).setInput(element, part); |
285 |
|
|
286 | 282 |
} |
287 | 283 |
|
288 | 284 |
else{ |
... | ... | |
292 | 288 |
|
293 | 289 |
viewer.setInput(element); |
294 | 290 |
viewer.getControl().setEnabled(isEnabled); |
295 |
|
|
296 |
|
|
297 | 291 |
} |
298 | 292 |
} |
299 | 293 |
} |
... | ... | |
348 | 342 |
return structuredSelection; |
349 | 343 |
} |
350 | 344 |
|
351 |
/** |
|
352 |
* {@inheritDoc} |
|
353 |
*/ |
|
354 | 345 |
@Override |
355 | 346 |
public ConversationHolder getConversationHolder() { |
356 | 347 |
if(selectionProvidingPart != null && selectionProvidingPart instanceof IConversationEnabled) { |
... | ... | |
359 | 350 |
return null; |
360 | 351 |
} |
361 | 352 |
|
362 |
/** |
|
363 |
* {@inheritDoc} |
|
364 |
*/ |
|
365 | 353 |
@Override |
366 | 354 |
public boolean postOperation(Object objectAffectedByOperation) { |
367 | 355 |
changed(objectAffectedByOperation); |
368 | 356 |
return true; |
369 | 357 |
} |
370 | 358 |
|
371 |
/** |
|
372 |
* {@inheritDoc} |
|
373 |
*/ |
|
374 | 359 |
@Override |
375 | 360 |
public boolean onComplete() { |
376 | 361 |
viewer.refresh(); |
377 | 362 |
return true; |
378 | 363 |
} |
379 | 364 |
|
380 |
/** |
|
381 |
* {@inheritDoc} |
|
382 |
*/ |
|
383 | 365 |
@Override |
384 | 366 |
public MPart getSelectionProvidingPart() { |
385 | 367 |
return selectionProvidingPart; |
... | ... | |
401 | 383 |
|
402 | 384 |
} |
403 | 385 |
|
404 |
/** |
|
405 |
* {@inheritDoc} |
|
406 |
*/ |
|
407 | 386 |
@Override |
408 | 387 |
public void update(CdmDataChangeMap arg0) { |
409 | 388 |
} |
410 | 389 |
|
411 |
/** |
|
412 |
* {@inheritDoc} |
|
413 |
*/ |
|
414 | 390 |
@Override |
415 | 391 |
public void forceDirty() { |
416 | 392 |
} |
Also available in: Unified diff
cleanup