01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.appevent;
06:
07: import java.io.Serializable;
08:
09: import javax.swing.tree.DefaultTreeModel;
10:
11: /**
12: * Event context information
13: */
14: public interface ApplicationEventContext extends Serializable {
15:
16: /**
17: * @return Object that the event is related to
18: */
19: Object getPojo();
20:
21: /**
22: * @return A tree model defining the object hierarchy of interest for this event
23: */
24: DefaultTreeModel getTreeModel();
25:
26: /**
27: * @param treeModel Set the tree model
28: */
29: void setTreeModel(DefaultTreeModel treeModel);
30:
31: /**
32: * Optional - specify Eclipse project
33: * @return Eclipse project name
34: */
35: String getProjectName();
36: }
|