Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 123257 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ui/examples/rcp/browser/BrowserActionBarAdvisor.java (-6 / +4 lines)
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
}
(-)plugin_customization.ini (+1 lines)
Lines 1-2 Link Here
1
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight
1
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight
2
org.eclipse.ui/KEY_CONFIGURATION_ID=org.eclipse.ui.examples.rcp.browser.keyConfiguration
2
org.eclipse.ui/KEY_CONFIGURATION_ID=org.eclipse.ui.examples.rcp.browser.keyConfiguration
3
org.eclipse.ui/presentationFactoryId=org.eclipse.ui.examples.presentation.customtoolbar

Return to bug 123257