import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.common.CdmUtils;
-import eu.etaxonomy.cdm.persistence.hibernate.permission.CRUD;
+import eu.etaxonomy.cdm.model.permission.CRUD;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.model.ImageResources;
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
toolBarManager.add(browseAction);
}
+ addAction(toolBarManager);
+
return toolBarManager.createControl(this);
}
- /**
+ protected void addAction(ToolBarManager toolBarManager) {
+ // default implementation empty
+ }
+
+ /**
* using this method is discouraged, use updateToolBar() instead
*/
public void showToolbar(){
}
}
- private void updateToolbar() {
+ protected void updateToolbar() {
if(getEntity() != null && CdmStore.currentAuthentiationHasPermission(StoreUtil.getCdmEntity(getEntity()), UPDATE)){
showToolbar();
} else {