mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Documentation
This commit is contained in:
parent
04a623ab67
commit
679e9ce2f9
1 changed files with 13 additions and 6 deletions
|
@ -44,11 +44,18 @@ public class DisplayDsfExecutor extends DefaultDsfExecutor
|
||||||
*/
|
*/
|
||||||
private static Map<Display, DisplayDsfExecutor> fExecutors = Collections.synchronizedMap( new HashMap<Display, DisplayDsfExecutor>() );
|
private static Map<Display, DisplayDsfExecutor> fExecutors = Collections.synchronizedMap( new HashMap<Display, DisplayDsfExecutor>() );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory method for display executors.
|
* Factory method for display executors.
|
||||||
* @param display Display to create an executor for.
|
*
|
||||||
* @return The new (or re-used) executor.
|
* <p>
|
||||||
*/
|
* Call this from the GUI thread unless you are certain an instance has
|
||||||
|
* already been created for the given display (creation of new instance will
|
||||||
|
* fail on a non-GUI thread).
|
||||||
|
*
|
||||||
|
* @param display
|
||||||
|
* Display to create an executor for.
|
||||||
|
* @return The new (or re-used) executor.
|
||||||
|
*/
|
||||||
public static DisplayDsfExecutor getDisplayDsfExecutor(Display display) {
|
public static DisplayDsfExecutor getDisplayDsfExecutor(Display display) {
|
||||||
synchronized (fExecutors) {
|
synchronized (fExecutors) {
|
||||||
DisplayDsfExecutor executor = fExecutors.get(display);
|
DisplayDsfExecutor executor = fExecutors.get(display);
|
||||||
|
|
Loading…
Add table
Reference in a new issue