diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java index 24f394e..895b2b5 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java @@ -15,6 +15,7 @@ import com.extjs.gxt.ui.client.event.SelectionListener; import com.extjs.gxt.ui.client.widget.Text; import com.extjs.gxt.ui.client.widget.button.Button; import com.extjs.gxt.ui.client.widget.form.TextField; +import com.extjs.gxt.ui.client.widget.menu.SeparatorMenuItem; import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem; import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem; import com.extjs.gxt.ui.client.widget.toolbar.ToolBar; @@ -56,6 +57,18 @@ public class GxtBottomToolBarItem extends ToolBar{ private void initToolbar(){ + btnGetTrash = new Button("Trash"); + btnGetTrash.setIcon(Resources.getTrashEmpty()); + btnGetTrash.addSelectionListener(new SelectionListener() { + + @Override + public void componentSelected(ButtonEvent ce) { + + AppController.getEventBus().fireEvent(new TrashEvent(WorkspaceTrashOperation.SHOW, null)); + + } + }); + bHistory = new Button(HISTORY); bHistory.setIcon(Resources.getIconHistory()); @@ -94,35 +107,20 @@ public class GxtBottomToolBarItem extends ToolBar{ } }); - add(btnGetInfo); - add(new SeparatorToolItem()); - add(bHistory); + aclDivInfo = new ACLDivInfo("", null); //COMMENTED AT 29/08/2013 // add(new SeparatorToolItem()); // add(bRead); - - - - add(new FillToolItem()); - aclDivInfo = new ACLDivInfo("", null); - add(aclDivInfo); - - btnGetTrash = new Button("Trash"); - btnGetTrash.setIcon(Resources.getTrashEmpty()); - btnGetTrash.addSelectionListener(new SelectionListener() { - @Override - public void componentSelected(ButtonEvent ce) { - - AppController.getEventBus().fireEvent(new TrashEvent(WorkspaceTrashOperation.SHOW, null)); - - } - }); - add(new FillToolItem()); + add(btnGetTrash); - + add(new SeparatorMenuItem()); + add(btnGetInfo); + add(bHistory); + add(new FillToolItem()); + add(aclDivInfo); enableInfoHistoryButtons(false);