projectviewer.event
Class ProjectUpdate

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

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

A project update message sent on the Edit Bus.

Since:
PV 3.0.0
Author:
Marcelo Vanzin

Nested Class Summary
static class ProjectUpdate.Type
           
 
Constructor Summary
ProjectUpdate(VPTProject p)
          Construct a new message with type PROPERTIES_CHANGED.
ProjectUpdate(VPTProject p, java.util.Collection<VPTFile> added, java.util.Collection<VPTFile> removed)
          Construct a new message with type FILES_CHANGED.
 
Method Summary
 java.util.Collection<VPTFile> getAddedFiles()
           
 VPTProject getProject()
           
 java.util.Collection<VPTFile> getRemovedFiles()
           
 ProjectUpdate.Type getType()
           
 
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
 

Constructor Detail

ProjectUpdate

public ProjectUpdate(VPTProject p,
                     java.util.Collection<VPTFile> added,
                     java.util.Collection<VPTFile> removed)
Construct a new message with type FILES_CHANGED.


ProjectUpdate

public ProjectUpdate(VPTProject p)
Construct a new message with type PROPERTIES_CHANGED.

Method Detail

getProject

public VPTProject getProject()
Returns:
The affected project.

getType

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

getAddedFiles

public java.util.Collection<VPTFile> getAddedFiles()
Returns:
The list of added files (may be null).

getRemovedFiles

public java.util.Collection<VPTFile> getRemovedFiles()
Returns:
The list of removed files (may be null).