1 5 package org.hibernate.eclipse.console.views; 6 7 import org.eclipse.jface.action.Action; 8 import org.eclipse.jface.viewers.ISelectionProvider; 9 import org.eclipse.ui.IActionBars; 10 import org.eclipse.ui.IViewPart; 11 import org.eclipse.ui.actions.ActionGroup; 12 import org.hibernate.eclipse.console.actions.CloseQueryPageAction; 13 14 18 public class QueryPageTabViewActionGroup extends ActionGroup { 19 20 Action closeAction; 21 22 public QueryPageTabViewActionGroup(IViewPart part, ISelectionProvider provider) { 23 24 closeAction = new CloseQueryPageAction(provider); 25 26 } 27 28 public void fillActionBars(IActionBars actionBars) { 29 actionBars.getToolBarManager().add(closeAction); 30 } 31 } 32 | Popular Tags |