import org.apache.commons.logging.LogFactory;
import org.argeo.cms.CmsException;
import org.argeo.security.ui.admin.SecurityAdminPlugin;
-import org.eclipse.swt.SWTException;
import org.eclipse.ui.AbstractSourceProvider;
import org.eclipse.ui.ISources;
@Override
public String[] getProvidedSourceNames() {
- return new String[] { TRANSACTION_STATE };
+ return new String[] { TRANSACTION_STATE};
}
@Override
public Map<String, String> getCurrentState() {
Map<String, String> currentState = new HashMap<String, String>(1);
- currentState.put(TRANSACTION_STATE, getInternalCurrentState());
+ currentState.put(TRANSACTION_STATE, getInternalCurrentState());
return currentState;
}
try {
fireSourceChanged(ISources.WORKBENCH, TRANSACTION_STATE,
getInternalCurrentState());
- } catch (SWTException e) {
- // FIXME
- log.warn("Cannot fire transaction state change event: "
- + e.getMessage());
+ } catch (Exception e) {
+ log.warn("Cannot fire transaction state change event. Caught exception: "
+ + e.getClass().getCanonicalName() + " - " + e.getMessage());
}
}