}
//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<EntityHolder> addedEntities = dialog.getAddedEntities();
//Get the states of added entities.
Set<Node> sourceSet =
main.getRootGraph().getRelatedStates(addedEntities);