* @param profile
* the active profile form.
*/
@Override
public void fireEvent(final ProfileInstance profile) {
final ProfileForm activeProfile = context.getSelectedProfile();
if (activeProfile == null || activeProfile.getProfile() == null) {
setEnabled(saveAsAction, false); // save as - N
setEnabled(saveAction, false); // save - N
setEnabled(loadAction, true); // load - Y
setEnabled(createAction, true); // new - Y
setEnabled(runAction, false); // run - N
setEnabled(stopAction, false); // stop - N
setEnabled(resourceEditing, false); // add resource - N
setEnabled(closeAction, false); // close - N
setEnabled(exportAction, false); // export - N
setEnabled(filterAction, false); // filter - N
setEnabled(filterEnabledAction, false); // filter enabled - N
setEnabled(reportAction, false); // report - N
} else if (activeProfile.getProfile().equals(profile)) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
ProfileStateMachine state = states.get(profile.getState());
if (state != null) {