}
//if action is called from TopMenuBar
else
{
//open dialog
GoIQueryParamWithEntitiesDialog dialog =
new GoIQueryParamWithEntitiesDialog(main);
options = dialog.open(options);
if ( !options.isCancel() )
{
options.setCancel(true);
}
else
{
return;
}
//Get added entities to the list
ArrayList<physicalEntity> addedEntities = dialog.getAddedEntities();
//Get the states of added entities.
Set<GraphObject> sourceSet =
main.getRootGraph().getRelatedStates(addedEntities);