|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.util.RequestCollapser
org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUpdateRequestCollapser
public class SectionUpdateRequestCollapser
The receiver will collapse all requests into one and invoke it by the user-interface thread at the next reasonable opportunity. Each thread which calls this collapser is suspended until the runnable completes.
Constructor Summary | |
---|---|
SectionUpdateRequestCollapser()
|
Method Summary | |
---|---|
protected void |
executeRequest(java.lang.Runnable request)
executes the runnable request |
protected java.lang.Runnable |
getRequest()
returns the most recently posted request and nullifies it afterwards so it doesn't return it again if invoked again immedialtely |
void |
postRequest(java.lang.Object requester,
java.lang.Runnable request)
|
void |
postRequest(java.lang.Runnable runnable)
posts the request from the client to run in the thread at the next possible chance. |
void |
start()
Start this automation object by starting the thread. |
void |
stop()
stops this automaton pbject by interrupting the thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SectionUpdateRequestCollapser()
Method Detail |
---|
protected void executeRequest(java.lang.Runnable request)
RequestCollapser
executeRequest
in class RequestCollapser
request
- The request Runnable to executepublic void postRequest(java.lang.Runnable runnable)
postRequest
in class RequestCollapser
runnable
- the Runnable request to runpublic void postRequest(java.lang.Object requester, java.lang.Runnable request)
requester
- request
- protected java.lang.Runnable getRequest()
RequestCollapser
getRequest
in class RequestCollapser
public void start()
RequestCollapser
start
in class RequestCollapser
public void stop()
stop
in class RequestCollapser
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.