private void addNewActionElement(String elementToCreate) {
   ActionElementContainer target = actionElementsSection.getActionElementContainer();
   ActionElementCreateCommand command = new ActionElementCreateCommand(target.getFactory());
   command.setActionElementContainer(actionElementsSection.getActionElementContainer());
   command.setActionId(elementToCreate);
   getCommandStack().execute(command);
 }
 private void removeSelectedObject() {
   if (actionElementsSection.getSelectedActionElement() != null) {
     ActionElementDeleteCommand command = new ActionElementDeleteCommand();
     command.setActionElement(actionElementsSection.getSelectedActionElement());
     command.setActionElementContainer(actionElementsSection.getActionElementContainer());
     getCommandStack().execute(command);
   }
 }
 private boolean hasSelection() {
   return actionElementsSection.getSelectedActionElement() != null;
 }
 private IActionBars getActionBars() {
   return actionElementsSection.getTabbedPropertySheetPage().getSite().getActionBars();
 }
 private CommandStack getCommandStack() {
   return actionElementsSection.getCommandStack();
 }