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));
}
Aggregations