Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2012-01-24 22:41:10 +0000
committerRyan D. Brooks2012-01-24 22:41:10 +0000
commit40f83be950457c2615036a31b646d21030629bcf (patch)
treefb99d071eee3cb0c708fc1f608198d8677067099
parent378643aabf810e81b02dd6847fc3e463914a10ba (diff)
downloadorg.eclipse.osee-40f83be950457c2615036a31b646d21030629bcf.tar.gz
org.eclipse.osee-40f83be950457c2615036a31b646d21030629bcf.tar.xz
org.eclipse.osee-40f83be950457c2615036a31b646d21030629bcf.zip
refactor: Remove unused class OpenArtifactAction
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactAction.java70
1 files changed, 0 insertions, 70 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactAction.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactAction.java
deleted file mode 100644
index 4b45b162d44..00000000000
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactAction.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.artifact;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.ArtifactDragDropSupport;
-import org.eclipse.osee.framework.ui.skynet.internal.Activator;
-import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
-import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @author Jeff C. Phillips
- * @author Ryan D. Brooks
- */
-public class OpenArtifactAction implements IObjectActionDelegate {
- private IWorkbenchPart targetPart;
- private Shell shell;
-
- @Override
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- this.targetPart = targetPart;
- this.shell = targetPart.getSite().getShell();
- }
-
- @Override
- public void run(IAction action) {
- IStructuredSelection sel = (IStructuredSelection) targetPart.getSite().getSelectionProvider().getSelection();
- for (Object object : sel.toList()) {
- if (object instanceof IResource) {
- IResource resource = (IResource) object;
- try {
- Artifact artifact = ArtifactDragDropSupport.getArtifactFromWorkspaceFile(resource, shell);
- if (artifact != null) {
- RendererManager.open(artifact, PresentationType.DEFAULT_OPEN);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
- }
- } else {
- MessageDialog.openInformation(targetPart.getSite().getShell(), "Open Associated Artifact",
- "Type " + object.getClass() + " not handeled.");
- return;
- }
- }
- }
-
- @Override
- public void selectionChanged(IAction action, ISelection selection) {
- // do nothing
- }
-}

Back to the top