Search in sources :

Example 1 with GroupAddedEvent

use of org.cytoscape.group.events.GroupAddedEvent in project cytoscape-impl by cytoscape.

the class CyGroupManagerImpl method addGroup.

@Override
public void addGroup(final CyGroup group) {
    synchronized (lock) {
        if (groupSet.contains(group)) {
            return;
        } else {
            groupSet.add(group);
            addGroupToRootMap(group);
        // updateGroupAttribute(group);
        }
    }
    final CyEventHelper cyEventHelper = getService(CyEventHelper.class);
    cyEventHelper.fireEvent(new GroupAddedEvent(CyGroupManagerImpl.this, group));
}
Also used : CyEventHelper(org.cytoscape.event.CyEventHelper) GroupAddedEvent(org.cytoscape.group.events.GroupAddedEvent)

Aggregations

CyEventHelper (org.cytoscape.event.CyEventHelper)1 GroupAddedEvent (org.cytoscape.group.events.GroupAddedEvent)1