|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.mftech.dawn.runtime.client.communication.impl.DawnWatcherImpl
public class DawnWatcherImpl
Who When What MF 08.11.2008 now only the watcher is connected to the editor. Send resourcesToServer is done by the watching Thread
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DawnWatcherImpl(org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor dawnDiagramEditor,
java.lang.String projectname,
java.lang.String pluginId)
|
|
| Method Summary | |
|---|---|
void |
addToIgnoreList(org.eclipse.emf.ecore.EObject obj)
marks an object as ignored |
boolean |
changeObjectOnServer(org.eclipse.gef.EditPart selectedElement)
changes object on server |
boolean |
deleteObjectOnServer(org.eclipse.gmf.runtime.notation.View view)
removes the View from the server resource |
org.eclipse.emf.ecore.resource.Resource |
getGmfResource()
|
ResourceSynchronizer |
getResourceSynchronizer()
|
int |
getUserId()
|
boolean |
isConfilcted()
|
boolean |
isLoggedIn()
|
boolean |
publish(org.eclipse.gmf.runtime.emf.core.resources.GMFResource gmfResource)
This method normally is called by the Editor if a save is performed It sends the current data to the server |
boolean |
publishChange(org.eclipse.gef.EditPart selectedElement)
|
boolean |
publishDeletion(org.eclipse.gef.EditPart selectedElement)
|
boolean |
publishDeletion(org.eclipse.gmf.runtime.notation.View view)
|
boolean |
publishRestore(org.eclipse.gef.EditPart selectedElement)
tries to restore an object on the server |
boolean |
restoreObjectOnServer(org.eclipse.gef.EditPart selectedElement)
|
void |
run()
|
void |
saveLastResource()
save the last resource in local file System |
void |
setResourceSynchronizer(ResourceSynchronizer resourceSynchronizer)
|
void |
setUserId(int userId)
|
void |
updateOfflineServer()
just basic updating. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DawnWatcherImpl(org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor dawnDiagramEditor,
java.lang.String projectname,
java.lang.String pluginId)
dawnDiagramEditor - editpartProvider - projectname - pluginId - | Method Detail |
|---|
public int getUserId()
getUserId in interface Watcherpublic void setUserId(int userId)
setUserId in interface WatcheruserId - public ResourceSynchronizer getResourceSynchronizer()
getResourceSynchronizer in interface Watcherpublic void setResourceSynchronizer(ResourceSynchronizer resourceSynchronizer)
setResourceSynchronizer in interface WatcherresourceSynchronizer - public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic org.eclipse.emf.ecore.resource.Resource getGmfResource()
getGmfResource in interface Watcher
public boolean publish(org.eclipse.gmf.runtime.emf.core.resources.GMFResource gmfResource)
throws ServerNotAvailableException,
DawnRemoteConnectorNotInitializedException
publish in interface WatchergmfResource -
ServerNotAvailableException
DawnRemoteConnectorNotInitializedExceptionpublic boolean isConfilcted()
isConfilcted in interface Watcherpublic void addToIgnoreList(org.eclipse.emf.ecore.EObject obj)
addToIgnoreList in interface Watcherobj - public boolean publishRestore(org.eclipse.gef.EditPart selectedElement)
publishRestore in interface WatcherselectedElement - lastObject -
public boolean publishChange(org.eclipse.gef.EditPart selectedElement)
publishChange in interface WatcherselectedElement -
public boolean publishDeletion(org.eclipse.gef.EditPart selectedElement)
publishDeletion in interface WatcherselectedElement -
public boolean publishDeletion(org.eclipse.gmf.runtime.notation.View view)
publishDeletion in interface Watcherview -
public boolean changeObjectOnServer(org.eclipse.gef.EditPart selectedElement)
changeObjectOnServer in interface WatcherselectedElement - lastObject -
public boolean restoreObjectOnServer(org.eclipse.gef.EditPart selectedElement)
restoreObjectOnServer in interface WatcherselectedElement -
public boolean deleteObjectOnServer(org.eclipse.gmf.runtime.notation.View view)
deleteObjectOnServer in interface Watcherview -
public void saveLastResource()
saveLastResource in interface Watcherpublic boolean isLoggedIn()
isLoggedIn in interface Watcherpublic void updateOfflineServer()
updateOfflineServer in interface Watcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||