newElement = new JMenuItem( controller.getAction(TreeViewerControl.CREATE_OBJECT));
TreeViewerAction a = controller.getAction(TreeViewerControl.CREATE_OBJECT); newElement = new JMenuItem(a); newElement.setText(a.getActionName());
    private void initComponents()    {        newElement = new JMenuItem(                controller.getAction(TreeViewerControl.CREATE_OBJECT));        initMenuItem(newElement);        copyElement = new JMenuItem(                controller.getAction(TreeViewerControl.COPY_OBJECT));         initMenuItem(newElement);        pasteElement = new JMenuItem(                controller.getAction(TreeViewerControl.PASTE_OBJECT));         initMenuItem(newElement);        deleteElement = new JMenuItem(                controller.getAction(TreeViewerControl.DELETE_OBJECT));         initMenuItem(newElement);        existingElement = new JMenuItem(            controller.getAction(TreeViewerControl.ADD_OBJECT));        initMenuItem(existingElement);    }