Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed ds.birt plugin and feature.

  • Loading branch information...
commit fa8396314ca5df9da96a3c67e084d2add769ca33 1 parent 7de2b5f
@olas authored
Showing with 0 additions and 3,320 deletions.
  1. +0 −17 features/net.bioclipse.ds.birt_feature/.project
  2. +0 −1  features/net.bioclipse.ds.birt_feature/build.properties
  3. +0 −33 features/net.bioclipse.ds.birt_feature/feature.xml
  4. +0 −7 plugins/net.bioclipse.ds.birt/.classpath
  5. +0 −28 plugins/net.bioclipse.ds.birt/.project
  6. +0 −8 plugins/net.bioclipse.ds.birt/.settings/org.eclipse.jdt.core.prefs
  7. +0 −22 plugins/net.bioclipse.ds.birt/META-INF/MANIFEST.MF
  8. +0 −11 plugins/net.bioclipse.ds.birt/about.ini
  9. +0 −1  plugins/net.bioclipse.ds.birt/about.mappings
  10. +0 −23 plugins/net.bioclipse.ds.birt/about.properties
  11. +0 −10 plugins/net.bioclipse.ds.birt/build.properties
  12. BIN  plugins/net.bioclipse.ds.birt/icons/bar-horiz.png
  13. BIN  plugins/net.bioclipse.ds.birt/icons/chem_report32.png
  14. BIN  plugins/net.bioclipse.ds.birt/icons/graph.gif
  15. BIN  plugins/net.bioclipse.ds.birt/icons/linepoints.png
  16. BIN  plugins/net.bioclipse.ds.birt/icons/pie.png
  17. +0 −78 plugins/net.bioclipse.ds.birt/plugin.xml
  18. BIN  plugins/net.bioclipse.ds.birt/reports/Bioclipse-logo-300.png
  19. +0 −1,076 plugins/net.bioclipse.ds.birt/reports/ds-single.rptdesign
  20. +0 −46 plugins/net.bioclipse.ds.birt/reports/empty.rptdesign
  21. +0 −64 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/Activator.java
  22. +0 −34 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/MyAppContext.java
  23. +0 −16 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/SingleReportTester.java
  24. +0 −174 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/Startup.java
  25. +0 −294 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/editors/WrappedBrowserEditor.java
  26. +0 −195 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/ReportHandler.java
  27. +0 −100 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/AbstractReportModel.java
  28. +0 −58 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/ConsImgHandler.java
  29. +0 −25 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/DBExactMatchHandler.java
  30. +0 −24 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/DBNearestMatchHandler.java
  31. +0 −58 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/MainStructureHandler.java
  32. +0 −61 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/MinStructureHandler.java
  33. +0 −59 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/QueryDSHandler.java
  34. +0 −25 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/SignSigHandler.java
  35. +0 −25 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/SmartsMatchHandler.java
  36. +0 −635 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/util/BogusIFile.java
  37. +0 −58 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/util/StringInput.java
  38. +0 −54 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/util/StringStorage.java
