|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.core.GMFEditingDomainFactory.TransactionalSyncExecHelper
public static class GMFEditingDomainFactory.TransactionalSyncExecHelper
A helper that knows about the specific editing domain. During the approval process, calls to validateEdit() will require the domain in order to execute in a thread safe manner.
Constructor Summary | |
---|---|
GMFEditingDomainFactory.TransactionalSyncExecHelper()
|
Method Summary | |
---|---|
IStatus |
approveFileModification(IFile[] files,
org.eclipse.emf.transaction.TransactionalEditingDomain transactionalDomain)
Sets the thread specific transactional domain before the approval process since subsequent calls to validateEdit() requires it and clears it afterward. |
java.lang.Runnable |
safeRunnable(java.lang.Runnable runnable)
Delegates to the specified domain to obtain a thread safe wrapper for the specified runnable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GMFEditingDomainFactory.TransactionalSyncExecHelper()
Method Detail |
---|
public IStatus approveFileModification(IFile[] files, org.eclipse.emf.transaction.TransactionalEditingDomain transactionalDomain)
files
- The files to be validated.transactionalDomain
- The current editing domain.
public java.lang.Runnable safeRunnable(java.lang.Runnable runnable)
runnable
safeRunnable
in interface FileModificationValidator.ISyncExecHelper
runnable
- a runnable to execute in the context of the active
transaction, on any thread
|
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.