}
public void handleMessage(EBMessage message) {
String className = message.getClass().getCanonicalName();
if (className.endsWith("ViewerUpdate")) {
ViewerUpdate msg = (ViewerUpdate)message;
switch(msg.getType()) {
case PROJECT_LOADED:
projectLoaded((VPTProject)msg.getNode());
break;
case GROUP_ACTIVATED:
groupActivated((VPTGroup)msg.getNode());
break;
}
} else if (className.endsWith("ProjectUpdate")) {
ProjectUpdate msg = (ProjectUpdate)message;
VPTProject project = msg.getProject();
switch(msg.getType()) {
case FILES_CHANGED:
filesAdded(project, msg.getAddedFiles());
filesRemoved(project, msg.getRemovedFiles());
break;
case PROPERTIES_CHANGED:
//propertiesChanged(project);
break;
}