KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > console > views > QueryPageTabViewActionGroup


1 /*
2  * Created on 2004-11-01 by max
3  *
4  */

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 /**
15  * @author max
16  *
17  */

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