|
Lines 18-25
Link Here
|
| 18 |
import org.eclipse.jface.action.IToolBarManager; |
18 |
import org.eclipse.jface.action.IToolBarManager; |
| 19 |
import org.eclipse.jface.action.MenuManager; |
19 |
import org.eclipse.jface.action.MenuManager; |
| 20 |
import org.eclipse.jface.action.Separator; |
20 |
import org.eclipse.jface.action.Separator; |
| 21 |
import org.eclipse.jface.action.ToolBarContributionItem; |
|
|
| 22 |
import org.eclipse.jface.action.ToolBarManager; |
| 23 |
import org.eclipse.swt.SWT; |
21 |
import org.eclipse.swt.SWT; |
| 24 |
import org.eclipse.ui.ISharedImages; |
22 |
import org.eclipse.ui.ISharedImages; |
| 25 |
import org.eclipse.ui.IViewPart; |
23 |
import org.eclipse.ui.IViewPart; |
|
Lines 158-165
Link Here
|
| 158 |
} |
156 |
} |
| 159 |
|
157 |
|
| 160 |
protected void fillCoolBar(ICoolBarManager coolBar) { |
158 |
protected void fillCoolBar(ICoolBarManager coolBar) { |
| 161 |
IToolBarManager toolBar = new ToolBarManager(SWT.FLAT | SWT.RIGHT); |
159 |
IToolBarManager toolBar = getActionBarConfigurer().createToolBarManager(SWT.NONE); |
| 162 |
coolBar.add(new ToolBarContributionItem(toolBar, "standard")); //$NON-NLS-1$ |
160 |
coolBar.add(toolBar); //$NON-NLS-1$ |
| 163 |
|
161 |
|
| 164 |
// For the Back and Forward actions, force their text to be shown on the toolbar, |
162 |
// For the Back and Forward actions, force their text to be shown on the toolbar, |
| 165 |
// not just their image. For the remaining actions, the ActionContributionItem |
163 |
// not just their image. For the remaining actions, the ActionContributionItem |
|
Lines 172-178
Link Here
|
| 172 |
forwardCI.setMode(ActionContributionItem.MODE_FORCE_TEXT); |
170 |
forwardCI.setMode(ActionContributionItem.MODE_FORCE_TEXT); |
| 173 |
toolBar.add(forwardCI); |
171 |
toolBar.add(forwardCI); |
| 174 |
|
172 |
|
| 175 |
toolBar.add(stopAction); |
173 |
toolBar.add(stopAction); |
| 176 |
toolBar.add(refreshAction); |
174 |
toolBar.add(refreshAction); |
| 177 |
} |
175 |
} |
| 178 |
} |
176 |
} |