}
//if action is called from TopMenuBar
else
{
//open dialog
CommonStreamQueryParamWithEntitiesDialog dialog =
new CommonStreamQueryParamWithEntitiesDialog(main);
options = dialog.open(options);
if ( !options.isCancel() )
{
options.setCancel(true);
}
else
{
return;
}
//Get added entities from dialog
ArrayList<physicalEntity> addedEntities = dialog.getAddedEntities();
//States of each entity
Set<Set<Node>> sourceStatesSet = new LinkedHashSet<Set<Node>>();
Iterator<physicalEntity> addedEntitiesIterator =