Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2016-06-24 13:44:26 -0400
committerRyan D. Brooks2016-08-31 12:17:19 -0400
commit2088fa738b90a09484cf584176ab4e0b1684fc6e (patch)
treea7555373672cb67d8a570c4471762836507dcf0f /plugins/org.eclipse.osee.ats.reports
parent4234f95e21accc54bc2bed8f1161f51e641b57d7 (diff)
downloadorg.eclipse.osee-2088fa738b90a09484cf584176ab4e0b1684fc6e.tar.gz
org.eclipse.osee-2088fa738b90a09484cf584176ab4e0b1684fc6e.tar.xz
org.eclipse.osee-2088fa738b90a09484cf584176ab4e0b1684fc6e.zip
refactor: Remove ats.report bundles
Diffstat (limited to 'plugins/org.eclipse.osee.ats.reports')
-rw-r--r--plugins/org.eclipse.osee.ats.reports/.classpath7
-rw-r--r--plugins/org.eclipse.osee.ats.reports/META-INF/MANIFEST.MF26
-rw-r--r--plugins/org.eclipse.osee.ats.reports/build.properties5
-rw-r--r--plugins/org.eclipse.osee.ats.reports/plugin.xml11
-rw-r--r--plugins/org.eclipse.osee.ats.reports/pom.xml18
-rw-r--r--plugins/org.eclipse.osee.ats.reports/schema/AtsReportItem.exsd102
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/AtsReport.java34
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/ReportTabFactory.java29
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/Activator.java37
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/AtsReportXNavigateItemAction.java59
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java68
-rw-r--r--plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/ProjectModuleReports.java43
12 files changed, 0 insertions, 439 deletions
diff --git a/plugins/org.eclipse.osee.ats.reports/.classpath b/plugins/org.eclipse.osee.ats.reports/.classpath
deleted file mode 100644
index 1fa3e6803d..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/org.eclipse.osee.ats.reports/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.ats.reports/META-INF/MANIFEST.MF
deleted file mode 100644
index c09d29d312..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,26 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: OSEE ATS Reports (Incubation)
-Bundle-SymbolicName: org.eclipse.osee.ats.reports;singleton:=true
-Bundle-Version: 0.24.0.qualifier
-Bundle-Activator: org.eclipse.osee.ats.reports.internal.Activator
-Bundle-Vendor: Eclipse Open System Engineering Environment
-Bundle-RequiredExecutionEnvironment: JavaSE-1.8
-Import-Package: org.eclipse.birt.report.viewer.utilities,
- org.eclipse.core.runtime,
- org.eclipse.core.runtime.jobs,
- org.eclipse.osee.ats,
- org.eclipse.osee.ats.navigate,
- org.eclipse.osee.framework.core.exception,
- org.eclipse.osee.framework.core.operation,
- org.eclipse.osee.framework.jdk.core.type,
- org.eclipse.osee.framework.logging,
- org.eclipse.osee.framework.plugin.core.util,
- org.eclipse.osee.framework.ui.plugin.xnavigate,
- org.eclipse.osee.framework.ui.skynet.blam,
- org.eclipse.osee.framework.ui.skynet.results,
- org.eclipse.osee.framework.ui.swt,
- org.osgi.framework
-Bundle-ActivationPolicy: lazy
-Require-Bundle: org.eclipse.ui
-Export-Package: org.eclipse.osee.ats.reports
diff --git a/plugins/org.eclipse.osee.ats.reports/build.properties b/plugins/org.eclipse.osee.ats.reports/build.properties
deleted file mode 100644
index e9863e281e..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/plugins/org.eclipse.osee.ats.reports/plugin.xml b/plugins/org.eclipse.osee.ats.reports/plugin.xml
deleted file mode 100644
index 9a2483cf0c..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/plugin.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension-point id="AtsReportItem" name="AtsReportItem" schema="schema/AtsReportItem.exsd"/>
- <extension
- point="org.eclipse.osee.ats.AtsNavigateItem">
- <AtsNavigateItem
- classname="org.eclipse.osee.ats.reports.internal.ProjectModuleReports">
- </AtsNavigateItem>
- </extension>
-</plugin>
diff --git a/plugins/org.eclipse.osee.ats.reports/pom.xml b/plugins/org.eclipse.osee.ats.reports/pom.xml
deleted file mode 100644
index d86b74dc0e..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/pom.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.eclipse.osee</groupId>
- <artifactId>org.eclipse.osee.ats.parent</artifactId>
- <version>0.24.0-SNAPSHOT</version>
- <relativePath>../../plugins/org.eclipse.osee.ats.parent</relativePath>
- </parent>
-
- <artifactId>org.eclipse.osee.ats.reports</artifactId>
- <packaging>eclipse-plugin</packaging>
- <name>OSEE ATS Reports (Incubation)</name>
-
-
-</project>
diff --git a/plugins/org.eclipse.osee.ats.reports/schema/AtsReportItem.exsd b/plugins/org.eclipse.osee.ats.reports/schema/AtsReportItem.exsd
deleted file mode 100644
index 558e94c721..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/schema/AtsReportItem.exsd
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.osee.ats.reports" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.osee.ats.reports" id="AtsReportItem" name="AtsReportItem"/>
- </appinfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="AtsReportItem"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="AtsReportItem">
- <complexType>
- <attribute name="classname" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.osee.ats.reports.AtsReport"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiinfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/AtsReport.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/AtsReport.java
deleted file mode 100644
index 036ccb3f42..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/AtsReport.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 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.ats.reports;
-
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.swt.KeyedImage;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface AtsReport<IN, OUT> {
-
- String getName();
-
- KeyedImage getKeyedImage();
-
- IN getInputParameters() throws OseeCoreException;
-
- OUT createOutputParameters() throws OseeCoreException;
-
- IOperation createReportOperation(IN input, OUT output, TableLoadOption... tableLoadOptions) throws OseeCoreException;
-
- void displayResults(OUT output) throws OseeCoreException;
-}
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/ReportTabFactory.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/ReportTabFactory.java
deleted file mode 100644
index d1d7f9d71e..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/ReportTabFactory.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 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.ats.reports;
-
-import org.eclipse.osee.ats.reports.internal.BirtReportViewerTab;
-import org.eclipse.osee.framework.ui.skynet.results.IResultsEditorTab;
-
-/**
- * @author Roberto Escobar
- */
-public class ReportTabFactory {
-
- private ReportTabFactory() {
- //
- }
-
- public static IResultsEditorTab createBirtReportTab(String bundleId, String tabName, String rptDesingPath) {
- return new BirtReportViewerTab(bundleId, tabName, rptDesingPath);
- }
-
-}
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/Activator.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/Activator.java
deleted file mode 100644
index 7f5184e988..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/Activator.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 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.ats.reports.internal;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-/**
- * @author Roberto E. Escobar
- */
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- static BundleContext getContext() {
- return context;
- }
-
- @Override
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- @Override
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/AtsReportXNavigateItemAction.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/AtsReportXNavigateItemAction.java
deleted file mode 100644
index 04623a2ba5..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/AtsReportXNavigateItemAction.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 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.ats.reports.internal;
-
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.osee.ats.reports.AtsReport;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-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.plugin.xnavigate.XNavigateItemAction;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AtsReportXNavigateItemAction<IN, OUT> extends XNavigateItemAction {
-
- private final AtsReport<IN, OUT> atsReport;
-
- public AtsReportXNavigateItemAction(final XNavigateItem parent, AtsReport<IN, OUT> atsReport) {
- super(parent, atsReport.getName(), atsReport.getKeyedImage());
- this.atsReport = atsReport;
- }
-
- @Override
- public void run(final TableLoadOption... tableLoadOptions) throws Exception {
- IN input = atsReport.getInputParameters();
- if (input != null) {
- final OUT output = atsReport.createOutputParameters();
- IOperation operation = atsReport.createReportOperation(input, output, tableLoadOptions);
- Operations.executeAsJob(operation, true, Job.LONG, new JobChangeAdapter() {
-
- @Override
- public void done(IJobChangeEvent event) {
- super.done(event);
- try {
- atsReport.displayResults(output);
- } catch (OseeCoreException ex) {
- OseeLog.logf(Activator.class, OseeLevel.SEVERE_POPUP, ex, "Error displaying [%s]",
- atsReport.getName());
- }
- }
- });
- }
- }
-}
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java
deleted file mode 100644
index eb7fcc0337..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/BirtReportViewerTab.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2012 Robert Bosch Engineering and Business Solutions Ltd India. 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
- */
-package org.eclipse.osee.ats.reports.internal;
-
-import java.net.URL;
-import org.eclipse.birt.report.viewer.utilities.WebViewer;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.results.IResultsEditorTab;
-import org.eclipse.osee.framework.ui.skynet.results.ResultsEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
-import org.eclipse.swt.widgets.Composite;
-import org.osgi.framework.Bundle;
-
-/**
- * Class that implements IResultsEditorTab to crate the tab in the UI
- *
- * @author Praveen Joseph
- */
-public class BirtReportViewerTab implements IResultsEditorTab {
-
- private final String tabName;
- private final String bundleId;
- private final String rptDesingPath;
-
- public BirtReportViewerTab(String bundleId, String tabName, String rptDesingPath) {
- this.tabName = tabName;
- this.bundleId = bundleId;
- this.rptDesingPath = rptDesingPath;
- }
-
- @SuppressWarnings("deprecation")
- @Override
- public Composite createTab(final Composite parent, final ResultsEditor resultsEditor) {
- Browser browser = new Browser(parent, SWT.NONE);
- try {
- URL reportLocation = getReportPath(bundleId, rptDesingPath);
- WebViewer.display(reportLocation.getPath(), WebViewer.HTML, browser, "frameset");
- browser.refresh();
- } catch (Exception ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
- }
- return browser;
- }
-
- @Override
- public String getTabName() {
- return tabName;
- }
-
- private URL getReportPath(String bundleId, String reportPath) throws OseeCoreException {
- try {
- Bundle bundle = Platform.getBundle(bundleId);
- URL url = FileLocator.find(bundle, new Path(reportPath), null);
- return FileLocator.toFileURL(url);
- } catch (Exception ex) {
- throw OseeCoreException.wrap(ex);
- }
- }
-}
diff --git a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/ProjectModuleReports.java b/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/ProjectModuleReports.java
deleted file mode 100644
index 61f69926e9..0000000000
--- a/plugins/org.eclipse.osee.ats.reports/src/org/eclipse/osee/ats/reports/internal/ProjectModuleReports.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 2012 Robert Bosch Engineering and Business Solutions Ltd India. 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
- */
-package org.eclipse.osee.ats.reports.internal;
-
-import java.util.Collections;
-import java.util.List;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.navigate.IAtsNavigateItem;
-import org.eclipse.osee.ats.reports.AtsReport;
-import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-
-/**
- * Class to create the navigate items
- *
- * @author Praveen Joseph
- */
-public class ProjectModuleReports implements IAtsNavigateItem {
-
- private static final String EXTENSION_POINT_ID = "org.eclipse.osee.ats.reports.AtsReportItem";
- private static final String CLASSNAME = "classname";
- private static final String EXTENSION_POINT_NAME = "AtsReportItem";
- private static final String PROJECT_REPORTS = "Project Reports";
-
- @Override
- public List<XNavigateItem> getNavigateItems(final XNavigateItem parentItem) {
- XNavigateItem parent = new XNavigateItem(parentItem, PROJECT_REPORTS, AtsImage.REPORT);
- ExtensionDefinedObjects<AtsReport<?, ?>> atsReports =
- new ExtensionDefinedObjects<AtsReport<?, ?>>(EXTENSION_POINT_ID, EXTENSION_POINT_NAME, CLASSNAME, true);
- for (AtsReport<?, ?> reportItem : atsReports.getObjects()) {
- createReportItem(parent, reportItem);
- }
- return Collections.singletonList(parent);
- }
-
- private <IN, OUT> XNavigateItem createReportItem(XNavigateItem parent, AtsReport<IN, OUT> atsReport) {
- return new AtsReportXNavigateItemAction<IN, OUT>(parent, atsReport);
- }
-
-}

Back to the top