Révision 3356
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 3356) | ||
---|---|---|
360 | 360 |
this.getEditorSite().getPage().addPartListener(pl); |
361 | 361 |
} |
362 | 362 |
|
363 |
public HashSet<TXMEditorExtension<T>> getTXMEditorExtensions() { |
|
364 |
return extensions; |
|
365 |
} |
|
366 |
|
|
367 |
public HashSet<TXMEditorExtension<T>> getTXMEditorExtensions(Class clazz) { |
|
368 |
|
|
369 |
HashSet<TXMEditorExtension<T>> sel = new HashSet<TXMEditorExtension<T>>(); |
|
370 |
for (TXMEditorExtension<T> e : extensions) { |
|
371 |
if (clazz.isAssignableFrom(e.getClass())) { |
|
372 |
sel.add(e); |
|
373 |
} |
|
374 |
} |
|
375 |
return sel; |
|
376 |
} |
|
377 |
|
|
363 | 378 |
/** |
364 | 379 |
* the composite containing the main parameters, the top toolbar and eventually other top toolbars |
365 | 380 |
* |
Formats disponibles : Unified diff