Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-07-20 15:51:58 -0400
committerRyan D. Brooks2011-07-20 15:51:58 -0400
commit158f7fa6ab78b1542390deb25bdc4c3ce4644716 (patch)
tree0e734f041a13ab6a0c452d00f3fc2819221fd33c /plugins/org.eclipse.osee.coverage
parent8c7b3fd1d86deb07253feb0f8918aa37bab50904 (diff)
downloadorg.eclipse.osee-158f7fa6ab78b1542390deb25bdc4c3ce4644716.tar.gz
org.eclipse.osee-158f7fa6ab78b1542390deb25bdc4c3ce4644716.tar.xz
org.eclipse.osee-158f7fa6ab78b1542390deb25bdc4c3ce4644716.zip
refactor: Remove CreateCoverageTestUnitArtifact XNavigate item
Diffstat (limited to 'plugins/org.eclipse.osee.coverage')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CoverageNavigateViewItems.java1
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CreateCoverageTestUnitArtifact.java70
2 files changed, 0 insertions, 71 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CoverageNavigateViewItems.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CoverageNavigateViewItems.java
index ac20ac5128..eb21926f8f 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CoverageNavigateViewItems.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CoverageNavigateViewItems.java
@@ -63,7 +63,6 @@ public class CoverageNavigateViewItems implements XNavigateViewItems {
try {
if (SystemGroup.OseeAdmin.isCurrentUserMember()) {
- items.add(new CreateCoverageTestUnitArtifact(null));
for (ICoverageNavigateItem navigateItem : getExtensionPointNavigateItems()) {
try {
items.addAll(navigateItem.getNavigateItems());
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CreateCoverageTestUnitArtifact.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CreateCoverageTestUnitArtifact.java
deleted file mode 100644
index 5a0a2cc6e9..0000000000
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/navigate/CreateCoverageTestUnitArtifact.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.coverage.navigate;
-
-import org.eclipse.osee.coverage.store.ArtifactTestUnitStore;
-import org.eclipse.osee.coverage.util.CoverageUtil;
-import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-
-/**
- * @author John Misinco
- */
-public class CreateCoverageTestUnitArtifact extends XNavigateItem {
-
- public CreateCoverageTestUnitArtifact(XNavigateItem parent) {
- super(parent, "Create Coverage Test Unit Artifact", FrameworkImage.GEAR);
- }
-
- @Override
- public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
-
- if (CoverageUtil.getBranch() == null) {
- if (!CoverageUtil.getBranchFromUser(false)) {
- return;
- }
- }
-
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- StringBuilder sb = new StringBuilder();
- try {
- String sql = "select * from osee_cvg_testunits order by name_id asc";
- chStmt.runPreparedQuery(sql);
- boolean firstTime = true;
- while (chStmt.next()) {
- if (!firstTime) {
- sb.append("\n");
- }
- sb.append(chStmt.getInt("name_id"));
- sb.append("|");
- sb.append(chStmt.getString("name"));
- firstTime = false;
- }
- } finally {
- chStmt.close();
- }
- Artifact art =
- ArtifactQuery.getOrCreate(ArtifactTestUnitStore.COVERAGE_GUID, null, CoreArtifactTypes.GeneralData,
- CoverageUtil.getBranch());
- art.setSoleAttributeFromString(CoreAttributeTypes.GeneralStringData, sb.toString());
- art.persist();
- AWorkbench.popup("Completed", "Complete");
- }
-}

Back to the top