Package com.iizigo.panel
Class ClientSideEditor
java.lang.Object
com.iizigo.panel.ClientSideEditor
- All Implemented Interfaces:
- ITransactionSender,- ITransactionCreator,- EventListener,- IPropMgrOwner,- IProxyEditController,- Runnable
public class ClientSideEditor extends Object implements EventListener, Runnable, IProxyEditController, IPropMgrOwner, ITransactionCreator, ITransactionSender
Class for client-side editor.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescriptionCreates a transaction with the configured write cache.- getClientContextMenuReference- (UIContextMenu contextMenu) Gets the reference to use for a context menu.Gets the ComplexOperation object for the current undo/redo operation.- voidThe listener for root property changes from the JS designer.- voidCalled when a RemoteEvent has been added and needs sending (along with all properties, etc).- void- run()The root property updater: updates the JS designer.- void- sendTransaction- (SendTransaction trans) Sends a transaction to the JavaScript panel designer.- static void- setDragging- (org.eclipse.jface.viewers.ISelection selection) Sets the validity of drag-drop in order to accept LocalSelection or not, i.e.
- Method Details- onEventThe listener for root property changes from the JS designer.- Specified by:
- onEventin interface- EventListener
- Parameters:
- e- The event.
 
- onRemoteEventQueuedpublic void onRemoteEventQueued()Called when a RemoteEvent has been added and needs sending (along with all properties, etc).- Specified by:
- onRemoteEventQueuedin interface- IPropMgrOwner
 
- runpublic void run()The root property updater: updates the JS designer.
- createTransactionCreates a transaction with the configured write cache.- Specified by:
- createTransactionin interface- ITransactionCreator
- Returns:
- The new Transactioninstance.
 
- sendTransactionSends a transaction to the JavaScript panel designer. This transaction is ignored if the JavaScript side is not present.- Specified by:
- sendTransactionin interface- ITransactionSender
- Parameters:
- trans- The transaction.
 
- getCurrentComplexOperationGets the ComplexOperation object for the current undo/redo operation.- Specified by:
- getCurrentComplexOperationin interface- IProxyEditController
- Returns:
- An instance of com.iizigo.editor.complex.ComplexOperation if inside the Designer and an Undo Transaction is running, null otherwise.
 
- setDraggingpublic static void setDragging- (org.eclipse.jface.viewers.ISelection selection) Sets the validity of drag-drop in order to accept LocalSelection or not, i.e. that it's from this Eclipse instance the drag-drop originates from. This is queried from JS Designer.
- getClientContextMenuReferenceGets the reference to use for a context menu.- Specified by:
- getClientContextMenuReferencein interface- IPropMgrOwner
- Parameters:
- contextMenu- The context menu.
- Returns:
- The reference to use, empty string for none (never null).