View
17 features/net.bioclipse.ds.birt_feature/.project
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>net.bioclipse.ds.birt_feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
View
1  features/net.bioclipse.ds.birt_feature/build.properties
@@ -1 +0,0 @@
-bin.includes = feature.xml
View
33 features/net.bioclipse.ds.birt_feature/feature.xml
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="net.bioclipse.ds.birt_feature"
- label="Decision Support Reporting"
- version="2.4.0.20100709"
- provider-name="The Bioclipse Team"
- plugin="net.bioclipse.ds.birt">
-
- <description>
- Reporting tools for Bioclipse Decision Support (DS).
- </description>
-
- <copyright>
- (C) 2009 The Bioclipse Project contributors.
- </copyright>
-
- <license url="http://www.eclipse.org/org/documents/epl-v10.php">
- This feature and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 + exception, putting no constraints on choice of backend and/or license for creating plugins for Bioclipse; it is totally open for both open source plugins as well as commercial. The exception allows GPL plugins to be written and run in any combination with EPL licensed plugins, addressing incompatibility between the EPL and the GPL v.2.
-The Eclipse Public License accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
- </license>
-
- <requires>
- <import feature="net.bioclipse.ds_feature" version="2.4.0" match="greaterOrEqual"/>
- <import feature="net.bioclipse.birt_feature" version="2.4.0" match="greaterOrEqual"/>
- </requires>
-
- <plugin
- id="net.bioclipse.ds.birt"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
-</feature>
View
7 plugins/net.bioclipse.ds.birt/.classpath
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
View
28 plugins/net.bioclipse.ds.birt/.project
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>net.bioclipse.ds.birt</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
View
8 plugins/net.bioclipse.ds.birt/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +0,0 @@
-#Tue Sep 08 11:12:21 CEST 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
View
22 plugins/net.bioclipse.ds.birt/META-INF/MANIFEST.MF
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Decision Support Reporting
-Bundle-SymbolicName: net.bioclipse.ds.birt;singleton:=true
-Bundle-Version: 2.4.0.20100709
-Bundle-Activator: net.bioclipse.ds.birt.Activator
-Bundle-Vendor: The Bioclipse Team
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.birt.report.viewer,
- org.eclipse.ui.browser,
- org.eclipse.ui.editors,
- org.eclipse.ui.ide,
- org.eclipse.core.resources,
- org.eclipse.birt.report.engine,
- net.bioclipse.ds,
- net.bioclipse.core,
- net.bioclipse.birt,
- net.bioclipse.ds.ui
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Import-Package: org.apache.log4j
View
11 plugins/net.bioclipse.ds.birt/about.ini
@@ -1,11 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=icons/chem_report32.png
View
1  plugins/net.bioclipse.ds.birt/about.mappings
@@ -1 +0,0 @@
-0=2.4.0.RC1
View
23 plugins/net.bioclipse.ds.birt/about.properties
@@ -1,23 +0,0 @@
-###############################################################################
-# Copyright (c) 2005-2007 Bioclipse Project
-# 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) + exception, putting
-# no constraints on choice of backend and/or license for creating
-# plugins for Bioclipse; it is totally open for both open source
-# plugins as well as commercial. The exception allows GPL plugins
-# to be written and run in any combination with EPL licensed plugins,
-# addressing incompatibility between the EPL and the GPL v.2.
-#
-# More information is available at: http://bioclipse.net/license.html
-###############################################################################
-
-blurb=MetaPrint2D\n\
-\n\
-Version: {featureVersion}\n\
-\n\
-Reporting tools for Bioclipse Decision Support (DS).\
-\n\
-(c) Copyright 2010 The Bioclipse Project. All rights reserved.\n\
-Visit http://www.bioclipse.net
View
10 plugins/net.bioclipse.ds.birt/build.properties
@@ -1,10 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- reports/,\
- icons/,\
- about.properties,\
- about.mappings,\
- about.ini
View
BIN  plugins/net.bioclipse.ds.birt/icons/bar-horiz.png
Deleted file not rendered
View
BIN  plugins/net.bioclipse.ds.birt/icons/chem_report32.png
Deleted file not rendered
View
BIN  plugins/net.bioclipse.ds.birt/icons/graph.gif
Deleted file not rendered
View
BIN  plugins/net.bioclipse.ds.birt/icons/linepoints.png
Deleted file not rendered
View
BIN  plugins/net.bioclipse.ds.birt/icons/pie.png
Deleted file not rendered
View
78 plugins/net.bioclipse.ds.birt/plugin.xml
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-
-
- <extension
- point="org.eclipse.ui.commands">
- <category
- id="net.bioclipse.ds.commands"
- name="Decision Support">
- </category>
-
- <command
- categoryId="net.bioclipse.ds.commands"
- defaultHandler="net.bioclipse.ds.birt.handlers.ReportHandler"
- id="net.bioclipse.ds.ui.report"
- name="Report">
- </command>
- </extension>
-
- <extension point="org.eclipse.core.expressions.propertyTesters">
- <propertyTester
- id="net.bioclipse.ds.birt.SingleReportTester"
- type="java.lang.Object"
- namespace="net.bioclipse.ds.birt"
- properties="isDSViewRun"
- class="net.bioclipse.ds.birt.SingleReportTester">
- </propertyTester>
- </extension>
-
-
-<extension
- point="org.eclipse.ui.menus">
-
- <menuContribution
- locationURI="popup:net.bioclipse.ds.ui.views.DSView?after=additions">
- <command
- commandId="net.bioclipse.ds.ui.report"
- icon="icons/pie.png">
- <!--visibleWhen>
- <with
- variable="activeContexts">
- <iterate
- operator="or">
- <equals
- value="net.bioclipse.ui.contexts.JChemPaint">
- </equals>
- </iterate>
- </with>
- </visibleWhen-->
- </command>
- </menuContribution>
- </extension>
-<extension
- point="org.eclipse.ui.editors">
- <editor
- class="net.bioclipse.ds.birt.editors.WrappedBrowserEditor"
- default="false"
- id="net.bioclipse.ds.birt.editor"
- icon="icons/pie.png"
- name="Report">
- </editor>
-</extension>
-
- <extension
- point="org.eclipse.birt.report.viewer.appcontext">
- <appcontext
- class="net.bioclipse.ds.birt.MyAppContext">
- </appcontext>
- </extension>
-
-
- <extension point="org.eclipse.ui.startup">
- <startup class="net.bioclipse.ds.birt.Startup"/>
- </extension>
-
-
-</plugin>
View
BIN  plugins/net.bioclipse.ds.birt/reports/Bioclipse-logo-300.png
Deleted file not rendered
View
1,076 plugins/net.bioclipse.ds.birt/reports/ds-single.rptdesign
@@ -1,1076 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.20" id="1">
- <property name="author">Ola Spjuth</property>
- <property name="createdBy">Eclipse BIRT Designer Version 2.5.1.v20090903 Build &lt;2.5.1.v20090917-1447></property>
- <property name="units">in</property>
- <property name="iconFile">/templates/blank_report.gif</property>
- <property name="layoutPreference">auto layout</property>
- <property name="bidiLayoutOrientation">ltr</property>
- <data-sources>
- <script-data-source name="Data Source" id="7"/>
- </data-sources>
- <data-sets>
- <script-data-set name="DBExactMatchDataset" id="8">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.DBExactMatchHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">structure</property>
- </structure>
- <structure>
- <property name="columnName">name</property>
- </structure>
- <structure>
- <property name="columnName">classification</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="BDNearestDataset" id="72">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.DBNearestMatchHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">tanimoto</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">4</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">structure</property>
- </structure>
- <structure>
- <property name="columnName">name</property>
- </structure>
- <structure>
- <property name="columnName">tanimoto</property>
- </structure>
- <structure>
- <property name="columnName">classification</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">tanimoto</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">4</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="DSQueryDataset" id="98">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.QueryDSHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">compoundName</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">mw</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">SMILES</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">compoundName</property>
- </structure>
- <structure>
- <property name="columnName">mw</property>
- </structure>
- <structure>
- <property name="columnName">SMILES</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">compoundName</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">mw</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">SMILES</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="MainStructureDataset" id="150">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.MainStructureHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">consensus</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">structure</property>
- </structure>
- <structure>
- <property name="columnName">consensus</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">consensus</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="SmartsMatchesDataset" id="194">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.SmartsMatchHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">0</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">1</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">smarts</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">structure</property>
- </structure>
- <structure>
- <property name="columnName">name</property>
- </structure>
- <structure>
- <property name="columnName">classification</property>
- </structure>
- <structure>
- <property name="columnName">smarts</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">4</property>
- <property name="name">smarts</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="SignSigDataset" id="223">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.SignSigHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">structure</property>
- </structure>
- <structure>
- <property name="columnName">name</property>
- </structure>
- <structure>
- <property name="columnName">classification</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">structure</property>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">name</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">3</property>
- <property name="name">classification</property>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="MinStructureDataset" id="261">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.MinStructureHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">1</property>
- <property name="name">consensus</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">consimg</property>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">consensus</property>
- </structure>
- <structure>
- <property name="columnName">consimg</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">consensus</property>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="position">2</property>
- <property name="name">consimg</property>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- <script-data-set name="ConsImgDS" id="265">
- <property name="eventHandlerClass">net.bioclipse.ds.birt.handlers.model.ConsImgHandler</property>
- <property name="newHandlerOnEachEvent">true</property>
- <list-property name="resultSetHints">
- <structure>
- <property name="position">0</property>
- <property name="name">consimg</property>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- <list-property name="columnHints">
- <structure>
- <property name="columnName">consimg</property>
- </structure>
- </list-property>
- <structure name="cachedMetaData">
- <list-property name="resultSet">
- <structure>
- <property name="position">1</property>
- <property name="name">consimg</property>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- </structure>
- <property name="dataSource">Data Source</property>
- </script-data-set>
- </data-sets>
- <styles>
- <style name="crosstab" id="4">
- <property name="borderBottomColor">#CCCCCC</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">1pt</property>
- <property name="borderLeftColor">#CCCCCC</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">1pt</property>
- <property name="borderRightColor">#CCCCCC</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">1pt</property>
- <property name="borderTopColor">#CCCCCC</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">1pt</property>
- </style>
- <style name="crosstab-cell" id="5">
- <property name="borderBottomColor">#CCCCCC</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">1pt</property>
- <property name="borderLeftColor">#CCCCCC</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">1pt</property>
- <property name="borderRightColor">#CCCCCC</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">1pt</property>
- <property name="borderTopColor">#CCCCCC</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">1pt</property>
- </style>
- </styles>
- <page-setup>
- <simple-master-page name="Simple MasterPage" id="2">
- <property name="topMargin">1in</property>
- <property name="leftMargin">1.25in</property>
- <property name="bottomMargin">1in</property>
- <property name="rightMargin">1.25in</property>
- <page-header>
- <grid id="233">
- <property name="width">100%</property>
- <column id="234">
- <property name="width">4.041666666666667in</property>
- </column>
- <column id="235"/>
- <row id="236">
- <cell id="237">
- <property name="textAlign">left</property>
- <property name="verticalAlign">bottom</property>
- <label id="241">
- <property name="backgroundColor">white</property>
- <property name="fontSize">26px</property>
- <property name="fontWeight">bold</property>
- <text-property name="text">Chemical Liability Predictions</text-property>
- </label>
- </cell>
- <cell id="238">
- <property name="textAlign">center</property>
- <image id="239">
- <property name="height">45px</property>
- <property name="width">82px</property>
- <property name="source">file</property>
- <expression name="uri">"Bioclipse-logo-300.png"</expression>
- </image>
- <label id="240">
- <property name="color">#000085</property>
- <text-property name="text">Bioclipse Decision Support</text-property>
- </label>
- </cell>
- </row>
- <row id="267">
- <cell id="268">
- <property name="backgroundColor">#807A7D</property>
- <property name="textAlign">left</property>
- <property name="verticalAlign">bottom</property>
- </cell>
- <cell id="269">
- <property name="backgroundColor">#807A7D</property>
- <property name="textAlign">center</property>
- </cell>
- </row>
- </grid>
- </page-header>
- <page-footer>
- <text id="3">
- <property name="contentType">html</property>
- <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
- </text>
- </page-footer>
- </simple-master-page>
- </page-setup>
- <body>
- <label id="164">
- <property name="fontSize">x-large</property>
- </label>
- <label id="163">
- <property name="fontWeight">normal</property>
- <property name="fontStyle">italic</property>
- <text-property name="text">Query compound</text-property>
- </label>
- <image id="123">
- <property name="borderBottomColor">#C0C0C0</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">thin</property>
- <property name="borderLeftColor">#C0C0C0</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">thin</property>
- <property name="borderRightColor">#C0C0C0</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">thin</property>
- <property name="borderTopColor">#C0C0C0</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">thin</property>
- <property name="dataSet">MainStructureDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">structure</property>
- <expression name="expression">dataSetRow["structure"]</expression>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="name">consensus</property>
- <expression name="expression">dataSetRow["consensus"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <property name="source">expr</property>
- <expression name="valueExpr">row["structure"]</expression>
- </image>
- <grid id="242">
- <property name="height">1.4444444444444444in</property>
- <property name="width">6in</property>
- <column id="243">
- <property name="width">4.486111111111111in</property>
- </column>
- <column id="244">
- <property name="width">1.3888888888888888in</property>
- </column>
- <row id="245">
- <cell id="246"/>
- <cell id="247">
- <property name="verticalAlign">bottom</property>
- <label id="259">
- <property name="textAlign">center</property>
- <text-property name="text">Consensus</text-property>
- </label>
- </cell>
- </row>
- <row id="254">
- <cell id="255">
- <grid id="124">
- <property name="height">1.0138888888888888in</property>
- <property name="width">4.513888888888889in</property>
- <column id="125">
- <property name="width">2.0416666666666665in</property>
- <property name="verticalAlign">top</property>
- </column>
- <column id="126">
- <property name="width">2.4722222222222223in</property>
- </column>
- <row id="128">
- <cell id="129">
- <label id="147">
- <text-property name="text">SMILES</text-property>
- </label>
- </cell>
- <cell id="130">
- <data id="142">
- <property name="fontSize">xx-small</property>
- <property name="dataSet">DSQueryDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">SMILES</property>
- <text-property name="displayName">SMILES</text-property>
- <expression name="expression">dataSetRow["SMILES"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <property name="resultSetColumn">SMILES</property>
- </data>
- </cell>
- </row>
- <row id="132">
- <cell id="133">
- <label id="148">
- <text-property name="text">Compound Name</text-property>
- </label>
- </cell>
- <cell id="134">
- <data id="140">
- <property name="dataSet">DSQueryDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">compoundName</property>
- <text-property name="displayName">compoundName</text-property>
- <expression name="expression">dataSetRow["compoundName"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <property name="resultSetColumn">compoundName</property>
- </data>
- </cell>
- </row>
- <row id="136">
- <cell id="137">
- <label id="149">
- <text-property name="text">Molecular Weight</text-property>
- </label>
- </cell>
- <cell id="138">
- <data id="141">
- <property name="dataSet">DSQueryDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">mw</property>
- <text-property name="displayName">mw</text-property>
- <expression name="expression">dataSetRow["mw"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <property name="resultSetColumn">mw</property>
- </data>
- </cell>
- </row>
- </grid>
- </cell>
- <cell id="256">
- <property name="borderBottomColor">#000000</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">medium</property>
- <property name="borderLeftColor">#000000</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">medium</property>
- <property name="borderRightColor">#000000</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">medium</property>
- <property name="borderTopColor">#000000</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">medium</property>
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <image id="266">
- <property name="dataSet">ConsImgDS</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">consimg</property>
- <expression name="expression">dataSetRow["consimg"]</expression>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- <property name="source">expr</property>
- <expression name="valueExpr">row["consimg"]</expression>
- </image>
- <data id="264">
- <property name="dataSet">MinStructureDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">consensus</property>
- <text-property name="displayName">consensus</text-property>
- <expression name="expression">dataSetRow["consensus"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">consimg</property>
- <expression name="expression">dataSetRow["consimg"]</expression>
- <property name="dataType">blob</property>
- </structure>
- </list-property>
- <property name="resultSetColumn">consensus</property>
- </data>
- </cell>
- </row>
- </grid>
- <label id="165"/>
- <label id="40">
- <property name="backgroundColor">#CCDBFF</property>
- <text-property name="text">Ames Test Exact Match</text-property>
- </label>
- <table id="9">
- <property name="width">100%</property>
- <property name="dataSet">DBExactMatchDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">Structure</property>
- <expression name="expression">dataSetRow["structure"]</expression>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="name">name</property>
- <expression name="expression">dataSetRow["name"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">classification</property>
- <text-property name="displayName">classification</text-property>
- <expression name="expression">dataSetRow["classification"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <column id="19">
- <property name="width">2.4027777777777777in</property>
- </column>
- <column id="20">
- <property name="verticalAlign">middle</property>
- </column>
- <column id="154">
- <property name="verticalAlign">middle</property>
- </column>
- <header>
- <row id="10">
- <cell id="11">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- </cell>
- <cell id="12">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <label id="21">
- <property name="textAlign">left</property>
- <text-property name="text">Name</text-property>
- </label>
- </cell>
- <cell id="151">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <label id="155">
- <property name="textAlign">left</property>
- <text-property name="text">Classification</text-property>
- </label>
- </cell>
- </row>
- </header>
- <detail>
- <row id="13">
- <cell id="14">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <image id="23">
- <property name="source">expr</property>
- <expression name="valueExpr">row["Structure"]</expression>
- </image>
- </cell>
- <cell id="15">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <data id="22">
- <property name="textAlign">left</property>
- <property name="resultSetColumn">name</property>
- </data>
- </cell>
- <cell id="152">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- <data id="156">
- <property name="textAlign">left</property>
- <property name="resultSetColumn">classification</property>
- </data>
- </cell>
- </row>
- </detail>
- <footer>
- <row id="16">
- <cell id="17">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- </cell>
- <cell id="18">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- </cell>
- <cell id="153">
- <property name="textAlign">center</property>
- <property name="verticalAlign">middle</property>
- </cell>
- </row>
- </footer>
- </table>
- <label id="92">
- <property name="backgroundColor">#CCDBFF</property>
- <text-property name="text">Ames Test Nearest Neighbors</text-property>
- </label>
- <table id="73">
- <property name="width">100%</property>
- <property name="dataSet">BDNearestDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">structure</property>
- <expression name="expression">dataSetRow["structure"]</expression>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="name">name</property>
- <expression name="expression">dataSetRow["name"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">tanimoto</property>
- <expression name="expression">dataSetRow["tanimoto"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">classification</property>
- <text-property name="displayName">classification</text-property>
- <expression name="expression">dataSetRow["classification"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <column id="89">
- <property name="width">2.388888888888889in</property>
- </column>
- <column id="90">
- <property name="verticalAlign">middle</property>
- </column>
- <column id="91">
- <property name="verticalAlign">middle</property>
- </column>
- <column id="160">
- <property name="verticalAlign">middle</property>
- </column>
- <header>
- <row id="74">
- <cell id="75">
- <property name="textAlign">center</property>
- </cell>
- <cell id="76">
- <property name="textAlign">center</property>
- <label id="94">
- <text-property name="text">Name</text-property>
- </label>
- </cell>
- <cell id="78">
- <property name="textAlign">center</property>
- <label id="96">
- <text-property name="text">Tanimoto</text-property>
- </label>
- </cell>
- <cell id="157">
- <property name="textAlign">center</property>
- <label id="161">
- <text-property name="text">Classification</text-property>
- </label>
- </cell>
- </row>
- </header>
- <detail>
- <row id="79">
- <cell id="80">
- <property name="textAlign">center</property>
- <image id="81">
- <property name="source">expr</property>
- <expression name="valueExpr">row["structure"]</expression>
- </image>
- </cell>
- <cell id="82">
- <property name="textAlign">center</property>
- <data id="95">
- <property name="resultSetColumn">name</property>
- </data>
- </cell>
- <cell id="84">
- <property name="textAlign">center</property>
- <data id="97">
- <property name="resultSetColumn">tanimoto</property>
- </data>
- </cell>
- <cell id="158">
- <property name="textAlign">center</property>
- <data id="162">
- <property name="resultSetColumn">classification</property>
- </data>
- </cell>
- </row>
- </detail>
- <footer>
- <row id="85">
- <cell id="86">
- <property name="textAlign">center</property>
- </cell>
- <cell id="87">
- <property name="textAlign">center</property>
- </cell>
- <cell id="88">
- <property name="textAlign">center</property>
- </cell>
- <cell id="159">
- <property name="textAlign">center</property>
- </cell>
- </row>
- </footer>
- </table>
- <label id="166">
- <property name="backgroundColor">#CCDBFF</property>
- <text-property name="text">Toxicophore matches (substructural alerts)</text-property>
- </label>
- <table id="167">
- <property name="width">100%</property>
- <property name="dataSet">SmartsMatchesDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">structure</property>
- <expression name="expression">dataSetRow["structure"]</expression>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="name">name</property>
- <expression name="expression">dataSetRow["name"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">classification</property>
- <expression name="expression">dataSetRow["classification"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">smarts</property>
- <expression name="expression">dataSetRow["smarts"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <column id="190">
- <property name="width">2.388888888888889in</property>
- </column>
- <column id="191">
- <property name="verticalAlign">middle</property>
- </column>
- <column id="193">
- <property name="verticalAlign">middle</property>
- </column>
- <header>
- <row id="168">
- <cell id="169">
- <property name="textAlign">center</property>
- </cell>
- <cell id="170">
- <property name="textAlign">center</property>
- <label id="171">
- <text-property name="text">Name</text-property>
- </label>
- </cell>
- <cell id="174">
- <property name="textAlign">center</property>
- <label id="175">
- <text-property name="text">Classification</text-property>
- </label>
- </cell>
- </row>
- </header>
- <detail>
- <row id="176">
- <cell id="177">
- <property name="textAlign">center</property>
- <image id="178">
- <property name="source">expr</property>
- <expression name="valueExpr">row["structure"]</expression>
- </image>
- </cell>
- <cell id="179">
- <property name="textAlign">center</property>
- <data id="180">
- <property name="resultSetColumn">name</property>
- </data>
- </cell>
- <cell id="183">
- <property name="textAlign">center</property>
- <data id="184">
- <property name="resultSetColumn">classification</property>
- </data>
- </cell>
- </row>
- </detail>
- <footer>
- <row id="185">
- <cell id="186">
- <property name="textAlign">center</property>
- </cell>
- <cell id="187">
- <property name="textAlign">center</property>
- </cell>
- <cell id="189">
- <property name="textAlign">center</property>
- </cell>
- </row>
- </footer>
- </table>
- <label id="195">
- <property name="backgroundColor">#CCDBFF</property>
- <text-property name="text">QSAR Substructure Significance prediction</text-property>
- </label>
- <table id="196">
- <property name="width">100%</property>
- <property name="dataSet">SignSigDataset</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">structure</property>
- <expression name="expression">dataSetRow["structure"]</expression>
- <property name="dataType">blob</property>
- </structure>
- <structure>
- <property name="name">name</property>
- <expression name="expression">dataSetRow["name"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">classification</property>
- <expression name="expression">dataSetRow["classification"]</expression>
- <property name="dataType">string</property>
- </structure>
- </list-property>
- <column id="219">
- <property name="width">2.388888888888889in</property>
- </column>
- <column id="220">
- <property name="verticalAlign">middle</property>
- </column>
- <column id="222">
- <property name="verticalAlign">middle</property>
- </column>
- <header>
- <row id="197">
- <cell id="198">
- <property name="textAlign">center</property>
- </cell>
- <cell id="199">
- <property name="textAlign">center</property>
- <label id="200">
- <text-property name="text">Name</text-property>
- </label>
- </cell>
- <cell id="203">
- <property name="textAlign">center</property>
- <label id="204">
- <text-property name="text">Classification</text-property>
- </label>
- </cell>
- </row>
- </header>
- <detail>
- <row id="205">
- <cell id="206">
- <property name="textAlign">center</property>
- <image id="207">
- <property name="source">expr</property>
- <expression name="valueExpr">row["structure"]</expression>
- </image>
- </cell>
- <cell id="208">
- <property name="textAlign">center</property>
- <data id="209">
- <property name="resultSetColumn">name</property>
- </data>
- </cell>
- <cell id="212">
- <property name="textAlign">center</property>
- <data id="213">
- <property name="resultSetColumn">classification</property>
- </data>
- </cell>
- </row>
- </detail>
- <footer>
- <row id="214">
- <cell id="215">
- <property name="textAlign">center</property>
- </cell>
- <cell id="216">
- <property name="textAlign">center</property>
- </cell>
- <cell id="218">
- <property name="textAlign">center</property>
- </cell>
- </row>
- </footer>
- </table>
- </body>
-</report>
View
46 plugins/net.bioclipse.ds.birt/reports/empty.rptdesign
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17" id="1">
- <property name="units">in</property>
- <property name="iconFile">/templates/blank_report.gif</property>
- <property name="bidiLayoutOrientation">ltr</property>
- <styles>
- <style name="crosstab" id="4">
- <property name="borderBottomColor">#CCCCCC</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">1pt</property>
- <property name="borderLeftColor">#CCCCCC</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">1pt</property>
- <property name="borderRightColor">#CCCCCC</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">1pt</property>
- <property name="borderTopColor">#CCCCCC</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">1pt</property>
- </style>
- <style name="crosstab-cell" id="5">
- <property name="borderBottomColor">#CCCCCC</property>
- <property name="borderBottomStyle">solid</property>
- <property name="borderBottomWidth">1pt</property>
- <property name="borderLeftColor">#CCCCCC</property>
- <property name="borderLeftStyle">solid</property>
- <property name="borderLeftWidth">1pt</property>
- <property name="borderRightColor">#CCCCCC</property>
- <property name="borderRightStyle">solid</property>
- <property name="borderRightWidth">1pt</property>
- <property name="borderTopColor">#CCCCCC</property>
- <property name="borderTopStyle">solid</property>
- <property name="borderTopWidth">1pt</property>
- </style>
- </styles>
- <page-setup>
- <simple-master-page name="Simple MasterPage" id="2">
- <page-footer>
- <text id="3">
- <property name="contentType">html</property>
- <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
- </text>
- </page-footer>
- </simple-master-page>
- </page-setup>
-</report>
View
64 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/Activator.java
@@ -1,64 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt;
-
-import org.apache.log4j.Logger;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- private static final Logger logger = Logger.getLogger(Activator.class);
-
- // The plug-in ID
- public static final String PLUGIN_ID = "net.bioclipse.ds.birt";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
-
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
View
34 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/MyAppContext.java
@@ -1,34 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt;
-import java.util.Map;
-
-
-import net.bioclipse.ds.birt.editors.WrappedBrowserEditor;
-
-import org.eclipse.birt.report.viewer.api.AppContextExtension;
-public class MyAppContext extends AppContextExtension{
-
- @Override
- public Map getAppContext(Map appContext) {
-
- Map hm = super.getAppContext(appContext);
- hm.put("PARENT_CLASSLOADER", WrappedBrowserEditor.class.getClassLoader());
- return hm;
-
- }
-
- @Override
- public String getName() {
- return "MyAppContext";
- }
-
- }
View
16 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/SingleReportTester.java
@@ -1,16 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt;
-
-
-public class SingleReportTester {
-
-}
View
174 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/Startup.java
@@ -1,174 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.birt.core.framework.Platform;
-import org.eclipse.birt.report.engine.api.EngineConfig;
-import org.eclipse.birt.report.engine.api.EngineConstants;
-import org.eclipse.birt.report.engine.api.EngineException;
-import org.eclipse.birt.report.engine.api.HTMLRenderContext;
-import org.eclipse.birt.report.engine.api.HTMLRenderOption;
-import org.eclipse.birt.report.engine.api.IRenderOption;
-import org.eclipse.birt.report.engine.api.IReportEngine;
-import org.eclipse.birt.report.engine.api.IReportEngineFactory;
-import org.eclipse.birt.report.engine.api.IReportRunnable;
-import org.eclipse.birt.report.engine.api.IRunAndRenderTask;
-import org.eclipse.birt.report.model.api.ElementFactory;
-import org.eclipse.birt.report.model.api.ReportDesignHandle;
-import org.eclipse.birt.report.viewer.ViewerPlugin;
-import org.eclipse.birt.report.viewer.utilities.WebViewer;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IStartup;
-import org.eclipse.ui.IViewReference;
-import org.eclipse.ui.PlatformUI;
-import org.osgi.framework.Bundle;
-
-
-public class Startup implements IStartup {
-
- Browser browser;
-
- public void earlyStartup() {
-
- Display.getDefault().syncExec( new Runnable(){
-
- public void run() {
- final Shell shell = new Shell(Display.getDefault());
- browser=new Browser(shell, SWT.NONE);
- }} );
-
-
-
-
- //Start up a background job for starting BIRT
- Job loadBirtJob=new Job("Starting BIRT engine"){
-
-// protected IStatus run2(IProgressMonitor monitor) {
-// monitor.beginTask( "Starting BIRT ", 3 );
-// monitor.worked( 1 );
-//
-// WebViewer.startup();
-//
-// EngineConfig config = new EngineConfig();
-// IReportEngineFactory factory = (IReportEngineFactory) org.eclipse.birt.core.framework.Platform
-// .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
-// IReportEngine engine = factory.createReportEngine( config );
-//
-// Bundle bundle = org.eclipse.core.runtime.Platform.getBundle(
-// Activator.PLUGIN_ID);
-// URL url = FileLocator.find(bundle,
-// new Path("/reports/ds-single.rptdesign"), null);
-// String rpt;
-// try {
-// rpt = FileLocator.toFileURL(url).getPath();
-// IReportRunnable design = engine.openReportDesign(rpt);
-//
-// //================================================
-// ReportDesignHandle designHandle = design.getDesignHandle().getDesignHandle();
-// ElementFactory elementFactory = designHandle.getElementFactory( );
-//
-// // Create task to run the report - use the task to execute and run
-// // the report,
-// IRunAndRenderTask task = engine.createRunAndRenderTask(design);
-//
-//
-// HTMLRenderContext renderContext = new HTMLRenderContext();
-// Map contextMap = new HashMap();
-// contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
-// renderContext);
-// task.setAppContext(contextMap);
-//
-// IRenderOption options = new HTMLRenderOption();
-// ByteArrayOutputStream stream = new ByteArrayOutputStream();
-// options.setOutputStream(stream);
-// options.setOutputFormat("html");
-//
-// task.setRenderOption(options);
-// task.run();
-// task.close();
-//
-//
-// } catch ( IOException e ) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch ( EngineException e ) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-//
-//
-// return Status.OK_STATUS;
-// }
-
- @Override
- protected IStatus run( IProgressMonitor monitor ) {
-
- monitor.beginTask( "Initializing DS reporting", 3 );
- monitor.worked( 1 );
-
- WebViewer.startup();
-
- Bundle bundle = org.eclipse.core.runtime.Platform.getBundle(
- Activator.PLUGIN_ID);
- URL url = FileLocator.find(bundle,
- new Path("/reports/empty.rptdesign"), null);
- final String rpt;
- try {
- rpt = FileLocator.toFileURL(url).getPath();
-
- //Do new viewer
- ViewerPlugin.getDefault( ).getPluginPreferences( ).setValue("APPCONTEXT_EXTENSION_KEY", "MyAppContext");
-
- final HashMap myparms = new HashMap();
- myparms.put("SERVLET_NAME_KEY", "frameset");
- myparms.put("FORMAT_KEY", "html");
-
- monitor.worked( 1 );
-
- Display.getDefault().syncExec( new Runnable(){
-
- public void run() {
-// WebViewer.display(rpt, browser, myparms);
- }} );
-
-
- } catch ( IOException e ) {
- e.printStackTrace();
- }
-
- monitor.done();
- return Status.OK_STATUS;
- }
-
- };
- loadBirtJob.setUser( false );
- loadBirtJob.schedule();
-
-
- }
-
-}
View
294 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/editors/WrappedBrowserEditor.java
@@ -1,294 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt.editors;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-
-import net.bioclipse.ds.birt.Activator;
-import net.bioclipse.ds.ui.IDSViewNoCloseEditor;
-
-import org.eclipse.birt.report.engine.api.EngineConfig;
-import org.eclipse.birt.report.engine.api.EngineConstants;
-import org.eclipse.birt.report.engine.api.HTMLRenderContext;
-import org.eclipse.birt.report.engine.api.HTMLRenderOption;
-import org.eclipse.birt.report.engine.api.IRenderOption;
-import org.eclipse.birt.report.engine.api.IReportEngine;
-import org.eclipse.birt.report.engine.api.IReportEngineFactory;
-import org.eclipse.birt.report.engine.api.IReportRunnable;
-import org.eclipse.birt.report.engine.api.IRunAndRenderTask;
-import org.eclipse.birt.report.viewer.ViewerPlugin;
-import org.eclipse.birt.report.viewer.utilities.WebViewer;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.part.EditorPart;
-import org.osgi.framework.Bundle;
-
-
-public class WrappedBrowserEditor extends EditorPart implements IDSViewNoCloseEditor{
-
- private Browser browser;
-
-
-
- @Override
- public void createPartControl( Composite parent ) {
-
- GridLayout layout = new GridLayout();
- parent.setLayout(layout);
-
- browser = new Browser(parent, SWT.NONE);
-
- System.setProperty( "RUN_UNDER_ECLIPSE", "true" );
- WebViewer.startup(browser);
-
- //Use the contributed context
- // ViewerPlugin.getDefault( ).getPluginPreferences( ).setValue("APPCONTEXT_EXTENSION_KEY", "QSARAppContext");
-
-
-
- // browser.setUrl( "http://www.dn.se" );
- GridData gd=new GridData(GridData.FILL_BOTH);
- browser.setLayoutData(gd);
-
-
- }
-
- public void openFile(String file){
-
- // WebViewer.display(getReportFile(), WebViewer.HTML, "frameset");
- // WebViewer.display(getReportFile(), WebViewer.HTML, browser, "run");
-
-
-
- WebViewer.display(file, WebViewer.HTML, browser, "run");
-
- }
-
-
- public void openZone(String reportfile){
-
-
- try{
-
- Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);
-
-
-
- URL url = FileLocator.find(bundle, new Path("/bin/net/bioclipse/ds/birt/handlers"), null);
- url = FileLocator.resolve(url);
- String classPath = url.getFile();
-// System.setProperty(EngineConstants.PROJECT_CLASSPATH_KEY, classPath);
-// System.setProperty(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, classPath);
-// System.setProperty(EngineConstants.WEBAPP_CLASSPATH_KEY, classPath);
-
-
- EngineConfig config = new EngineConfig();
- config.getAppContext( ).put(
- EngineConstants.APPCONTEXT_CLASSLOADER_KEY,WrappedBrowserEditor.class.getClassLoader() );
- config.getAppContext( ).put(
- "PARENT_CLASSLOADER",WrappedBrowserEditor.class.getClassLoader() );
-
- IReportEngineFactory factory = (IReportEngineFactory)
- org.eclipse.birt.core.framework.Platform.createFactoryObject
- (IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
- IReportEngine engine = factory.createReportEngine(config);
-
- URL designUrl = FileLocator.find(bundle, new Path("/designs/eQsar.rptdesign"),
- null);
- designUrl = FileLocator.resolve(designUrl);
- String file = designUrl.getFile();
- IReportRunnable design = engine.openReportDesign(file);
- IRunAndRenderTask task = engine.createRunAndRenderTask(design);
-
- HTMLRenderContext renderContext = new HTMLRenderContext();
- Map contextMap = new HashMap();
- contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
- renderContext);
- task.setAppContext(contextMap);
-
- IRenderOption options = new HTMLRenderOption();
- ByteArrayOutputStream stream = new ByteArrayOutputStream();
- options.setOutputStream(stream);
- options.setOutputFormat("html");
-
- task.setRenderOption(options);
- task.run();
- task.close();
-
- browser.setText(stream.toString());
- engine.destroy();
-
- }catch (Exception e){
- e.printStackTrace();
- }
-
- }
-
-
-
-
- public void useScriptedDS(){
-
-
- URL url;
- String jarpath="";
- String designpath ="";
-
- try {
- url = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID)
- .getEntry("DSEventHandlers.jar"));
- jarpath = url.getFile();
- url = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID)
- .getEntry("ds-single.rptdesign"));
- designpath = url.getFile();
- } catch ( IOException e1 ) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
-
-// System.out.println("Jar path: " + jarpath);
-// System.out.println("Design path: " + designpath);
-
- EngineConfig config = new EngineConfig();
-
- try{
-
- //use this to set the resource path
- //Bundle bundle = org.eclipse.core.runtime.Platform.getBundle("org.eclipse.birt.examples.rcpengine");
- //URL url = FileLocator.find(bundle, new Path("/resources"), null);
- //String myresourcepath = FileLocator.toFileURL(url).getPath();
- //config.setResourcePath(myresourcepath);
-
- // Create the report engine
- IReportEngineFactory factory = (IReportEngineFactory) org.eclipse.birt.core.framework.Platform
- .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
- IReportEngine engine = factory.createReportEngine( config );
-
- IReportRunnable design = null;
-
-
- //use this if the report is in the bundle
- //Bundle bundle = org.eclipse.core.runtime.Platform.getBundle("org.eclipse.birt.examples.rcpengine");
- //URL url = FileLocator.find(bundle, new Path("/reports/TopNPercent.rptdesign"), null);
- //String rpt = FileLocator.toFileURL(url).getPath();
-
- //add to the classpath
- config.getAppContext().put(EngineConstants.WEBAPP_CLASSPATH_KEY, jarpath);
- config.getAppContext( ).put(
- EngineConstants.APPCONTEXT_CLASSLOADER_KEY,WrappedBrowserEditor.class.getClassLoader() );
- design = engine.openReportDesign(designpath);
-
- IRunAndRenderTask task = engine.createRunAndRenderTask(design);
-
- HTMLRenderOption options = new HTMLRenderOption();
-
- options = new HTMLRenderOption( );
- ByteArrayOutputStream bos = new ByteArrayOutputStream();
- options.setOutputStream(bos);
- options.setOutputFormat("html");
-
- task.setRenderOption(options);
-// task.setParameterValue( "model", "WEE" );
- task.run();
- task.close();
-
- browser.setText(bos.toString());
-// System.out.println("finished");
- //engine.destroy();
- } catch (Exception e) {
- e.printStackTrace();
-
- }
-
-
- }
-
-
- public void openNewViewer() throws IOException{
-
-
- Bundle bundle = org.eclipse.core.runtime.Platform.getBundle(
- Activator.PLUGIN_ID);
- URL url = FileLocator.find(bundle,
- new Path("/reports/ds-single.rptdesign"), null);
- String rpt = FileLocator.toFileURL(url).getPath();
-
-
-// System.out.println("Jar path: " + jarpath);
-// System.out.println("Design path: " + rpt);
-
-
- //Do new viewer
- ViewerPlugin.getDefault( ).getPluginPreferences( ).setValue("APPCONTEXT_EXTENSION_KEY", "MyAppContext");
-
- HashMap myparms = new HashMap();
- myparms.put("SERVLET_NAME_KEY", "frameset");
-// myparms.put("SERVLET_NAME_KEY", "run");
- myparms.put("FORMAT_KEY", "html");
- //myparms.put("RESOURCE_FOLDER_KEY", "c:/myresources");
- //myparms.put("ALLOW_PAGE", false);
- //myparms.put("MAX_ROWS_KEY", "500");
- WebViewer.display(rpt, browser, myparms);
-
-
-
- }
-
-
- /*
- * UNUSED BELOW
- */
-
- @Override
- public void doSave( IProgressMonitor monitor ) {
- }
-
- @Override
- public void doSaveAs() {
- }
-
- @Override
- public void init( IEditorSite site, IEditorInput input )
- throws PartInitException {
- setSite( site );
- setInput( input );
-
- }
-
- @Override
- public void setFocus() {
- }
-
- @Override
- public boolean isDirty() {
- return false;
- }
-
- @Override
- public boolean isSaveAsAllowed() {
- return false;
- }
-
-}
View
195 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/ReportHandler.java
@@ -1,195 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt.handlers;
-
-import java.io.IOException;
-import java.util.HashMap;
-
-import net.bioclipse.ds.birt.editors.WrappedBrowserEditor;
-import net.bioclipse.ds.birt.util.StringInput;
-import net.bioclipse.ds.birt.util.StringStorage;
-import net.bioclipse.ds.report.DSSingleReportModel;
-import net.bioclipse.ds.ui.views.DSView;
-
-import org.eclipse.birt.core.framework.Platform;
-import org.eclipse.birt.report.engine.api.EngineConfig;
-import org.eclipse.birt.report.engine.api.EngineConstants;
-import org.eclipse.birt.report.engine.api.HTMLRenderContext;
-import org.eclipse.birt.report.engine.api.HTMLRenderOption;
-import org.eclipse.birt.report.engine.api.IRenderOption;
-import org.eclipse.birt.report.engine.api.IReportEngine;
-import org.eclipse.birt.report.engine.api.IReportEngineFactory;
-import org.eclipse.birt.report.engine.api.IReportRunnable;
-import org.eclipse.birt.report.engine.api.IRunAndRenderTask;
-import org.eclipse.birt.report.model.api.ElementFactory;
-import org.eclipse.birt.report.model.api.ReportDesignHandle;
-import org.eclipse.birt.report.viewer.utilities.WebViewer;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IStorage;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.browser.IWebBrowser;
-import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
-
-/**
- * A handler to handle Report invocation
- * @author ola
- *
- */
-public class ReportHandler extends AbstractHandler{
-
- public Object execute( ExecutionEvent event ) throws ExecutionException {
-
-
-
- System.out.println("REPOOOOOOORT!");
-
- IWorkbenchPage page = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow()
- .getActivePage();
-
- DSSingleReportModel testmodel = DSView.getInstance().waitAndReturnReportModel();
- if (testmodel==null){
- showError( "Please run some tests before creating a report.");
- return null;
- }
-
- IEditorInput input = createEditorInput();
-
- try {
- IEditorPart part = page.openEditor( input ,"net.bioclipse.ds.birt.editor" );
- if ( part instanceof WrappedBrowserEditor ) {
- WrappedBrowserEditor editor = (WrappedBrowserEditor) part;
-// editor.openFile( "/Users/ola/Workspaces/workspaceBIRT/ola/eQsar.rptdesign" );
-// editor.openZone( "" );
-// editor.useScriptedDS();
- try {
- editor.openNewViewer();
- } catch ( IOException e ) {
- e.printStackTrace();
- }
- }
-
-
- } catch ( PartInitException e ) {
- e.printStackTrace();
- }
-
-
- return null;
- }
-
- private IEditorInput createEditorInput() {
- IStorage storage = new StringStorage("REPORT");
- IEditorInput input = new StringInput(storage);
- return input;
- }
-
-
- @Deprecated
- public static void openScriptedReportInBrowser( ) {
- try {
-
- String reportFile = "/Users/ola/Workspaces/workspaceBIRT/ola/eQsar.rptdesign";
-
- System.setProperty( "RUN_UNDER_ECLIPSE", "true" );
-
- EngineConfig config = new EngineConfig();
- HashMap hm = config.getAppContext();
- hm.put( EngineConstants.APPCONTEXT_CLASSLOADER_KEY, Platform.getContextClassLoader());
- hm.put( EngineConstants.WEBAPP_CLASSPATH_KEY, Platform.getContextClassLoader());
- hm.put("PARENT_CLASSLOADER", Platform.getContextClassLoader());
- // hm.put("APPCONTEXT_EXTENSION_KEY", "QSARAppContext");
- config.setAppContext(hm);
-
- // Create the report engine
- IReportEngineFactory factory = (IReportEngineFactory) Platform
- .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
- IReportEngine engine = factory.createReportEngine( config );
-
- // Open an existing report design
- IReportRunnable design = engine.openReportDesign(reportFile);
-
- //================================================
- ReportDesignHandle designHandle = design.getDesignHandle().getDesignHandle();
- ElementFactory elementFactory = designHandle.getElementFactory( );
-
- // Create task to run the report - use the task to execute and run
- // the report,
- IRunAndRenderTask task = engine.createRunAndRenderTask(design);
-
- // Set Render context to handle url and image locataions
-
- HTMLRenderContext renderContext = new HTMLRenderContext();
- renderContext.setImageDirectory("image");
- HashMap contextMap = new HashMap();
- contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
- renderContext);
- task.setAppContext(contextMap);
-
- // Set rendering options - such as file or stream output,
- // output format, whether it is embeddable, etc
- IRenderOption options = new HTMLRenderOption();
- options.setOutputFileName("/tmp/reportWEEeQSAR2.html");
- options.setOutputFormat("html");
- task.setRenderOption(options);
-
- // run the report and destroy the engine
- task.run();
-
- engine.destroy();
- } catch (Exception ex) {
- System.out.println(ex);
- }
-
- }
-
- @Deprecated
- public static void openWebViewer() {
-
-
- IWorkbenchBrowserSupport support =
- PlatformUI.getWorkbench().getBrowserSupport();
- try
- {
- IWebBrowser browser = support.createBrowser("birt.browser");
- // browser.openURL(new URL("https://www.google.com"));
- } catch (Exception e) {
- e.printStackTrace();
- return;
- }
-
-
- //Use the contributed context
-// ViewerPlugin.getDefault( ).getPluginPreferences( ).setValue("APPCONTEXT_EXTENSION_KEY", "QSARAppContext");
-
- String reportFile = "/Users/ola/Workspaces/workspaceBIRT/ola/eQsar.rptdesign";
- System.setProperty( "RUN_UNDER_ECLIPSE", "true" );
- WebViewer.display(reportFile, WebViewer.HTML, "frameset");
-
- }
-
- private void showError(String message) {
- MessageDialog.openError(
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "Decision support",
- message);
- }
-
-}
-
-
View
100 ...s/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/AbstractReportModel.java
@@ -1,100 +0,0 @@
-package net.bioclipse.ds.birt.handlers.model;
-
-import net.bioclipse.ds.report.AbstractTestReportModel;
-import net.bioclipse.ds.report.DSRow;
-import net.bioclipse.ds.ui.views.DSView;
-
-import org.eclipse.birt.report.engine.api.script.IUpdatableDataSetRow;
-import org.eclipse.birt.report.engine.api.script.eventadapter.ScriptedDataSetEventAdapter;
-import org.eclipse.birt.report.engine.api.script.instance.IDataSetInstance;
-
-/**
- * An abstract base class that reads and populates Birt dataset rows
- * from a local ReportModel extracted from DSView on open.
- * @author ola
- *
- */
-public abstract class AbstractReportModel extends ScriptedDataSetEventAdapter {
-
- public int record;
- AbstractTestReportModel testmodel;
-
- public AbstractReportModel() {
- super();
- }
-
- public int getRecord() {
- return record;
- }
-
- public void setRecord( int record ) {
- this.record = record;
- }
-
- public AbstractTestReportModel getTestmodel() {
- return testmodel;
- }
-
- public void setTestmodel( AbstractTestReportModel testmodel ) {
- this.testmodel = testmodel;
- }
-
- /**
- * Wait for DSView to complete running and get the reportmodel for
- * the subclassing test from there.
- */
- @Override
- public void open( IDataSetInstance dataSet ) {
-
- testmodel=DSView.getInstance().waitAndReturnReportModel()
- .getTestModel( getTestID() );
-
- if (testmodel==null){
- System.out.println("Report model is null for test: " + getTestID());
- return;
- }
-
- record=0;
- }
-
- /**
- * Populate the row with data from the DSRow from teh reportmodel
- */
- @Override
- public boolean fetch(IDataSetInstance dataSet, IUpdatableDataSetRow row) {
-
- if (getTestmodel()==null)
- return false;
-
- try {
-
- if (getTestmodel().existsRow(record)){
- DSRow thisrow = getTestmodel().getRows().get(record);
-
- //If we have a structure, set it
- if (thisrow.getStructureData()!=null){
- row.setColumnValue("structure", thisrow.getStructureData());
- }
-
- //Set all parameters
- for (String param : thisrow.getParameters().keySet()){
- row.setColumnValue(param, thisrow.getParameter(param));
- }
- setRecord( getRecord() + 1 );
- return true;
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- return false;
- }
-
- /**
- * Subclasses must provide a ID for the test
- * @return
- */
- protected abstract String getTestID();
-
-
-}
View
58 plugins/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/ConsImgHandler.java
@@ -1,58 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt.handlers.model;
-
-
-import net.bioclipse.ds.report.DSSingleReportModel;
-import net.bioclipse.ds.ui.views.DSView;
-
-import org.eclipse.birt.report.engine.api.script.IUpdatableDataSetRow;
-import org.eclipse.birt.report.engine.api.script.ScriptException;
-import org.eclipse.birt.report.engine.api.script.eventadapter.ScriptedDataSetEventAdapter;
-import org.eclipse.birt.report.engine.api.script.instance.IDataSetInstance;
-
-public class ConsImgHandler extends ScriptedDataSetEventAdapter{
-
- DSSingleReportModel testmodel;
- boolean isParsed;
-
- @Override
- public boolean fetch(IDataSetInstance dataSet, IUpdatableDataSetRow row) {
-
- if (!isParsed){
-
- try {
- row.setColumnValue("consimg", testmodel.getConsensusImage());
- } catch ( ScriptException e ) {
- e.printStackTrace();
- }
- isParsed=true;
- return true;
- }
- return false;
- }
-
- @Override
- public void open(IDataSetInstance dataSet) {
-
- testmodel=DSView.getInstance().waitAndReturnReportModel();
-
- if (testmodel==null){
- System.out.println("REPORT MODEL IS NULL");
- return;
- }
- isParsed=false;
- }
-
-
-
-
-}
View
25 ...s/net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/DBExactMatchHandler.java
@@ -1,25 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt.handlers.model;
-
-/**
- *
- * @author ola
- *
- */
-public class DBExactMatchHandler extends AbstractReportModel{
-
- @Override
- protected String getTestID() {
- return "bursi.sdflookup.exact";
- }
-
-}
View
24 ...net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/DBNearestMatchHandler.java
@@ -1,24 +0,0 @@
-/* *****************************************************************************
- * Copyright (c) 2009 Ola Spjuth.
- * 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:
- * Ola Spjuth - initial API and implementation
- ******************************************************************************/
-package net.bioclipse.ds.birt.handlers.model;
-
-/**
- *
- * @author ola
- *
- */
-public class DBNearestMatchHandler extends AbstractReportModel{
-
- @Override
- protected String getTestID() {
- return "bursi.sdflookup.nearest";
- }
-}
View
58 .../net.bioclipse.ds.birt/src/net/bioclipse/ds/birt/handlers/model/MainStructureHandler.java
@@ -1,58 +0,0 @@