You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(14) |
Mar
(107) |
Apr
(211) |
May
(93) |
Jun
(158) |
Jul
(159) |
Aug
(368) |
Sep
(188) |
Oct
(151) |
Nov
(115) |
Dec
(98) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(25) |
Feb
|
Mar
(33) |
Apr
(28) |
May
(116) |
Jun
(2) |
Jul
(117) |
Aug
(19) |
Sep
(9) |
Oct
(2) |
Nov
|
Dec
(4) |
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(9) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(267) |
Sep
|
Oct
|
Nov
(6) |
Dec
(512) |
| 2008 |
Jan
(187) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <tr...@us...> - 2003-09-17 22:13:32
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/rmi
In directory sc8-pr-cvs1:/tmp/cvs-serv31604/modules/scanner/src/com/babeldoc/scanner/rmi
Modified Files:
IRemoteScanner.java
Log Message:
javadoc updates
Index: IRemoteScanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/rmi/IRemoteScanner.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** IRemoteScanner.java 14 Aug 2003 02:34:21 -0000 1.5
--- IRemoteScanner.java 17 Sep 2003 22:13:20 -0000 1.6
***************
*** 78,85 ****
/**
! * TODO: DOCUMENT ME!
*
! * @author $author$
! * @version $Revision$
*/
public interface IRemoteScanner extends Remote {
--- 78,85 ----
/**
! * RMI remote interface to the scanner
*
! * @author bmcdonald
! * @version 1.1
*/
public interface IRemoteScanner extends Remote {
|
|
From: <tr...@us...> - 2003-09-17 22:13:31
|
Update of /cvsroot/babeldoc/babeldoc/readme
In directory sc8-pr-cvs1:/tmp/cvs-serv31604/readme
Modified Files:
devguide.xml userguide.xml
Log Message:
javadoc updates
Index: devguide.xml
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/readme/devguide.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** devguide.xml 29 Aug 2003 02:02:58 -0000 1.4
--- devguide.xml 17 Sep 2003 22:13:21 -0000 1.5
***************
*** 2,9 ****
<!DOCTYPE stylesheet [
! <!ENTITY chapter1 SYSTEM "readme/devguide/chapter1.xml">
! <!ENTITY chapter2 SYSTEM "readme/devguide/chapter2.xml">
! <!ENTITY chapter3 SYSTEM "readme/devguide/chapter3.xml">
! <!ENTITY chapter4 SYSTEM "readme/devguide/chapter4.xml">
]>
--- 2,9 ----
<!DOCTYPE stylesheet [
! <!ENTITY chapter1 SYSTEM "${system.get('babeldoc.home')}/readme/devguide/chapter1.xml">
! <!ENTITY chapter2 SYSTEM "${system.get('babeldoc.home')}/readme/devguide/chapter2.xml">
! <!ENTITY chapter3 SYSTEM "${system.get('babeldoc.home')}/readme/devguide/chapter3.xml">
! <!ENTITY chapter4 SYSTEM "${system.get('babeldoc.home')}/readme/devguide/chapter4.xml">
]>
Index: userguide.xml
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/readme/userguide.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** userguide.xml 8 Aug 2003 23:43:11 -0000 1.4
--- userguide.xml 17 Sep 2003 22:13:21 -0000 1.5
***************
*** 1,15 ****
<?xml version="1.0" encoding="ISO-8859-1"?>
! <!DOCTYPE stylesheet [
! <!ENTITY chapter1 SYSTEM "readme/userguide/chapter1.xml">
! <!ENTITY chapter2 SYSTEM "readme/userguide/chapter2.xml">
! <!ENTITY chapter3 SYSTEM "readme/userguide/chapter3.xml">
! <!ENTITY chapter4 SYSTEM "readme/userguide/chapter4.xml">
! <!ENTITY chapter5 SYSTEM "readme/userguide/chapter5.xml">
! <!ENTITY chapter6 SYSTEM "readme/userguide/chapter6.xml">
! <!ENTITY appendix1 SYSTEM "readme/userguide/appendix1.xml">
! <!ENTITY pipelinestages SYSTEM "pipelinestages.xml">
! <!ENTITY scanners SYSTEM "scanners.xml">
! <!ENTITY processors SYSTEM "processors.xml">
]>
--- 1,15 ----
<?xml version="1.0" encoding="ISO-8859-1"?>
! <!DOCTYPE stylesheet [
! <!ENTITY chapter1 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter1.xml">
! <!ENTITY chapter2 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter2.xml">
! <!ENTITY chapter3 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter3.xml">
! <!ENTITY chapter4 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter4.xml">
! <!ENTITY chapter5 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter5.xml">
! <!ENTITY chapter6 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/chapter6.xml">
! <!ENTITY appendix1 SYSTEM "${system.get('babeldoc.home')}/readme/userguide/appendix1.xml">
! <!ENTITY pipelinestages SYSTEM "${system.get('babeldoc.home')}/readme/userguide/pipelinestages.xml">
! <!ENTITY processors SYSTEM "${system.get('babeldoc.home')}/readme/userguide/processors.xml">
! <!ENTITY scanners SYSTEM "${system.get('babeldoc.home')}/readme/userguide/scanners.xml">
]>
***************
*** 33,42 ****
<para>If you are using <productname>Babeldoc</productname>, please participate in the development of Babeldoc. This can include just sending a hello, posting bug reports to actually contributing code. We want to hear from you. <ulink url="http://sourceforge.net/forum/forum.php?forum_id=190908"><citetitle>Babeldoc forums</citetitle>. </ulink>. There is a mailing list that will be very useful for technical users of <productname>Babeldoc</productname> hosted on sourceforge called babeldoc-devel. Please join for the latest news.</para>
</preface>
! &chapter1;
! &chapter2;
! &chapter3;
! &chapter4;
! &chapter5;
! &chapter6;
! &appendix1;
</book>
--- 33,44 ----
<para>If you are using <productname>Babeldoc</productname>, please participate in the development of Babeldoc. This can include just sending a hello, posting bug reports to actually contributing code. We want to hear from you. <ulink url="http://sourceforge.net/forum/forum.php?forum_id=190908"><citetitle>Babeldoc forums</citetitle>. </ulink>. There is a mailing list that will be very useful for technical users of <productname>Babeldoc</productname> hosted on sourceforge called babeldoc-devel. Please join for the latest news.</para>
</preface>
!
! &chapter1;
! &chapter2;
! &chapter3;
! &chapter4;
! &chapter5;
! &chapter6;
! &appendix1;
!
</book>
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv28811/scanner/src/com/babeldoc/scanner
Modified Files:
ScannerFactory.java ScannerFactoryTest.java
ScannerWorkerScheduler.java ScannerWorkerStatus.java
ScannerWorkerTest.java
Log Message:
more documentation work
Index: ScannerFactory.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerFactory.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ScannerFactory.java 14 Aug 2003 02:34:20 -0000 1.10
--- ScannerFactory.java 17 Sep 2003 21:58:58 -0000 1.11
***************
*** 197,205 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param workerConfig DOCUMENT ME!
*
! * @return DOCUMENT ME!
*
* @throws ScannerConfigurationException DOCUMENT ME!
--- 197,205 ----
/**
! * Configure a worker
*
! * @param workerConfig configuration data
*
! * @return scanner worker all configured
*
* @throws ScannerConfigurationException DOCUMENT ME!
Index: ScannerFactoryTest.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerFactoryTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ScannerFactoryTest.java 6 Aug 2003 12:09:58 -0000 1.4
--- ScannerFactoryTest.java 17 Sep 2003 21:58:58 -0000 1.5
***************
*** 91,95 ****
/**
! * TODO: DOCUMENT ME!
*/
public void setUp() {
--- 91,95 ----
/**
! * setup test
*/
public void setUp() {
***************
*** 99,103 ****
/**
! * TODO: DOCUMENT ME!
*
* @throws Exception DOCUMENT ME!
--- 99,103 ----
/**
! * test configure worker
*
* @throws Exception DOCUMENT ME!
***************
*** 108,112 ****
/**
! * TODO: DOCUMENT ME!
*/
public void testFactoryNull() {
--- 108,112 ----
/**
! * test factory
*/
public void testFactoryNull() {
***************
*** 115,119 ****
/**
! * TODO: DOCUMENT ME!
*/
public void testScannerWorkers() {
--- 115,119 ----
/**
! * test scanner workers
*/
public void testScannerWorkers() {
Index: ScannerWorkerScheduler.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerWorkerScheduler.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** ScannerWorkerScheduler.java 14 Aug 2003 02:34:20 -0000 1.12
--- ScannerWorkerScheduler.java 17 Sep 2003 21:58:58 -0000 1.13
***************
*** 84,92 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param worker DOCUMENT ME!
*
! * @throws ScannerException DOCUMENT ME!
*/
public void startWorker(ScannerWorker worker) throws ScannerException {
--- 84,92 ----
/**
! * Start this worker
*
! * @param worker the scanner worker to start
*
! * @throws ScannerException scanner related exceptions
*/
public void startWorker(ScannerWorker worker) throws ScannerException {
Index: ScannerWorkerStatus.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerWorkerStatus.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ScannerWorkerStatus.java 27 Jun 2003 14:00:13 -0000 1.5
--- ScannerWorkerStatus.java 17 Sep 2003 21:58:58 -0000 1.6
***************
*** 96,104 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param obj DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public boolean equals(Object obj) {
--- 96,104 ----
/**
! * equals operator
*
! * @param obj compare this to this
*
! * @return boolean equality
*/
public boolean equals(Object obj) {
***************
*** 111,115 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 111,115 ----
/**
! * get the worker status
*
* @return DOCUMENT ME!
Index: ScannerWorkerTest.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/ScannerWorkerTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ScannerWorkerTest.java 14 Aug 2003 02:34:20 -0000 1.6
--- ScannerWorkerTest.java 17 Sep 2003 21:58:58 -0000 1.7
***************
*** 89,93 ****
/**
! * TODO: DOCUMENT ME!
*/
public void testIsCronScheduleType() {
--- 89,93 ----
/**
! * test cron schedule
*/
public void testIsCronScheduleType() {
|
|
From: <tr...@us...> - 2003-09-17 21:12:08
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/scanner/src/com/babeldoc/scanner/worker
Modified Files:
ExternalApplicationScanner.java SqlScanner.java
Log Message:
more documentation updates
Index: ExternalApplicationScanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/ExternalApplicationScanner.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ExternalApplicationScanner.java 5 Sep 2003 13:28:29 -0000 1.6
--- ExternalApplicationScanner.java 17 Sep 2003 21:11:57 -0000 1.7
***************
*** 167,173 ****
class ExternalApplicationScannerInfo extends ScannerWorkerInfo {
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getDescription() {
--- 167,171 ----
class ExternalApplicationScannerInfo extends ScannerWorkerInfo {
/**
! * @return get the descriptiong
*/
public String getDescription() {
***************
*** 176,182 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getName() {
--- 174,178 ----
/**
! * @return get the name
*/
public String getName() {
Index: SqlScanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/SqlScanner.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** SqlScanner.java 12 Sep 2003 01:09:17 -0000 1.12
--- SqlScanner.java 17 Sep 2003 21:11:58 -0000 1.13
***************
*** 331,335 ****
/**
! * TODO: DOCUMENT ME!
*
* @author $author$
--- 331,335 ----
/**
! * Get the sql scanner info
*
* @author $author$
***************
*** 338,344 ****
class SqlScannerInfo extends ScannerWorkerInfo {
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getDescription() {
--- 338,342 ----
class SqlScannerInfo extends ScannerWorkerInfo {
/**
! * @return get the description
*/
public String getDescription() {
***************
*** 347,353 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getName() {
--- 345,349 ----
/**
! * @return get the name
*/
public String getName() {
***************
*** 356,362 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public Collection getTypeSpecificOptions() {
--- 352,356 ----
/**
! * @return get the type specific options
*/
public Collection getTypeSpecificOptions() {
|
|
From: <tr...@us...> - 2003-09-17 21:12:08
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/setup
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/wizard/setup
Modified Files:
IntroWizardPanel.java RootDirectoryWizardPanel.java
Log Message:
more documentation updates
Index: IntroWizardPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/setup/IntroWizardPanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IntroWizardPanel.java 11 Jun 2003 23:35:39 -0000 1.2
--- IntroWizardPanel.java 17 Sep 2003 21:11:57 -0000 1.3
***************
*** 111,115 ****
/**
! * TODO: DOCUMENT ME!
*/
protected void setupRightPanel() {
--- 111,115 ----
/**
! * Setup the right panel of wizard dialog
*/
protected void setupRightPanel() {
Index: RootDirectoryWizardPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/setup/RootDirectoryWizardPanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RootDirectoryWizardPanel.java 11 Jun 2003 23:35:39 -0000 1.2
--- RootDirectoryWizardPanel.java 17 Sep 2003 21:11:57 -0000 1.3
***************
*** 100,104 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 100,104 ----
/**
! * Get the directory path
*
* @return DOCUMENT ME!
|
|
From: <tr...@us...> - 2003-09-17 21:12:08
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/scanner/src/com/babeldoc/scanner
Modified Files:
Scanner.java
Log Message:
more documentation updates
Index: Scanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/Scanner.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Scanner.java 5 Sep 2003 13:28:29 -0000 1.28
--- Scanner.java 17 Sep 2003 21:11:57 -0000 1.29
***************
*** 109,115 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param commandLine DOCUMENT ME!
*/
public void execute(CommandLine commandLine) {
--- 109,115 ----
/**
! * Handle the scanner command line
*
! * @param commandLine
*/
public void execute(CommandLine commandLine) {
|
|
From: <tr...@us...> - 2003-09-17 21:12:07
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/addstage
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/wizard/addstage
Modified Files:
GetStageConfigWizardPanel.java
Log Message:
more documentation updates
Index: GetStageConfigWizardPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/addstage/GetStageConfigWizardPanel.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** GetStageConfigWizardPanel.java 13 Sep 2003 15:33:11 -0000 1.5
--- GetStageConfigWizardPanel.java 17 Sep 2003 21:11:57 -0000 1.6
***************
*** 93,99 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public ConfigOptionPanel getConfigPanel() {
--- 93,97 ----
/**
! * @return get the configuration option panel
*/
public ConfigOptionPanel getConfigPanel() {
|
|
From: <tr...@us...> - 2003-09-17 21:12:07
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/setentrystage
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/wizard/setentrystage
Modified Files:
SetEntryStageController.java
Log Message:
more documentation updates
Index: SetEntryStageController.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/setentrystage/SetEntryStageController.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SetEntryStageController.java 11 Jun 2003 23:35:39 -0000 1.2
--- SetEntryStageController.java 17 Sep 2003 21:11:57 -0000 1.3
***************
*** 90,96 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param model DOCUMENT ME!
*/
public void setModel(SetEntryStageModel model) {
--- 90,96 ----
/**
! * Set the model
*
! * @param model
*/
public void setModel(SetEntryStageModel model) {
|
|
From: <tr...@us...> - 2003-09-17 21:12:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/addconfig
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/wizard/addconfig
Modified Files:
AddConfigController.java
Log Message:
more documentation updates
Index: AddConfigController.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/addconfig/AddConfigController.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AddConfigController.java 13 Sep 2003 15:33:11 -0000 1.1
--- AddConfigController.java 17 Sep 2003 21:11:57 -0000 1.2
***************
*** 89,95 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param model DOCUMENT ME!
*/
public void setModel(AddConfigModel model) {
--- 89,95 ----
/**
! * Set the model object
*
! * @param model object
*/
public void setModel(AddConfigModel model) {
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/config
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/config
Modified Files:
ComplexConfigOptionComponent.java
ConfigOptionComponentFactory.java
ConfigOptionListenerBase.java
Log Message:
more documentation updates
Index: ComplexConfigOptionComponent.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/config/ComplexConfigOptionComponent.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ComplexConfigOptionComponent.java 16 Sep 2003 05:19:02 -0000 1.7
--- ComplexConfigOptionComponent.java 17 Sep 2003 21:11:56 -0000 1.8
***************
*** 66,412 ****
package com.babeldoc.gui.config;
- import com.babeldoc.core.option.ComplexConfigOptionType;
import com.babeldoc.core.option.ConfigOption;
- import com.babeldoc.core.option.IConfigOptionType;
- import com.babeldoc.core.option.MutableConfigValueException;
- import java.awt.*;
import java.awt.event.ActionEvent;
- import java.awt.event.MouseAdapter;
- import java.awt.event.MouseEvent;
-
- import java.util.Iterator;
- import java.util.Map;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
- import javax.swing.tree.DefaultTreeModel;
- import javax.swing.tree.MutableTreeNode;
- import javax.swing.tree.TreePath;
-
-
- /**
- * Handle the gui for complex components
- *
- * @author bmcdonald
- * @version 1.1
- */
- public class ComplexConfigOptionComponent extends ConfigOptionComponent {
- private DefaultMutableTreeNode rootNode;
- private DefaultTreeModel treeModel;
- private JTree tree;
-
- /**
- * Construct the configration option.
- *
- * @param option
- */
- public ComplexConfigOptionComponent(ConfigOption option) {
- super(option);
- }
-
- /**
- * Get the data as a map. This is used to write the data to the config
- * files.
- *
- * @return
- */
- public Map getConfigurationData() {
- return null;
- }
-
- /**
- * Get the currently selected node.
- *
- * @return
- */
- public DefaultMutableTreeNode getCurrentlySelectedNode() {
- DefaultMutableTreeNode parentNode = null;
- TreePath parentPath = tree.getSelectionPath();
-
- if (parentPath == null) {
- parentNode = rootNode;
- } else {
- parentNode = (DefaultMutableTreeNode) (parentPath.getLastPathComponent());
- }
-
- return parentNode;
- }
-
- /**
- * Set the focus
- */
- public void setFocus() {
- tree.requestFocus();
- }
-
- /**
- * Get the gui component that represents this complex configuration component
- *
- * @return
- */
- public JComponent getGuiComponent() {
- if (tree == null) {
- rootNode = new DefaultMutableTreeNode(getOption().getName());
- treeModel = new DefaultTreeModel(rootNode);
-
- tree = new JTree(treeModel);
- tree.setShowsRootHandles(false);
- tree.putClientProperty("JTree.lineStyle", "Angled");
- tree.setToolTipText(getOption().getDescription());
- tree.setPreferredSize(new Dimension(1000, 100));
- tree.setMinimumSize(new Dimension(50, 50));
- tree.addMouseListener(getMouseAdapterForTree());
-
- JScrollPane panel = new JScrollPane(tree);
- panel.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
- panel.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
- panel.setPreferredSize(new Dimension(1000, 100));
- panel.setMinimumSize(new Dimension(50, 50));
- }
-
- // return tree;
- return new JLabel("dummy");
- }
-
- /**
- * Get the validity of the current state of the configuration of this
- * component.
- *
- * @return
- */
- public boolean isValid() {
- return false;
- }
-
- /**
- * Add child to the currently selected node.
- *
- * @param child DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
- public DefaultMutableTreeNode addObject(Object child) {
- DefaultMutableTreeNode parentNode = getCurrentlySelectedNode();
-
- return addObject(parentNode, child, true);
- }
-
- /**
- * Add an object
- *
- * @param parent DOCUMENT ME!
- * @param child DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
- public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
- Object child) {
- return addObject(parent, child, false);
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @param parent DOCUMENT ME!
- * @param child DOCUMENT ME!
- * @param shouldBeVisible DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
- public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
- Object child, boolean shouldBeVisible) {
- DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child);
-
- if (parent == null) {
- parent = rootNode;
- }
-
- treeModel.insertNodeInto(childNode, parent, parent.getChildCount());
-
- // Make sure the user can see the lovely new node.
- if (shouldBeVisible) {
- tree.scrollPathToVisible(new TreePath(childNode.getPath()));
- }
-
- return childNode;
- }
-
- /**
- * Remove all nodes except the root node.
- */
- public void clear() {
- rootNode.removeAllChildren();
- treeModel.reload();
- }
-
- /**
- * TODO: DOCUMENT ME!
- */
- public void displayConfigValue() {
- }
-
- /**
- * Display the defaults for the configuration option
- */
- public void displayDefault() {
- displayDefault(rootNode, getOption());
- }
-
- /**
- * Nice recursive way to add options.
- *
- * @param parent
- * @param option
- */
- public void displayDefault(DefaultMutableTreeNode parent, ConfigOption option) {
- DefaultMutableTreeNode newParent = addObject(parent,
- new ComplexConfigTreeData(option));
-
- if (option.getSuboptionNames() != null) {
- for (Iterator i = option.getSuboptionNames().iterator(); i.hasNext();) {
- String name = (String) i.next();
- ConfigOption configOption = getOption().getSuboption(name);
-
- if ((configOption.getSuboptionNames() != null) &&
- (configOption.getSuboptionNames().size() > 0)) {
- displayDefault(newParent, configOption.getSuboption(name));
- }
- }
- }
- }
-
- /**
- * Remove the currently selected node.
- */
- public void removeCurrentNode() {
- TreePath currentSelection = tree.getSelectionPath();
-
- if (currentSelection != null) {
- DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode) (currentSelection.getLastPathComponent());
- MutableTreeNode parent = (MutableTreeNode) (currentNode.getParent());
-
- if (parent != null) {
- treeModel.removeNodeFromParent(currentNode);
-
- return;
- }
- }
-
- // Either there was no selection, or the root was selected.
- Toolkit.getDefaultToolkit().beep();
- }
-
- /**
- * Remove this node from the tree.
- *
- * @param node
- */
- public void removeNode(DefaultMutableTreeNode node) {
- MutableTreeNode parent = (MutableTreeNode) (node.getParent());
-
- if (parent != null) {
- treeModel.removeNodeFromParent(node);
-
- return;
- }
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
- private MouseAdapter getMouseAdapterForTree() {
- return new MouseAdapter() {
- public void mousePressed(MouseEvent e) {
- TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
- tree.setSelectionPath(selPath);
- maybeShowPopup(e);
- }
-
- public void mouseReleased(MouseEvent e) {
- maybeShowPopup(e);
- }
- };
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @param popup DOCUMENT ME!
- * @param node DOCUMENT ME!
- */
- private void addMenuItemsToPopup(JPopupMenu popup, DefaultMutableTreeNode node) {
- popup.add(new ComplexConfigAction("Add sub option...", node) {
- public void actionPerformed(ActionEvent e) {
- String config = null;
-
- do {
- config = JOptionPane.showInputDialog(tree,
- "Enter the name of the configuration suboption",
- "New configuration", JOptionPane.QUESTION_MESSAGE);
- } while ((config == null) || (config.length() == 0));
-
- IConfigOptionType dynComplexType = new ComplexConfigOptionType(new ConfigOption[] { new ConfigOption(
- config, IConfigOptionType.STRING, null, false,
- "Some description") });
- ConfigOption dynamic = new ConfigOption(config, dynComplexType, null,
- false, "Some description for dynamic stages");
-
- if (getActionOption() != null) {
- getActionOption().addSuboption(dynamic);
- } else {
- getOption().addSuboption(dynamic);
- }
-
- addObject(getNode(), new ComplexConfigTreeData(dynamic));
- }
- });
-
- if (!node.isRoot()) {
- popup.add(new ComplexConfigAction("Set option value", node) {
- public void actionPerformed(ActionEvent e) {
- String config = null;
-
- do {
- config = JOptionPane.showInputDialog(tree,
- "Enter the value for the configuration option",
- "New configuration", JOptionPane.QUESTION_MESSAGE);
- } while ((config == null) || (config.length() == 0));
-
- try {
- getActionOption().setValue(config);
- } catch (MutableConfigValueException e1) {
- e1.printStackTrace(); //To change body of catch statement use Options | File Templates.
- }
- tree.revalidate();
- }
- });
- popup.add(new ComplexConfigAction("Remove option", node) {
- public void actionPerformed(ActionEvent e) {
- int response = JOptionPane.showConfirmDialog(tree,
- "Are you sure you wish to remove this configuration option?",
- "Remove configuration", JOptionPane.YES_NO_OPTION);
-
- if (response == JOptionPane.YES_OPTION) {
- removeNode(getNode());
- getOption().removeSuboption(getActionOption().getName());
- }
- }
- });
- }
- }
-
- // Show the popup
- private void maybeShowPopup(MouseEvent e) {
- if (e.isPopupTrigger()) {
- DefaultMutableTreeNode node = getCurrentlySelectedNode();
- JPopupMenu popup = new JPopupMenu();
- addMenuItemsToPopup(popup, node);
- popup.show(tree, e.getX(), e.getY());
- }
- }
- }
--- 66,75 ----
***************
*** 428,432 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 91,95 ----
/**
! * Get option
*
* @return DOCUMENT ME!
***************
*** 437,441 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 100,104 ----
/**
! * Get the string
*
* @return DOCUMENT ME!
***************
*** 479,483 ****
/**
! * TODO: DOCUMENT ME!
*
* @param e DOCUMENT ME!
--- 142,146 ----
/**
! * action performed
*
* @param e DOCUMENT ME!
***************
*** 486,490 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 149,153 ----
/**
! * get the action option
*
* @return DOCUMENT ME!
***************
*** 495,499 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 158,162 ----
/**
! * Get the node
*
* @return DOCUMENT ME!
Index: ConfigOptionComponentFactory.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/config/ConfigOptionComponentFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ConfigOptionComponentFactory.java 13 Sep 2003 15:33:10 -0000 1.6
--- ConfigOptionComponentFactory.java 17 Sep 2003 21:11:56 -0000 1.7
***************
*** 98,103 ****
} else if (otype instanceof MultiLineConfigOptionType) {
return new MultiLineConfigOptionComponent(option);
- // } else if (otype instanceof ComplexConfigOptionType) {
- // return new ComplexConfigOptionComponent(option);
} else {
return new StringConfigOptionComponent(option);
--- 98,101 ----
Index: ConfigOptionListenerBase.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/config/ConfigOptionListenerBase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConfigOptionListenerBase.java 27 Jun 2003 00:14:55 -0000 1.1
--- ConfigOptionListenerBase.java 17 Sep 2003 21:11:56 -0000 1.2
***************
*** 92,96 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 92,96 ----
/**
! * get the component
*
* @return DOCUMENT ME!
***************
*** 101,105 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 101,105 ----
/**
! * get the option
*
* @return DOCUMENT ME!
|
|
From: <tr...@us...> - 2003-09-17 21:12:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/pipeline/builder
Modified Files:
BuilderAction.java EditPipelineStageConfigAction.java
PipelineBuilder.java PipelineBuilderController.java
SetEntryStageAction.java
Removed Files:
AddPipelineStageConfigAction.java
Log Message:
more documentation updates
Index: BuilderAction.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder/BuilderAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BuilderAction.java 26 Aug 2003 22:23:32 -0000 1.4
--- BuilderAction.java 17 Sep 2003 21:11:56 -0000 1.5
***************
*** 92,96 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 92,96 ----
/**
! * Get the pipeline panel - misnamed as getFrame
*
* @return DOCUMENT ME!
***************
*** 101,107 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public PipelineBuilderModel getModel() {
--- 101,105 ----
/**
! * @return get the model
*/
public PipelineBuilderModel getModel() {
Index: EditPipelineStageConfigAction.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder/EditPipelineStageConfigAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EditPipelineStageConfigAction.java 13 Sep 2003 15:33:11 -0000 1.1
--- EditPipelineStageConfigAction.java 17 Sep 2003 21:11:56 -0000 1.2
***************
*** 103,109 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param e DOCUMENT ME!
*/
public void actionPerformed(ActionEvent e) {
--- 103,109 ----
/**
! * Edit the pipeline stage configuration
*
! * @param e event that triggered this action
*/
public void actionPerformed(ActionEvent e) {
Index: PipelineBuilder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder/PipelineBuilder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PipelineBuilder.java 26 Aug 2003 22:23:32 -0000 1.3
--- PipelineBuilder.java 17 Sep 2003 21:11:56 -0000 1.4
***************
*** 155,159 ****
/**
! * TODO: DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 155,159 ----
/**
! * Get the model
*
* @return DOCUMENT ME!
Index: PipelineBuilderController.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder/PipelineBuilderController.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PipelineBuilderController.java 13 Sep 2003 15:33:11 -0000 1.6
--- PipelineBuilderController.java 17 Sep 2003 21:11:56 -0000 1.7
***************
*** 115,165 ****
}
- /**
- * method called when the add button on the pipeline panel has been called.
- *
- * @param e
- */
- public void pipelineAddPressed(ActionEvent e) {
- }
-
- /**
- * Called when the delete button on the pipeline panel has been called.
- *
- * @param e
- */
- public void pipelineDeletePressed(ActionEvent e) {
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @param e DOCUMENT ME!
- */
- public void pipelineStageAddPressed(ActionEvent e) {
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @param e DOCUMENT ME!
- */
- public void pipelineStageDeletePressed(ActionEvent e) {
- }
-
- /**
- * TODO: DOCUMENT ME!
- *
- * @param e DOCUMENT ME!
- */
- public void treeSelectionEvent(TreeSelectionEvent e) {
- }
}
/**
! * TODO: DOCUMENT ME!
*
- * @author $author$
- * @version $Revision$
*/
class PipelineTreeNode {
--- 115,124 ----
}
}
/**
! * A node in the pipeline node
*
*/
class PipelineTreeNode {
***************
*** 183,187 ****
/**
! * TODO: DOCUMENT ME!
*
* @param name DOCUMENT ME!
--- 142,146 ----
/**
! * make tree node as a configuration item
*
* @param name DOCUMENT ME!
***************
*** 194,200 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param name DOCUMENT ME!
*
* @return DOCUMENT ME!
--- 153,159 ----
/**
! * make tree node as a pipeline node
*
! * @param name pipeline name
*
* @return DOCUMENT ME!
***************
*** 205,213 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param name DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public static PipelineTreeNode stageNode(String name) {
--- 164,172 ----
/**
! * make tree node as a pipeline stage
*
! * @param name pipeline stage name
*
! * @return
*/
public static PipelineTreeNode stageNode(String name) {
***************
*** 216,222 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public boolean isConfig() {
--- 175,179 ----
/**
! * @return true if this pipeline tree node is a configuration item
*/
public boolean isConfig() {
***************
*** 225,231 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public boolean isPipeline() {
--- 182,186 ----
/**
! * @return true if this pipeline tree node is a pipeline item
*/
public boolean isPipeline() {
***************
*** 234,240 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public boolean isStage() {
--- 189,193 ----
/**
! * @return true if this pipeline tree node is a pipeline stage item
*/
public boolean isStage() {
***************
*** 243,249 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String toString() {
--- 196,200 ----
/**
! * @return the name of tree node (for displays)
*/
public String toString() {
Index: SetEntryStageAction.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/builder/SetEntryStageAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SetEntryStageAction.java 26 Aug 2003 22:23:32 -0000 1.3
--- SetEntryStageAction.java 17 Sep 2003 21:11:56 -0000 1.4
***************
*** 92,98 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param e DOCUMENT ME!
*/
public void actionPerformed(ActionEvent e) {
--- 92,98 ----
/**
! * Set the entry stage wizard
*
! * @param e event that triggered the action
*/
public void actionPerformed(ActionEvent e) {
--- AddPipelineStageConfigAction.java DELETED ---
|
|
From: <tr...@us...> - 2003-09-17 21:12:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/wizard
Modified Files:
WizardButtonPanel.java WizardModel.java
Log Message:
more documentation updates
Index: WizardButtonPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/WizardButtonPanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WizardButtonPanel.java 11 Jun 2003 23:35:38 -0000 1.2
--- WizardButtonPanel.java 17 Sep 2003 21:11:56 -0000 1.3
***************
*** 98,104 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public JButton getBack() {
--- 98,102 ----
/**
! * @return Get the back button
*/
public JButton getBack() {
***************
*** 107,113 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getBackStr() {
--- 105,109 ----
/**
! * @return get the back string
*/
public String getBackStr() {
***************
*** 116,122 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public JButton getCancel() {
--- 112,116 ----
/**
! * @return get the cancel button
*/
public JButton getCancel() {
***************
*** 125,131 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getCancelStr() {
--- 119,123 ----
/**
! * @return get the cancel string
*/
public String getCancelStr() {
***************
*** 134,140 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public JButton getFinish() {
--- 126,130 ----
/**
! * @return get the finish button
*/
public JButton getFinish() {
***************
*** 143,149 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getFinishStr() {
--- 133,137 ----
/**
! * @return get the finish string
*/
public String getFinishStr() {
***************
*** 152,158 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public JButton getNext() {
--- 140,144 ----
/**
! * @return get the next button
*/
public JButton getNext() {
***************
*** 161,167 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public String getNextStr() {
--- 147,151 ----
/**
! * @return get the next string
*/
public String getNextStr() {
***************
*** 182,188 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param listener DOCUMENT ME!
*/
protected void configureButtons(ActionListener listener) {
--- 166,172 ----
/**
! * configure the buttons
*
! * @param listener object to listen for events
*/
protected void configureButtons(ActionListener listener) {
***************
*** 201,205 ****
/**
! * TODO: DOCUMENT ME!
*/
protected void configureButtons() {
--- 185,189 ----
/**
! * configures all the buttons
*/
protected void configureButtons() {
***************
*** 212,216 ****
/**
! * TODO: DOCUMENT ME!
*/
protected void configureLayout() {
--- 196,200 ----
/**
! * set up the layout
*/
protected void configureLayout() {
Index: WizardModel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/wizard/WizardModel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WizardModel.java 11 Jun 2003 23:35:38 -0000 1.2
--- WizardModel.java 17 Sep 2003 21:11:57 -0000 1.3
***************
*** 74,80 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param finished DOCUMENT ME!
*/
public void setFinished(boolean finished) {
--- 74,80 ----
/**
! * Set finished
*
! * @param finished
*/
public void setFinished(boolean finished) {
***************
*** 83,89 ****
/**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
*/
public boolean isFinished() {
--- 83,87 ----
/**
! * @return true if this model is finished
*/
public boolean isFinished() {
|
|
From: <tr...@us...> - 2003-09-17 21:12:03
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/command
In directory sc8-pr-cvs1:/tmp/cvs-serv18673/gui/src/com/babeldoc/gui/pipeline/command
Modified Files:
SwingFeederPanel.java
Log Message:
more documentation updates
Index: SwingFeederPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/src/com/babeldoc/gui/pipeline/command/SwingFeederPanel.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SwingFeederPanel.java 1 Jul 2003 14:28:04 -0000 1.4
--- SwingFeederPanel.java 17 Sep 2003 21:11:56 -0000 1.5
***************
*** 180,184 ****
/**
! * TODO: DOCUMENT ME!
*
* @param evt DOCUMENT ME!
--- 180,184 ----
/**
! *
*
* @param evt DOCUMENT ME!
|
|
From: Bruce M. <br...@mc...> - 2003-09-17 18:06:27
|
Check out the soap module - there is everything you need to wrap babeldoc behind a webservice. On Wednesday 17 September 2003 01:55 pm, Wil...@co... wrote: > Thanks for the suggestions guys. > > Bruce's suggestions look closest to what I'm attempting to do. Using > programmatic means to pass a doc into babeldoc without saving it on disk. > Pass a string in (flat or XML), run a chain of processes and get a > transformed XML string back. At a higher level I'm trying to have an > integration engine wrapped in web services to do transforms, etc and a web > server to provide a GUI to this integration server (submitting docs, > viewing previous processing docs, etc). > > Assuming I don't decouple that functionality what I want to do is have a > jsp form pass the flat file for processing so there won't be an input file > on disk. (Not the other way around where babeldoc invokes an application). > If you can point me at the most relevant source code I can take it from > there. > > Thanks > > --------------------------------------------------- > Will Kriski, M.Sc, P.Eng. > DeltaEffects Inc. > (403) 850-7159 > http://www.deltaeffects.com > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <Wil...@co...> - 2003-09-17 17:55:29
|
Thanks for the suggestions guys. Bruce's suggestions look closest to what I'm attempting to do. Using programmatic means to pass a doc into babeldoc without saving it on disk. Pass a string in (flat or XML), run a chain of processes and get a transformed XML string back. At a higher level I'm trying to have an integration engine wrapped in web services to do transforms, etc and a web server to provide a GUI to this integration server (submitting docs, viewing previous processing docs, etc). Assuming I don't decouple that functionality what I want to do is have a jsp form pass the flat file for processing so there won't be an input file on disk. (Not the other way around where babeldoc invokes an application). If you can point me at the most relevant source code I can take it from there. Thanks --------------------------------------------------- Will Kriski, M.Sc, P.Eng. DeltaEffects Inc. (403) 850-7159 http://www.deltaeffects.com |
|
From: <tr...@us...> - 2003-09-17 17:13:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee In directory sc8-pr-cvs1:/tmp/cvs-serv31076/src/com/babeldoc/j2ee Added Files: JmsHelper.java Log Message: More work on the j2ee module - added message driven bean - missing configuration files. jms helper functions moved to new class. --- NEW FILE: JmsHelper.java --- /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header: /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee/JmsHelper.java,v 1.1 2003/09/17 17:07:15 triphop Exp $ * $DateTime$ * $Author: triphop $ * */ package com.babeldoc.j2ee; import com.babeldoc.core.pipeline.feeder.FeedDocument; import com.babeldoc.core.LogService; import javax.jms.Message; import javax.jms.JMSException; import javax.jms.TextMessage; import javax.jms.BytesMessage; import java.util.Map; import java.util.HashMap; import java.util.Enumeration; /** * Methods to help with jms processing * * @author bmcdonald * @version 1.1 */ public class JmsHelper { /** * Convert a jms message to a feed document, ready for feeding to babeldoc * * @param pipeline the name of the pipeline * @param m message to process * @return feed document ready for feeding * @throws JMSException */ public static FeedDocument getFeedDocument(String pipeline, Message m) throws JMSException { Map map = getMessageMap(m); byte[] data = null; boolean binary = false; if (m instanceof TextMessage) { data = ((TextMessage)m).getText().getBytes(); binary = false; } else if(m instanceof BytesMessage) { // Not implemented } return new FeedDocument(pipeline, data, map, binary, false); } /** * Get the message map off the message. * * @param m the message in question * @return message map * * @throws javax.jms.JMSException */ public static Map getMessageMap(Message m) throws JMSException { Map map = new HashMap(); for(Enumeration e = m.getPropertyNames(); e.hasMoreElements();) { String name = (String)e.nextElement(); String value = null; try { value = m.getStringProperty(name); } catch (JMSException e1) { LogService.getInstance().logError(e1); } map.put(name, value); } return map; } } |
|
From: <tr...@us...> - 2003-09-17 17:13:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/config/j2ee In directory sc8-pr-cvs1:/tmp/cvs-serv31076/config/j2ee Added Files: journal.properties messagedriven.properties pipelinestagefactory.properties Log Message: More work on the j2ee module - added message driven bean - missing configuration files. jms helper functions moved to new class. --- NEW FILE: journal.properties --- # # Configuration options for the ImpEjbPipelineStageFactory journal.JndiName=EjbJournal journal.useLocal=false --- NEW FILE: messagedriven.properties --- # # Configuration for the message driven been properties # Please override with your settings. feeder=sync pipeline=test --- NEW FILE: pipelinestagefactory.properties --- pipeline.JndiName=EjbPipelineStageFactory pipeline.useLocal=false |
|
From: <tr...@us...> - 2003-09-17 17:13:44
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee/scanner/worker
In directory sc8-pr-cvs1:/tmp/cvs-serv31076/src/com/babeldoc/j2ee/scanner/worker
Modified Files:
JmsScanner.java
Log Message:
More work on the j2ee module - added message driven bean - missing configuration files. jms helper functions moved to new class.
Index: JmsScanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee/scanner/worker/JmsScanner.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** JmsScanner.java 8 Sep 2003 22:28:06 -0000 1.2
--- JmsScanner.java 17 Sep 2003 17:07:15 -0000 1.3
***************
*** 67,70 ****
--- 67,71 ----
import com.babeldoc.core.LogService;
+ import com.babeldoc.core.pipeline.feeder.FeedDocument;
import com.babeldoc.core.option.ConfigOption;
import com.babeldoc.core.option.IConfigOptionType;
***************
*** 72,75 ****
--- 73,77 ----
import com.babeldoc.scanner.ScannerWorker;
import com.babeldoc.scanner.ScannerWorkerInfo;
+ import com.babeldoc.j2ee.JmsHelper;
import javax.jms.*;
***************
*** 179,234 ****
Message m = receiver.receive(1);
if (m != null) {
! handleMessage(m);
}
}
} catch (Exception e) {
! LogService.getInstance().logError("[doScan]", e);
} finally {
try {
receiver.close();
} catch (Exception e) {
! LogService.getInstance().logError("[doScan]", e);
! }
! }
! }
!
! /**
! * Only handles text messages at the moment.
! *
! * @param m
! * @throws JMSException
! */
! private void handleMessage(Message m)
! throws JMSException {
! Map map = handleMessageMap(m);
!
! if (m instanceof TextMessage) {
! enqueue(((TextMessage)m).getText().getBytes(), map);
! } else if(m instanceof BytesMessage) {
! // Not implemented
! }
! }
!
! /**
! * Get the message map off the message.
! *
! * @param m the message in question
! * @return message map
! *
! * @throws JMSException
! */
! private Map handleMessageMap(Message m) throws JMSException {
! Map map = new HashMap();
! for(Enumeration e = m.getPropertyNames(); e.hasMoreElements();) {
! String name = (String)e.nextElement();
! String value = null;
! try {
! value = m.getStringProperty(name);
! } catch (JMSException e1) {
! LogService.getInstance().logError(e1);
}
- map.put(name, value);
}
- return map;
}
}
--- 181,197 ----
Message m = receiver.receive(1);
if (m != null) {
! FeedDocument fdoc = JmsHelper.getFeedDocument("dummy", m);
! enqueue(fdoc.getData(), fdoc.getAttributes());
}
}
} catch (Exception e) {
! LogService.getInstance().logError(e);
} finally {
try {
receiver.close();
} catch (Exception e) {
! LogService.getInstance().logError(e);
}
}
}
}
|
|
From: <tr...@us...> - 2003-09-17 17:13:43
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee/pipeline In directory sc8-pr-cvs1:/tmp/cvs-serv31076/src/com/babeldoc/j2ee/pipeline Added Files: EjbMessageFeederBean.java Log Message: More work on the j2ee module - added message driven bean - missing configuration files. jms helper functions moved to new class. --- NEW FILE: EjbMessageFeederBean.java --- /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header: /cvsroot/babeldoc/babeldoc/modules/j2ee/src/com/babeldoc/j2ee/pipeline/EjbMessageFeederBean.java,v 1.1 2003/09/17 17:07:15 triphop Exp $ * $DateTime$ * $Author: triphop $ * */ package com.babeldoc.j2ee.pipeline; import com.babeldoc.core.pipeline.feeder.IFeeder; import com.babeldoc.core.pipeline.feeder.FeederFactory; import com.babeldoc.core.config.ConfigService; import com.babeldoc.core.GeneralException; import com.babeldoc.core.LogService; import com.babeldoc.core.option.IConfigData; import com.babeldoc.core.option.ConfigData; import com.babeldoc.j2ee.JmsHelper; import javax.ejb.MessageDrivenBean; import javax.ejb.EJBException; import javax.ejb.MessageDrivenContext; import javax.jms.MessageListener; import javax.jms.Message; import javax.jms.JMSException; /** * Simple message driven bean that submits pipeline documents. The processing of the * jms message are done in the jms helper class. * * @author bmcdonald * @version 1.1 * * @ejb.bean * name="QueueBean" * acknowledge-mode="Auto-acknowledge" * destination-type="javax.jms.Queue" * subscription-durability="NonDurable" * transaction-type="Bean" * * @jboss.destination-jndi-name * name="queue/pipelineQueue" */ public class EjbMessageFeederBean implements MessageDrivenBean, MessageListener{ /** context data */ private MessageDrivenContext context = null; /** feeder to accept messages */ private IFeeder feeder; /** name of the pipeline */ private String pipeline; /** configuration file */ public static final String CONFIG_FILE = "j2ee/messagedriven"; /** name of the feeder configuration option */ public static final String FEEDER = "feeder"; /** the default feeder to use if none is supplied */ public static final String DEFAULT_FEEDER = "sync"; /** the pipeline name to submit documents to */ public static final String PIPELINE = "pipeline"; /** * Required creation method for message-driven beans. * * @ejb.create-method */ public void ejbCreate() { // no specific action required for message-driven beans } /** * remove this ejb * * @throws EJBException */ public void ejbRemove() throws EJBException { } /** * Set the message driven context * * @param messageDrivenContext * @throws EJBException */ public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) throws EJBException { context = messageDrivenContext; } /** * Get the feeder for this MDB. If there is no feeder, get a reference to one * and then initialize it from the configuration * * @return feeder ready for use * @throws GeneralException */ public IFeeder getFeeder() throws GeneralException { if(feeder==null) { String feederName = ConfigService.getString(CONFIG_FILE, FEEDER); if(feederName==null) { feederName = DEFAULT_FEEDER; } feeder = FeederFactory.getInstance().getFeeder(feederName); if(feeder!=null) { feeder.initialize(getConfigData()); } } return feeder; } /** * Get the configuration data * * @return */ private IConfigData getConfigData() { return ConfigData.getConfigData("root", CONFIG_FILE); } /** * Get the pipeline name. Lazily initialize from the configuration * file * * @return */ public String getPipeline() { if(pipeline==null) { pipeline = ConfigService.getString(CONFIG_FILE, PIPELINE); } return pipeline; } /** * Actually do the processing in response to the reception of a JMS message * * @param message to process */ public void onMessage(Message message) { try { getFeeder().process(JmsHelper.getFeedDocument(getPipeline(), message)); } catch (GeneralException e) { LogService.getInstance().logError(e); } catch (JMSException e) { LogService.getInstance().logError(e); } } /** * @return get the assigned context */ public MessageDrivenContext getContext() { return context; } } |
|
From: <tr...@us...> - 2003-09-17 16:44:15
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/documentation
In directory sc8-pr-cvs1:/tmp/cvs-serv26238/config/pipeline/documentation
Modified Files:
documentation.properties
Log Message:
updated the documentation pipeline and some supporting code.
Index: documentation.properties
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/documentation/documentation.properties,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** documentation.properties 8 Sep 2003 23:43:27 -0000 1.6
--- documentation.properties 17 Sep 2003 16:44:12 -0000 1.7
***************
*** 1,4 ****
--- 1,10 ----
+ #
+ #
+ # Babeldoc documentation pipeline
+ #
entryStage=attrdefault
+ # Check for style attribute - if not present
+ # default it to html
attrdefault.stageType=Scripting
attrdefault.nextStage=callstages
***************
*** 7,10 ****
--- 13,17 ----
attrdefault.attrs.style=html
+ # Call stage to generate the pipeline stage xml
callstages.stageType=CallStage
callstages.callStage=documentation.stagexml
***************
*** 12,15 ****
--- 19,23 ----
callstages.nextStage=callscanners
+ # Call stage to generate the scanner xml
callscanners.stageType=CallStage
callscanners.callStage=documentation.scannerxml
***************
*** 17,20 ****
--- 25,29 ----
callscanners.nextStage=callprocessors
+ # Call stage to generate the processor xml
callprocessors.stageType=CallStage
callprocessors.callStage=documentation.processorxml
***************
*** 22,47 ****
callprocessors.nextStage=loaduserguide
loaduserguide.stageType=Reader
loaduserguide.nextStage=callgenerateug
loaduserguide.file=${system.get("babeldoc.home")}/readme/userguide.xml
callgenerateug.stageType=CallStage
! callgenerateug.callStage=documentation.choose
callgenerateug.discardResults=true
callgenerateug.nextStage=loaddevguide
loaddevguide.stageType=Reader
loaddevguide.nextStage=callgeneratedg
loaddevguide.file=${system.get("babeldoc.home")}/readme/devguide.xml
callgeneratedg.stageType=CallStage
! callgeneratedg.callStage=documentation.choose
callgeneratedg.discardResults=true
callgeneratedg.nextStage=null
choose.stageType=Router
choose.nextStage=transform
choose.nextStage.pdftransform=#if(${document.get("style").equalsIgnoreCase("pdf")})true#end
transform.stageType=XslTransform
transform.transformationFile=${system.get("babeldoc.home")}/readme/docbook-xsl/${document.get("style")}/docbook.xsl
--- 31,79 ----
callprocessors.nextStage=loaduserguide
+ # Read the userguide xml
loaduserguide.stageType=Reader
loaduserguide.nextStage=callgenerateug
loaduserguide.file=${system.get("babeldoc.home")}/readme/userguide.xml
+ # call into the main documentation pipeline
callgenerateug.stageType=CallStage
! callgenerateug.callStage=documentation.basename
callgenerateug.discardResults=true
callgenerateug.nextStage=loaddevguide
+ # read the developer guide xml
loaddevguide.stageType=Reader
loaddevguide.nextStage=callgeneratedg
loaddevguide.file=${system.get("babeldoc.home")}/readme/devguide.xml
+ # call into the main documentation pipeline
callgeneratedg.stageType=CallStage
! callgeneratedg.callStage=documentation.basename
callgeneratedg.discardResults=true
callgeneratedg.nextStage=null
+ # Make the final output name for the documentation (name minus .xml)
+ basename.stageType=Scripting
+ basename.language=javascript
+ basename.nextStage=templatize
+ basename.script=\
+ var infile = document.get("file_name");\
+ var lastxml = infile.lastIndexOf(".xml");\
+ var basefile = infile.substring(0, lastxml); \
+ document.put("base_file", basefile);
+
+ # Templatize using velocity - this makes the ${..} get resolved in
+ # the xml - primarily for resolving paths to the babeldoc_home, etc.
+ templatize.stageType=VelocityTemplatize
+ templatize.splitAttributes=true
+ templatize.nextStage=choose
+
+ # If this style is pdf (not currently working) then do xslfo formating
+ #
choose.stageType=Router
choose.nextStage=transform
choose.nextStage.pdftransform=#if(${document.get("style").equalsIgnoreCase("pdf")})true#end
+ # Transform the document
transform.stageType=XslTransform
transform.transformationFile=${system.get("babeldoc.home")}/readme/docbook-xsl/${document.get("style")}/docbook.xsl
***************
*** 58,64 ****
fotransform.bufferSize=2048
writer.stageType=FileWriter
writer.nextStage=null
! writer.outputFile=${document.get("file_name")}.${document.get("style")}
#
--- 90,97 ----
fotransform.bufferSize=2048
+ # Write the document to the file
writer.stageType=FileWriter
writer.nextStage=null
! writer.outputFile=${document.get("base_file")}.${document.get("style")}
#
|
|
From: <tr...@us...> - 2003-09-17 16:44:15
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage
In directory sc8-pr-cvs1:/tmp/cvs-serv26238/src/com/babeldoc/core/pipeline/stage
Modified Files:
VelocityTemplatizePipelineStage.java
Log Message:
updated the documentation pipeline and some supporting code.
Index: VelocityTemplatizePipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/VelocityTemplatizePipelineStage.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** VelocityTemplatizePipelineStage.java 27 Jun 2003 02:19:59 -0000 1.6
--- VelocityTemplatizePipelineStage.java 17 Sep 2003 16:44:12 -0000 1.7
***************
*** 68,73 ****
import com.babeldoc.core.I18n;
import com.babeldoc.core.journal.JournalException;
! import com.babeldoc.core.pipeline.PipelineStage;
! import com.babeldoc.core.pipeline.PipelineStageInfo;
import java.util.ArrayList;
--- 68,72 ----
import com.babeldoc.core.I18n;
import com.babeldoc.core.journal.JournalException;
! import com.babeldoc.core.pipeline.*;
import java.util.ArrayList;
***************
*** 110,118 ****
* @return array of results
*
! * @throws com.babeldoc.core.pipeline.PipelineException DOCUMENT ME!
*/
! public com.babeldoc.core.pipeline.PipelineStageResult[] process()
! throws com.babeldoc.core.pipeline.PipelineException {
! com.babeldoc.core.pipeline.PipelineDocument pdoc = this.getDocument();
String templatized = templatize(pdoc, this.getTicket(),
new String(pdoc.getBytes()));
--- 109,117 ----
* @return array of results
*
! * @throws PipelineException DOCUMENT ME!
*/
! public PipelineStageResult[] process()
! throws PipelineException {
! PipelineDocument pdoc = this.getDocument();
String templatized = templatize(pdoc, this.getTicket(),
new String(pdoc.getBytes()));
|
|
From: <tr...@us...> - 2003-09-17 16:43:37
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline
In directory sc8-pr-cvs1:/tmp/cvs-serv26113
Modified Files:
PipelineStage.java
Log Message:
extracted method 'splitAttributes' from the two processHelper methods that shared the identical code.
Index: PipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/PipelineStage.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** PipelineStage.java 16 Sep 2003 05:19:00 -0000 1.21
--- PipelineStage.java 17 Sep 2003 16:43:34 -0000 1.22
***************
*** 542,551 ****
/**
! * Do the hard work and then return each of the pipeline stage results. This really
! * is the heart of what each pipeline stage must do.
*
! * @return array of pipeline stage results.
*
! * @throws PipelineException for any processing issues
*/
public abstract PipelineStageResult[] process() throws PipelineException;
--- 542,552 ----
/**
! * Heart of the pipeline stage process - each actual pipeline stage
! * must provide implementation for this class to be concrete and,
! * indeed, to do useful work.
*
! * @return DOCUMENT ME!
*
! * @throws PipelineException DOCUMENT ME!
*/
public abstract PipelineStageResult[] process() throws PipelineException;
***************
*** 722,740 ****
new PipelineDocument(results[i].getBytes());
newDoc.setMimeType(mimeType);
! if ("true".equalsIgnoreCase(getOptions(SPLIT_ATTRIBUTES))) {
! // copy the attributes from the old document to the new document, minus NAME, MIME_TYPE, and DOM_KEY
! PipelineDocument oldDoc = getDocument();
! Set oldKeys = oldDoc.keys();
! for (Iterator j = oldKeys.iterator(); j.hasNext();) {
! String key = (String) j.next();
! if (!PipelineDocument.NAME.equals(key)
! && !PipelineDocument.MIME_TYPE.equals(key)
! && !DomifyPipelineStage.DOM_KEY.equals(key)) {
! Object value = oldDoc.get(key);
! newDoc.put(key, value);
! }
! }
! }
! psresults[i] = new PipelineStageResult(name, newDoc, newTicket);
}
--- 723,728 ----
new PipelineDocument(results[i].getBytes());
newDoc.setMimeType(mimeType);
! splitAttributes(newDoc);
! psresults[i] = new PipelineStageResult(name, newDoc, newTicket);
}
***************
*** 742,746 ****
}
! /**
* Another helper for the process methods. Convert a set of results into a
* an array of Pipeline Stage Result objects.
--- 730,756 ----
}
! /**
! * Copy the necessary attrbiutes from the old document to new document
! *
! * @param newDoc
! */
! private void splitAttributes(PipelineDocument newDoc) {
! if ("true".equalsIgnoreCase(getOptions(SPLIT_ATTRIBUTES))) {
! // copy the attributes from the old document to the new document, minus NAME, MIME_TYPE, and DOM_KEY
! PipelineDocument oldDoc = getDocument();
! Set oldKeys = oldDoc.keys();
! for (Iterator j = oldKeys.iterator(); j.hasNext();) {
! String key = (String) j.next();
! if (!PipelineDocument.NAME.equals(key)
! && !PipelineDocument.MIME_TYPE.equals(key)
! && !DomifyPipelineStage.DOM_KEY.equals(key)) {
! Object value = oldDoc.get(key);
! newDoc.put(key, value);
! }
! }
! }
! }
!
! /**
* Another helper for the process methods. Convert a set of results into a
* an array of Pipeline Stage Result objects.
***************
*** 765,782 ****
PipelineDocument newDoc =
new PipelineDocument(results[i].getBytes());
! if ("true".equalsIgnoreCase(getOptions(SPLIT_ATTRIBUTES))) {
! // copy the attributes from the old document to the new document, minus NAME, MIME_TYPE, and DOM_KEY
! PipelineDocument oldDoc = getDocument();
! Set oldKeys = oldDoc.keys();
! for (Iterator j = oldKeys.iterator(); j.hasNext();) {
! String key = (String) j.next();
! if (!PipelineDocument.NAME.equals(key)
! && !PipelineDocument.MIME_TYPE.equals(key)
! && !DomifyPipelineStage.DOM_KEY.equals(key)) {
! Object value = oldDoc.get(key);
! newDoc.put(key, value);
! }
! }
! }
psresults[i] = new PipelineStageResult(name, newDoc, newTicket);
}
--- 775,779 ----
PipelineDocument newDoc =
new PipelineDocument(results[i].getBytes());
! splitAttributes(newDoc);
psresults[i] = new PipelineStageResult(name, newDoc, newTicket);
}
***************
*** 835,841 ****
/**
* Get error handler defined specified for this stage. If no handler provided
! * or wrong class name set, then use default one.
! *
! * TODO: Should we throw Exception to indicate that configuration is wrong?
*
* @return
--- 832,837 ----
/**
* Get error handler defined specified for this stage. If no handler provided
! * or wrong class name set, then use default one. TODO: Should we throw
! * Exception to indicate that configuration is wrong?
*
* @return
|
|
From: <tr...@us...> - 2003-09-17 16:40:51
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv25560
Modified Files:
ResourceLoader.java
Log Message:
changed the classpath to searched first when getting resources. Did a little clean-up.
Index: ResourceLoader.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/ResourceLoader.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ResourceLoader.java 16 Sep 2003 05:19:00 -0000 1.8
--- ResourceLoader.java 17 Sep 2003 16:40:44 -0000 1.9
***************
*** 76,79 ****
--- 76,80 ----
import java.util.ArrayList;
import java.util.Iterator;
+ import java.util.List;
import java.util.jar.JarFile;
***************
*** 118,122 ****
*/
public static URL getFirstMatchingUrlInSearchPath(String name,
! ArrayList searchPath) {
URL[] urls = getN_MatchingUrlsInSearchPath(name, searchPath, 1);
--- 119,123 ----
*/
public static URL getFirstMatchingUrlInSearchPath(String name,
! List searchPath) {
URL[] urls = getN_MatchingUrlsInSearchPath(name, searchPath, 1);
***************
*** 137,141 ****
*/
public static URL[] getMatchingUrlsInSearchPath(String name,
! ArrayList searchPath) {
return getN_MatchingUrlsInSearchPath(name, searchPath, Integer.MAX_VALUE);
}
--- 138,142 ----
*/
public static URL[] getMatchingUrlsInSearchPath(String name,
! List searchPath) {
return getN_MatchingUrlsInSearchPath(name, searchPath, Integer.MAX_VALUE);
}
***************
*** 301,315 ****
/**
- * Simple tester
- *
- * @param args DOCUMENT ME!
- *
- * @throws IOException DOCUMENT ME!
- */
- public static void main(String[] args) throws IOException {
- System.out.println(getResourceString(getUrl(args[0])));
- }
-
- /**
* Convert the file to a url
*
--- 302,305 ----
***************
*** 333,349 ****
/**
* Utility method to load at least number entries into the array of urls to
! * return. Note that it may return number+1 because it searches in the
! * classpath.
*
! * @param name
! * @param searchPath
! * @param number
*
* @return
*/
private static URL[] getN_MatchingUrlsInSearchPath(String name,
! ArrayList searchPath, int number) {
! ArrayList list = new ArrayList();
if (searchPath.size() > 0) {
for (Iterator i = searchPath.iterator(); i.hasNext() && (number > 0);) {
--- 323,388 ----
/**
* Utility method to load at least number entries into the array of urls to
! * return.
*
! * @param name of the resource to search for
! * @param searchPath the babeldoc module search path
! * @param number maximum number of matches to find.
*
* @return
*/
private static URL[] getN_MatchingUrlsInSearchPath(String name,
! List searchPath, int number) {
! List list = new ArrayList();
+ if(number > 0) {
+ number = getN_ResourceInClassPath(name, list, number);
+ }
+
+ if(number>0) {
+ number = getN_ResourceInSearchPath(searchPath, number, name, list);
+ }
+
+ if(number>0) {
+ number = getN_ResourceInModules(name, list, number);
+ }
+
+ return (URL[]) list.toArray(new URL[0]);
+ }
+
+ /**
+ * Search the babeldoc modules for at least a number of matches.
+ *
+ * @param name of the resource to search for
+ * @param list the list to add entries
+ * @param number maximum number of matches to find.
+ * @return
+ */
+ private static int getN_ResourceInModules(String name, List list, int number) {
+ // Now getChild the name from the modules
+ BabeldocModule[] modules = BabeldocModuleList.getInstance()
+ .getSortedModules();
+
+ for (int i = modules.length - 1; i >= 0 && (number > 0); --i) {
+ String moduleConfig = modules[i].getName() + "/" + name;
+
+ URL url = Thread.currentThread().getContextClassLoader().getResource(moduleConfig);
+ if(url!=null) {
+ list.add(url);
+ --number;
+ }
+ }
+ return number;
+ }
+
+ /**
+ * Search for a resource in the search path
+ *
+ * @param searchPath
+ * @param number
+ * @param name
+ * @param list
+ * @return
+ */
+ private static int getN_ResourceInSearchPath(List searchPath, int number, String name, List list) {
if (searchPath.size() > 0) {
for (Iterator i = searchPath.iterator(); i.hasNext() && (number > 0);) {
***************
*** 391,416 ****
}
}
! // Now get the name from the modules
! BabeldocModule[] modules = BabeldocModuleList.getInstance()
! .getSortedModules();
!
! for (int i = modules.length - 1; i >= 0; --i) {
! String moduleConfig = modules[i].getName() + "/" + name;
!
! URL url = Thread.currentThread().getContextClassLoader().getResource(moduleConfig);
! if(url!=null) {
! list.add(url);
! }
! }
!
! // Add the classpath url to the search path.
URL cpUrl = Thread.currentThread().getContextClassLoader().getResource(name);
if (cpUrl != null) {
list.add(cpUrl);
}
! return (URL[]) list.toArray(new URL[0]);
}
}
--- 430,463 ----
}
}
+ return number;
+ }
! /**
! * Search for resource in the classpath
! *
! * @param name
! * @param list
! * @param number
! * @return
! */
! private static int getN_ResourceInClassPath(String name, List list, int number) {
URL cpUrl = Thread.currentThread().getContextClassLoader().getResource(name);
if (cpUrl != null) {
list.add(cpUrl);
+ number--;
}
+ return number;
+ }
! /**
! * Simple test
! *
! * @param args
! *
! * @throws IOException
! */
! public static void main(String[] args) throws IOException {
! System.out.println(getResourceString(getUrl(args[0])));
}
}
|
|
From: McDonald, B. <Bru...@ba...> - 2003-09-17 14:23:02
|
All of these solutions are good and as you rightly point out - uncoupling the conversion code from babeldoc will not be a pleasant job. Additional thoughts: 4. Implement as a web service accepting either SOAP messages or just straight HTTP POSTS with parameters. 5. Placing babeldoc in a EJB container and submitting the document from some programmatic means, possibly via JMS. regards, Bruce. -----Original Message----- From: David Glick [mailto:dg...@co...] Sent: Wednesday, September 17, 2003 9:38 AM To: bab...@li... Subject: Re: [Babeldoc-devel] Running a transformation without the command line If I understand what you're trying to do, I can think of several options: 1. You can use the Scripting stage to create a script that listens on a socket for a stream to appear and places it into the pipeline document for conversion 2. You can send an e-mail to the EmailScanner to get the document into Babeldoc for conversion 3. You can use the ExternalApplicationScanner to create your own program to accept the flatfile and feed it into Babeldoc. I don't think it's a trivial task to tear out the flatfile coversion piece into a standalone class, but Bruce or Dejan can probably provide better insight if that's your intention. Hope this helps, David On Tuesday 16 September 2003 5:23 pm, Wil...@co... wrote: > I really like the flat file handling and was wondering in general if it's > possible to strip out any particular module and run it on it's own without > loading and saving files to disk or using the command line. I'd like to be > able to take a file that was submitted via a browser and do a file > translation. Can you point me in the right direction in the code where I > might be able to plug into the babeldoc framework? So I'm thinking > something like a class that takes a string (the csv input) and returns a > string (the xml response) rather than providing a file name. I'm just > starting to look at the source code and could figure this out eventually > but I thought I'd ask the experts to get a head start! > > Thanks > > --------------------------------------------------- > Will Kriski, M.Sc, P.Eng. > DeltaEffects Inc. > (403) 850-7159 > http://www.deltaeffects.com > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Babeldoc-devel mailing list Bab...@li... https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: David G. <dg...@co...> - 2003-09-17 13:33:43
|
If I understand what you're trying to do, I can think of several options: 1. You can use the Scripting stage to create a script that listens on a socket for a stream to appear and places it into the pipeline document for conversion 2. You can send an e-mail to the EmailScanner to get the document into Babeldoc for conversion 3. You can use the ExternalApplicationScanner to create your own program to accept the flatfile and feed it into Babeldoc. I don't think it's a trivial task to tear out the flatfile coversion piece into a standalone class, but Bruce or Dejan can probably provide better insight if that's your intention. Hope this helps, David On Tuesday 16 September 2003 5:23 pm, Wil...@co... wrote: > I really like the flat file handling and was wondering in general if it's > possible to strip out any particular module and run it on it's own without > loading and saving files to disk or using the command line. I'd like to be > able to take a file that was submitted via a browser and do a file > translation. Can you point me in the right direction in the code where I > might be able to plug into the babeldoc framework? So I'm thinking > something like a class that takes a string (the csv input) and returns a > string (the xml response) rather than providing a file name. I'm just > starting to look at the source code and could figure this out eventually > but I thought I'd ask the experts to get a head start! > > Thanks > > --------------------------------------------------- > Will Kriski, M.Sc, P.Eng. > DeltaEffects Inc. > (403) 850-7159 > http://www.deltaeffects.com > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |