Bug 564144 - Removes bundles/org.eclipse.ui.workbench/Eclipse
UI/org/eclipse/ui/internal/AboutAction
As of Bug 171149 the AboutAction is replaced by AboutHandler
Full text search also showed no usage
Change-Id: Ifd986170766467d61de3138f76fe2cbfa5eb51da
Signed-off-by: Rolf Theunissen <rolf.theunissen@gmail.com>
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutAction.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutAction.java
deleted file mode 100644
index ba11264..0000000
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutAction.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ui.internal.about;
-
-import org.eclipse.osgi.util.NLS;
-
-import org.eclipse.core.runtime.IProduct;
-import org.eclipse.core.runtime.Platform;
-
-import org.eclipse.jface.action.Action;
-
-import org.eclipse.ui.IWorkbenchCommandConstants;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.actions.ActionFactory;
-import org.eclipse.ui.internal.IWorkbenchHelpContextIds;
-import org.eclipse.ui.internal.WorkbenchMessages;
-import org.eclipse.ui.internal.dialogs.AboutDialog;
-
-/**
- * Creates an About dialog and opens it.
- */
-public class AboutAction extends Action implements ActionFactory.IWorkbenchAction {
-
- /**
- * The workbench window; or <code>null</code> if this action has been
- * <code>dispose</code>d.
- */
- private IWorkbenchWindow workbenchWindow;
-
- /**
- * Creates a new <code>AboutAction</code>.
- *
- * @param window the window
- */
- public AboutAction(IWorkbenchWindow window) {
- if (window == null) {
- throw new IllegalArgumentException();
- }
-
- this.workbenchWindow = window;
-
- // use message with no fill-in
- IProduct product = Platform.getProduct();
- String productName = null;
- if (product != null) {
- productName = product.getName();
- }
- if (productName == null) {
- productName = ""; //$NON-NLS-1$
- }
- setText(NLS.bind(WorkbenchMessages.AboutAction_text, productName));
- setToolTipText(NLS.bind(WorkbenchMessages.AboutAction_toolTip, productName));
- setId("about"); //$NON-NLS-1$
- setActionDefinitionId(IWorkbenchCommandConstants.HELP_ABOUT);
- window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.ABOUT_ACTION);
- }
-
- @Override
- public void run() {
- // make sure action is not disposed
- if (workbenchWindow != null) {
- new AboutDialog(workbenchWindow.getShell()).open();
- }
- }
-
- @Override
- public void dispose() {
- workbenchWindow = null;
- }
-}