projectviewer.event
Class StructureUpdate

java.lang.Object
  extended by org.gjt.sp.jedit.EBMessage
      extended by projectviewer.event.StructureUpdate

public final class StructureUpdate
extends org.gjt.sp.jedit.EBMessage

An update message describing some change in the data kept by the plugin.

Since:
PV 3.0.0
Author:
Marcelo Vanzin

Nested Class Summary
static class StructureUpdate.Type
           
 
Method Summary
 VPTNode getNode()
           
 VPTGroup getOldParent()
           
 StructureUpdate.Type getType()
           
static void send(VPTNode node, StructureUpdate.Type type)
           
static void send(VPTNode node, VPTGroup parent)
           
 
Methods inherited from class org.gjt.sp.jedit.EBMessage
getSource, paramString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

send

public static void send(VPTNode node,
                        StructureUpdate.Type type)

send

public static void send(VPTNode node,
                        VPTGroup parent)

getType

public StructureUpdate.Type getType()
Returns:
The event type of this message.

getNode

public VPTNode getNode()
Returns:
The affected node.

getOldParent

public VPTGroup getOldParent()
Returns:
The old parent, if type is NODE_MOVED.