Bug 333400 Externalize Strings in Perspective Switcher
Build Identifier: e4 M4a Strings in perspective switcher should be externalized for translation issues. Reproducible: Always
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java
if (persp == null)
					return;
				IWorkbenchPage page = persp.getContext().get(IWorkbenchPage.class);
				String message = NLS.bind(WorkbenchMessages.ResetPerspective_message,
						persp.getLabel());
				if (MessageDialog.openConfirm(page.getWorkbenchWindow().getShell(),
						WorkbenchMessages.ResetPerspective_title, message)) {
					page.resetPerspective();
				}
			}
		});
	}
	private void addShowTextItem(final Menu menu) {
		final MenuItem showtextMenuItem = new MenuItem(menu, SWT.CHECK);
		showtextMenuItem.setText("&Show Text");
		showtextMenuItem.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				boolean preference = showtextMenuItem.getSelection();
				if (preference != PrefUtil.getAPIPreferenceStore().getDefaultBoolean(
						IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR)) {
					PrefUtil.getInternalPreferenceStore().setValue(
							IPreferenceConstants.OVERRIDE_PRESENTATION, true);
				}
				PrefUtil.getAPIPreferenceStore().setValue(
						IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR, preference);
				changeShowText(preference);
			}
		});
		showtextMenuItem.setSelection(PrefUtil.getAPIPreferenceStore().getBoolean(
				IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR));