mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Documentation
This commit is contained in:
parent
04a623ab67
commit
679e9ce2f9
1 changed files with 13 additions and 6 deletions
|
@ -43,12 +43,19 @@ public class DisplayDsfExecutor extends DefaultDsfExecutor
|
|||
* Internal mapping of display objects to executors.
|
||||
*/
|
||||
private static Map<Display, DisplayDsfExecutor> fExecutors = Collections.synchronizedMap( new HashMap<Display, DisplayDsfExecutor>() );
|
||||
|
||||
/**
|
||||
* Factory method for display executors.
|
||||
* @param display Display to create an executor for.
|
||||
* @return The new (or re-used) executor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Factory method for display executors.
|
||||
*
|
||||
* <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) {
|
||||
synchronized (fExecutors) {
|
||||
DisplayDsfExecutor executor = fExecutors.get(display);
|
||||
|
|
Loading…
Add table
Reference in a new issue