//
////////////////////////////////////////////////////////////////////////////
public FileContextDescriptionSupport(ObjectInfo object) {
m_object = object;
m_gwtState = ((IGwtStateProvider) object).getState();
BroadcastSupport broadcastSupport = m_object.getBroadcastSupport();
// add IFile based context descriptions
broadcastSupport.addListener(null, new StylePropertyEditorListener() {
@Override
public void addContextDescriptions(ObjectInfo object, List<ContextDescription> contexts)
throws Exception {
addFileContextDesccriptions(contexts);
}
});
// dispose on hierarchy dispose
broadcastSupport.addListener(null, new ObjectEventListener() {
@Override
public void dispose() throws Exception {
for (ContextDescription context : m_fileContexts.values()) {
context.dispose();
}