You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(3) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(15) |
Feb
(33) |
Mar
(35) |
Apr
(53) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <wu...@us...> - 2009-03-01 19:17:39
|
Revision: 159 http://davinspector.svn.sourceforge.net/davinspector/?rev=159&view=rev Author: wuest Date: 2009-03-01 19:17:29 +0000 (Sun, 01 Mar 2009) Log Message: ----------- Added a StatusBar to the main window. Removed unused declaration from EditPlugin interface. Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java trunk/DAVInspector/src/de/dlr/davinspector/plugin/IEditPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/ui/IMainController.java trunk/DAVInspector/src/de/dlr/davinspector/ui/MainController.java trunk/DAVInspector/src/de/dlr/davinspector/ui/MainView.java Added Paths: ----------- trunk/DAVInspector/src/de/dlr/davinspector/ui/JSimpleStatusBar.java Modified: trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2009-03-01 19:17:29 UTC (rev 159) @@ -53,7 +53,7 @@ /** Plugin configuration height. */ public static final int UI_PLUGIN_CONFIG_DIALOG_HEIGTH = 250; - + /** About dialog width. */ public static final int UI_ABOUT_DIALOG_WIDTH = 275; Modified: trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java 2009-03-01 19:17:29 UTC (rev 159) @@ -146,7 +146,6 @@ public String parse() { myLogger.debug("---- new data event ----"); myLogger.debug("Direction: " + myDirection); - myLogger.debug("Direction: " + myDirection); String carryover = ""; Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugin/IEditPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugin/IEditPlugin.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugin/IEditPlugin.java 2009-03-01 19:17:29 UTC (rev 159) @@ -26,10 +26,6 @@ package de.dlr.davinspector.plugin; -import de.dlr.davinspector.history.AMessage; - - - /** * This interface has to be implemented by plugins which allow the user to edit * the traffic. @@ -40,13 +36,6 @@ public interface IEditPlugin extends IPlugin { /** - * Returns the processed {@link AMessage} of the plugin. - * - * @return AMessage - */ - AMessage getOutput(); - - /** * Activate the controls to permit editing of the data. */ void enableEditing(); Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2009-03-01 19:17:29 UTC (rev 159) @@ -84,16 +84,6 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.plugin.IEditPlugin#getOutput() - */ - public AMessage getOutput() { - // TODO Auto-generated method stub - return null; - } - - /** - * {@inheritDoc} - * * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { Modified: trunk/DAVInspector/src/de/dlr/davinspector/ui/IMainController.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/ui/IMainController.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/ui/IMainController.java 2009-03-01 19:17:29 UTC (rev 159) @@ -29,6 +29,8 @@ import de.dlr.davinspector.common.Constant.Direction; import de.dlr.davinspector.history.AMessage; +import de.dlr.davinspector.history.ILoadMessageListener; +import de.dlr.davinspector.history.INewMessageListener; import de.dlr.davinspector.plugin.IPlugin; @@ -82,7 +84,7 @@ * * @param id Integer */ - void loadMessage(Integer id); + void loadMessageById(Integer id); /** * Export the message history of one side (client or server) to a file. @@ -94,13 +96,13 @@ /** * This method notifys all active plugins to prepare for shutdown. - * @see PluginManager#shutdownActivePlugins() + * @see de.dlr.davinspector.plugin.PluginManager#shutdownActivePlugins() */ void shutdownActivePlugins(); /** * Returns a List containing the available plugins. - * @see PluginManager#getAvailablePlugins() + * @see de.dlr.davinspector.plugin.PluginManager#getAvailablePlugins() * * @return List of IPlugins */ @@ -108,7 +110,7 @@ /** * This method sets the active plugins for the client side. - * @see PluginManager#setActivePluginsClient(List) + * @see de.dlr.davinspector.plugin.PluginManager#setActivePluginsClient(List) * * @param pluginNames List of Strings */ @@ -116,7 +118,7 @@ /** * This method sets the active plugins for the server side. - * @see PluginManager#setActivePluginsServer(List) + * @see de.dlr.davinspector.plugin.PluginManager#setActivePluginsServer(List) * * @param pluginNames List of Strings */ @@ -124,19 +126,19 @@ /** * This method clears all client plugins. - * @see PluginManager#clearActivePluginsClient() + * @see de.dlr.davinspector.plugin.PluginManager#clearActivePluginsClient() */ void clearActivePluginsClient(); /** * This method clears all server plugins. - * @see PluginManager#clearActivePluginsServer() + * @see de.dlr.davinspector.plugin.PluginManager#clearActivePluginsServer() */ void clearActivePluginsServer(); /** * If a new message on the client side has arrived this method is called. - * @see PluginManager#updateActivePluginsClient(AMessage) + * @see de.dlr.davinspector.plugin.PluginManager#updateActivePluginsClient(AMessage) * * @param message AMessage */ @@ -144,7 +146,7 @@ /** * If a new message on the server side has arrived this method is called. - * @see PluginManager#updateActivePluginsServer(AMessage) + * @see de.dlr.davinspector.plugin.PluginManager#updateActivePluginsServer(AMessage) * * @param message AMessage */ @@ -152,7 +154,7 @@ /** * Returns a List containing the active plugins on the client side. - * @see PluginManager#getActivePluginsClient() + * @see de.dlr.davinspector.plugin.PluginManager#getActivePluginsClient() * * @return List of IPlugins */ @@ -160,9 +162,37 @@ /** * Returns a List containing the active plugins on the server side. - * @see PluginManager#getActivePluginsServer() + * @see de.dlr.davinspector.plugin.PluginManager#getActivePluginsServer() * * @return List of IPlugins */ List<IPlugin> getActivePluginsServer(); + + /** + * Adds an {@link INewMessageListener} to MessageHistory. + * + * @param listener the {@link INewMessageListener} to be added + */ + void addNewMessageListener(INewMessageListener listener); + + /** + * Removes an {@link INewMessageListener} from MessageHistory. + * + * @param listener the {@link INewMessageListener} to be removed + */ + void removeNewMessageListener(INewMessageListener listener); + + /** + * Adds an {@link ILoadMessageListener} to MessageHistory. + * + * @param listener the {@link ILoadMessageListener} to be added + */ + void addLoadMessageListener(ILoadMessageListener listener); + + /** + * Removes an {@link ILoadMessageListener} from MessageHistory. + * + * @param listener the {@link ILoadMessageListener} to be removed + */ + void removeLoadMessageListener(ILoadMessageListener listener); } Added: trunk/DAVInspector/src/de/dlr/davinspector/ui/JSimpleStatusBar.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/ui/JSimpleStatusBar.java (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/ui/JSimpleStatusBar.java 2009-03-01 19:17:29 UTC (rev 159) @@ -0,0 +1,63 @@ +/* + * JSimpleStatusBar.java + * + * This class displays a simple status bar. + * + * Created: 01.11.2008 Jochen Wuest <wu...@us...> + * Changed: + * + * $Id$ + * + * Copyright 2007 Deutsches Zentrum fuer Luft- und Raumfahrt e.V. (DLR) + * + * Licensed under the Apache License, Version 2.0 (the 'License'); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package de.dlr.davinspector.ui; + +import java.awt.Dimension; + +import javax.swing.BorderFactory; +import javax.swing.BoxLayout; +import javax.swing.JLabel; +import javax.swing.border.SoftBevelBorder; + +/** + * This class displays a status bar. + * + * @version $LastChangedRevision$ + * @author Jochen Wuest + */ +public class JSimpleStatusBar extends JLabel { + + /** Serial Version UID, not valid. */ + private static final long serialVersionUID = 1L; + + /** Default height of the status bar. */ + private static final int STATUSBAR_HEIGHT = 16; + + /** Default height of the status bar. */ + private static final int STATUSBAR_WIDTH = 250; + + /** + * Constructor. Creates the status bar. + */ + public JSimpleStatusBar() { + setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS)); + setBorder(BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(SoftBevelBorder.LOWERED), + BorderFactory.createEmptyBorder(1, 1, 0, 0))); + setPreferredSize(new Dimension(STATUSBAR_WIDTH, STATUSBAR_HEIGHT)); + setMinimumSize(new Dimension(STATUSBAR_WIDTH, STATUSBAR_HEIGHT)); + setText(" "); + } +} Modified: trunk/DAVInspector/src/de/dlr/davinspector/ui/MainController.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/ui/MainController.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/ui/MainController.java 2009-03-01 19:17:29 UTC (rev 159) @@ -30,6 +30,8 @@ import de.dlr.davinspector.common.Constant.Direction; import de.dlr.davinspector.configuration.Configuration; import de.dlr.davinspector.history.AMessage; +import de.dlr.davinspector.history.ILoadMessageListener; +import de.dlr.davinspector.history.INewMessageListener; import de.dlr.davinspector.plugin.IPlugin; import de.dlr.davinspector.relay.IRelayModel; @@ -55,21 +57,26 @@ */ public MainController(IRelayModel model) { myRelay = model; - myView = new MainView(this, myRelay); + myView = new MainView(this); // Init view myView.disableSendToActions(); myView.disableExportAction(); + myView.setRelayConfigurationInfo("", "", "", ""); } /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.UI.IMainController#startRelay() + * @see de.dlr.davinspector.ui.IMainController#enableRelay() */ public void enableRelay() { Configuration config = new Configuration(); myRelay.startRelay(config); myView.enableExportAction(); + myView.setRelayConfigurationInfo(config.getClientAddress(), + String.valueOf(config.getClientPort()), + config.getServerAddress(), + String.valueOf(config.getServerPort())); // enable sendTo-Actions only if automode is not active if (myRelay.isAutomodeActive()) { myView.disableSendToActions(); @@ -81,18 +88,19 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.UI.IMainController#stopRelay() + * @see de.dlr.davinspector.ui.IMainController#disableRelay() */ public void disableRelay() { shutdownActivePlugins(); + myView.disableSendToActions(); + myView.setRelayConfigurationInfo("", "", "", ""); myRelay.stopRelay(); - myView.disableSendToActions(); } /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.UI.IMainController#writeToClient(java.lang.String) + * @see de.dlr.davinspector.ui.IMainController#writeToClient() */ public void writeToClient() { myRelay.writeToClient(); @@ -101,7 +109,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.UI.IMainController#writeToServer(java.lang.String) + * @see de.dlr.davinspector.ui.IMainController#writeToServer() */ public void writeToServer() { myRelay.writeToServer(); @@ -148,9 +156,9 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.ui.IMainController#loadMessage(java.lang.Integer) + * @see de.dlr.davinspector.ui.IMainController#loadMessageById(java.lang.Integer) */ - public void loadMessage(Integer id) { + public void loadMessageById(Integer id) { myRelay.loadMessageById(id); } @@ -251,5 +259,41 @@ */ public List<IPlugin> getActivePluginsServer() { return myRelay.getPluginManager().getActivePluginsServer(); - } + } + + /** + * {@inheritDoc} + * + * @see de.dlr.davinspector.ui.IMainController#addNewMessageListener(de.dlr.davinspector.history.INewMessageListener) + */ + public void addNewMessageListener(INewMessageListener listener) { + myRelay.getMessageHistory().addNewMessageListener(listener); + } + + /** + * {@inheritDoc} + * + * @see de.dlr.davinspector.ui.IMainController#removeNewMessageListener(de.dlr.davinspector.history.INewMessageListener) + */ + public void removeNewMessageListener(INewMessageListener listener) { + myRelay.getMessageHistory().removeNewMessageListener(listener); + } + + /** + * {@inheritDoc} + * + * @see de.dlr.davinspector.ui.IMainController#addLoadMessageListener(de.dlr.davinspector.history.ILoadMessageListener) + */ + public void addLoadMessageListener(ILoadMessageListener listener) { + myRelay.getMessageHistory().addLoadMessageListener(listener); + } + + /** + * {@inheritDoc} + * + * @see de.dlr.davinspector.ui.IMainController#removeLoadMessageListener(de.dlr.davinspector.history.ILoadMessageListener) + */ + public void removeLoadMessageListener(ILoadMessageListener listener) { + myRelay.getMessageHistory().removeLoadMessageListener(listener); + } } Modified: trunk/DAVInspector/src/de/dlr/davinspector/ui/MainView.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/ui/MainView.java 2008-09-01 19:45:13 UTC (rev 158) +++ trunk/DAVInspector/src/de/dlr/davinspector/ui/MainView.java 2009-03-01 19:17:29 UTC (rev 159) @@ -67,12 +67,10 @@ import de.dlr.davinspector.history.MessageEvent; import de.dlr.davinspector.plugin.IPlugin; import de.dlr.davinspector.plugin.IViewPlugin; -import de.dlr.davinspector.relay.IRelayModel; /** * The main window of the application. - * TODO: getMessageHistory restructure model/relay - * + * * @version $LastChangedRevision$ * @author Jochen Wuest */ @@ -84,18 +82,18 @@ /** Position of the vertical divider. */ private static final double DIVIDER_VERT = 0.75; - /** The relay model. */ - private IRelayModel myRelay; - /** This panel contains the center buttons and the server tab pane. */ private JPanel jPanelRight; - + /** This panel contains the center buttons. */ private JPanel jPanelCenterButtons; - + /** The tool bar. */ private JToolBar jToolBar; - + + /** The status bar. */ + private JSimpleStatusBar jStatusBar; + /** The Controller. */ private IMainController myController; @@ -104,34 +102,34 @@ /** The content pane. */ private JPanel jContentPane = null; - + /** Horizontal splitter. */ private JSplitPane jSplitPaneHorizontal = null; - + /** Button "send to server". */ private JButton jBtnSendToServer = null; - + /** Menu bar. */ private JMenuBar jJMenuBar = null; - + /** File menu. */ private JMenu jMenuFile = null; - + /** Menu item "exit". */ private JMenuItem jMenuItemExit = null; - + /** View menu. */ private JMenu jMenuView = null; - + /** Menu item "clear all". */ private JMenuItem jMenuItemClearAll = null; - + /** Button "send to client". */ private JButton jBtnSendToClient = null; - + /** Menu item "clear left". */ private JMenuItem jMenuItemClearLeft = null; - + /** Menu item "clear right". */ private JMenuItem jMenuItemClearRight = null; @@ -140,7 +138,7 @@ /** Client tab pane. */ private JTabbedPane jTabbedPaneClient = null; - + /** Scroll pane for client text pane. */ private JScrollPane jScrollPaneClientRaw = null; @@ -201,10 +199,11 @@ /** Toggle button for controlling the auto mode. */ private JToggleButton jToggleButtonAutomode = null; - /** - * Action: Exit program. + /** + * Action: Exit program. */ private Action exitAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_exit")); @@ -212,7 +211,7 @@ putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X); putValue(Action.SMALL_ICON, UIResource.getIcon(UIResource.ICON_EXIT)); } - + public void actionPerformed(ActionEvent e) { // INFO: Currently shutdownActivePlugins maybe called twice. myController.shutdownActivePlugins(); @@ -220,10 +219,11 @@ } }; - /** + /** * Action: Send data to the server. */ private Action sendToServerAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_send_to_server")); @@ -241,6 +241,7 @@ * Action: Send data to the client. */ private Action sendToClientAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_send_to_client")); @@ -256,9 +257,9 @@ /** * Action: Open configuration dialog. - * TODO: Display active configuration in main window. */ private Action configureAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_configure")); @@ -278,6 +279,7 @@ * Action: Open plugin configuration dialog. */ private Action configurePluginsAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_configure_plugins")); @@ -293,11 +295,12 @@ myPluginConfigurationDialog.setVisible(true); } }; - + /** * Action: Open about dialog. */ private Action aboutAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_about")); @@ -317,6 +320,7 @@ * Action: Start or stop the relay. */ private Action relayAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_start_relay")); @@ -325,7 +329,7 @@ } /** Current state of the relay. */ - private Boolean myRelayIsActive = false; + private Boolean myRelayIsActive = false; public void actionPerformed(ActionEvent e) { if (myRelayIsActive) { @@ -348,6 +352,7 @@ * Action: Clear content of client raw pane. */ private Action clearClientAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_clear_client")); @@ -365,6 +370,7 @@ * Action: Clear content of server raw pane. */ private Action clearServerAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_clear_server")); @@ -382,6 +388,7 @@ * Action: Clear content of both raw panes. */ private Action clearAllAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_clear_all")); @@ -401,15 +408,16 @@ * Action: Enable or disable automode. */ private Action automodeAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_enable_auto_mode")); putValue(Action.SHORT_DESCRIPTION, Internationalization.getTranslation("ac_enable_auto_mode_description")); putValue(Action.SMALL_ICON, UIResource.getIcon(UIResource.ICON_AUTOMODE_ON)); } - + /** Current state of the auto mode. */ - private Boolean myAutomodeIsActive = false; + private Boolean myAutomodeIsActive = false; public void actionPerformed(ActionEvent e) { if (myAutomodeIsActive) { @@ -428,41 +436,40 @@ } }; - /** - * Action: Export history. + /** + * Action: Export history. */ private Action exportAction = new AbstractAction() { + static final long serialVersionUID = 1L; { putValue(Action.NAME, Internationalization.getTranslation("ac_export")); putValue(Action.SHORT_DESCRIPTION, Internationalization.getTranslation("ac_export_description")); putValue(Action.SMALL_ICON, UIResource.getIcon(UIResource.ICON_EXPORT)); } - + public void actionPerformed(ActionEvent e) { if (myExportDialog == null) { myExportDialog = new ExportDialog(jFrame, myController); } - myExportDialog.setVisible(true); + myExportDialog.setVisible(true); } }; /** - * Constructor of MainView. Initializes the GUI elements, - * loads the plugins and registers listeners. + * Constructor of MainView. Initializes the GUI elements, loads the plugins and registers listeners. * - * @param controller MainControllerInterface - * @param relay RelayModelInterface + * @param controller + * MainControllerInterface */ - public MainView(IMainController controller, IRelayModel relay) { + public MainView(IMainController controller) { Util.setUIDesign(); - myRelay = relay; myController = controller; - - myRelay.getMessageHistory().addNewMessageListener(this); - myRelay.getMessageHistory().addLoadMessageListener(this); + myController.addNewMessageListener(this); + myController.addLoadMessageListener(this); + jFrame = getJFrame(); jFrame.pack(); jFrame.setVisible(true); @@ -472,7 +479,7 @@ /** * This method initializes jFrame. - * + * * @return javax.swing.JFrame */ private JFrame getJFrame() { @@ -485,6 +492,7 @@ jFrame.setIconImage(UIResource.getIcon(UIResource.ICON_APP32).getImage()); jFrame.addWindowListener(new java.awt.event.WindowAdapter() { + public void windowOpened(java.awt.event.WindowEvent e) { // windowOpened() } @@ -500,7 +508,7 @@ /** * This method initializes jContentPane. - * + * * @return javax.swing.JPanel */ private JPanel getJContentPane() { @@ -511,40 +519,43 @@ jContentPane.add(getJSplitPaneVertical(), BorderLayout.CENTER); jContentPane.add(getJToolBar(), BorderLayout.NORTH); jContentPane.addComponentListener(new java.awt.event.ComponentAdapter() { + public void componentResized(java.awt.event.ComponentEvent e) { // resize jSplitPaneHorizontal.setDividerLocation(DIVIDER_HORZ); jSplitPaneVertical.setDividerLocation(DIVIDER_VERT); } }); + jContentPane.add(getJStatusBar(), BorderLayout.SOUTH); } return jContentPane; } /** * {@inheritDoc} - * + * * @see de.dlr.davinspector.history.INewMessageListener#newMessage(de.dlr.davinspector.history.MessageEvent) */ public void newMessage(MessageEvent newMessageEvent) { AMessage msg = newMessageEvent.getMessage(); updateMessage(msg); } - + /** * {@inheritDoc} - * + * * @see de.dlr.davinspector.history.ILoadMessageListener#loadMessage(de.dlr.davinspector.history.MessageEvent) */ public void loadMessage(MessageEvent refreshMessageEvent) { AMessage msg = refreshMessageEvent.getMessage(); - updateMessage(msg); + updateMessage(msg); } /** * This method refreshes the content of the raw views and the loaded plugins. * - * @param message Message + * @param message + * Message */ private void updateMessage(AMessage message) { if (message.getDirection().equals(Direction.ClientToServer)) { @@ -553,12 +564,12 @@ } else { jTextPaneServerRaw.setText(message.getRawData()); myController.updateActivePluginsServer(message); - } + } } /** * This method initializes jBtnSendToServer. - * + * * @return javax.swing.JButton */ private JButton getJButtonSendToServer() { @@ -569,10 +580,10 @@ } return jBtnSendToServer; } - + /** * This method initializes jBtnSendToClient. - * + * * @return javax.swing.JButton */ private JButton getJButtonSendToClient() { @@ -586,7 +597,7 @@ /** * This method initializes jTextPaneClientRaw. - * + * * @return javax.swing.JTextPane */ private JTextPane getJTextPaneClientRaw() { @@ -598,9 +609,9 @@ return jTextPaneClientRaw; } - /** + /** * This method initializes jTabbedPaneClient. - * + * * @return javax.swing.JTabbedPane */ private JTabbedPane getJTabbedPaneClient() { @@ -608,9 +619,9 @@ jTabbedPaneClient = new JTabbedPane(); jTabbedPaneClient.addTab(Internationalization.getTranslation("tab_raw"), null, getJScrollPaneClientRaw(), null); - //update plugins + // update plugins List<IPlugin> plugged = myController.getActivePluginsClient(); - for (Iterator<IPlugin> iterator = plugged.iterator(); iterator.hasNext();) { + for (Iterator<IPlugin> iterator = plugged.iterator(); iterator.hasNext();) { IPlugin plugin = (IPlugin) iterator.next(); if (plugin.isActive()) { IViewPlugin viewPlugin = (IViewPlugin) plugin; @@ -623,21 +634,21 @@ /** * This method initializes jScrollPaneClientRaw. - * + * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPaneClientRaw() { if (jScrollPaneClientRaw == null) { jScrollPaneClientRaw = new JScrollPane(); jScrollPaneClientRaw.setVisible(false); - jScrollPaneClientRaw.setViewportView(getJTextPaneClientRaw()); + jScrollPaneClientRaw.setViewportView(getJTextPaneClientRaw()); } return jScrollPaneClientRaw; } /** * This method initializes jTabbedPaneServer. - * + * * @return javax.swing.JTabbedPane. */ private JTabbedPane getJTabbedPaneServer() { @@ -645,7 +656,7 @@ jTabbedPaneServer = new JTabbedPane(); jTabbedPaneServer.addTab(Internationalization.getTranslation("tab_raw"), null, getJScrollPaneServerRaw(), null); - //update plugins + // update plugins List<IPlugin> plugged = myController.getActivePluginsServer(); for (Iterator<IPlugin> iterator = plugged.iterator(); iterator.hasNext();) { IPlugin plugin = (IPlugin) iterator.next(); @@ -660,7 +671,7 @@ /** * This method initializes getJScrollPaneServerRaw. - * + * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPaneServerRaw() { @@ -673,7 +684,7 @@ /** * This method initializes jTextPaneServerRaw. - * + * * @return javax.swing.JTextPane */ private JTextPane getJTextPaneServerRaw() { @@ -687,7 +698,7 @@ /** * This method initializes jJMenuBar. - * + * * @return javax.swing.JMenuBar */ private JMenuBar getJJMenuBar() { @@ -702,7 +713,7 @@ /** * This method initializes jMenuFile. - * + * * @return javax.swing.JMenu */ private JMenu getJMenuFile() { @@ -721,7 +732,7 @@ /** * This method initializes jMenuItemExit. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemExit() { @@ -734,7 +745,7 @@ /** * This method initializes jMenuView. - * + * * @return javax.swing.JMenu */ private JMenu getJMenuView() { @@ -750,7 +761,7 @@ /** * This method initializes jMenuItemClearAll. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemClearAll() { @@ -762,7 +773,7 @@ /** * This method initializes jMenuItemClearLeft. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemClearClient() { @@ -774,7 +785,7 @@ /** * This method initializes jMenuItemClearRight. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemClearServer() { @@ -786,7 +797,7 @@ /** * This method initializes jMenuHelp. - * + * * @return javax.swing.JMenu */ private JMenu getJMenuHelp() { @@ -800,7 +811,7 @@ /** * This method initializes jMenuItemConfigure. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemConfigure() { @@ -812,7 +823,7 @@ /** * This method initializes jMenuItemAbout. - * + * * @return javax.swing.JMenuItem */ private JMenuItem getJMenuItemAbout() { @@ -824,7 +835,7 @@ /** * This method initializes jMenuItemConfigurePlugins. - * + * * @return javax.swing.JMenuItem. */ private JMenuItem getJMenuItemConfigurePlugins() { @@ -833,7 +844,7 @@ } return jMenuItemConfigurePlugins; } - + /** * This method initializes jMenuItemExport. * @@ -848,7 +859,7 @@ /** * This method initializes jSplitPaneHorizontal. - * + * * @return javax.swing.JSplitPane */ private JSplitPane getJSplitPaneHorizontal() { @@ -860,10 +871,9 @@ } return jSplitPaneHorizontal; } - + /** - * This method initializes jPanelRight. - * This panel is placed right of the splitter and contains the center buttons and server tab pane. + * This method initializes jPanelRight. This panel is placed right of the splitter and contains the center buttons and server tab pane. * * @return javax.swing.JPanel */ @@ -873,11 +883,11 @@ jPanelRight.setLayout(new BorderLayout()); jPanelRight.add(getJPanelCenterButtons(), BorderLayout.WEST); jPanelRight.add(getJTabbedPaneServer(), BorderLayout.CENTER); - + } return jPanelRight; } - + /** * This method initializes jToolBar. * @@ -897,10 +907,9 @@ } return jToolBar; } - + /** - * This method initializes jPanelCenterButtons. - * These buttons are placed between the client and server tab panes. + * This method initializes jPanelCenterButtons. These buttons are placed between the client and server tab panes. * * @return javax.swing.JPanel */ @@ -914,7 +923,7 @@ jPanelCenterButtons.add(getJButtonSendToClient()); jPanelCenterButtons.add(Box.createVerticalGlue()); } - return jPanelCenterButtons; + return jPanelCenterButtons; } /** @@ -931,10 +940,10 @@ jSplitPaneHorizontal.repaint(); } } - + /** * This method initializes jSplitPaneVertical. - * + * * @return javax.swing.JSplitPane */ private JSplitPane getJSplitPaneVertical() { @@ -950,7 +959,7 @@ /** * This method initializes jPanelHistory. - * + * * @return javax.swing.JPanel */ private JPanel getJPanelHistory() { @@ -964,15 +973,14 @@ /** * This method initializes jTableHistory. - * + * * @return javax.swing.JTable */ private JTable getJTableHistory() { if (jTableHistory == null) { myHistoryTableModel = new HistoryTableModel(); - // TODO: controller - myRelay.getMessageHistory().addNewMessageListener(myHistoryTableModel); + myController.addNewMessageListener(myHistoryTableModel); jTableHistory = new JTable(myHistoryTableModel); jTableHistory.setShowGrid(true); @@ -982,6 +990,7 @@ jTableHistory.getTableHeader().setReorderingAllowed(false); jTableHistory.getSelectionModel().addListSelectionListener(new ListSelectionListener() { + public void valueChanged(ListSelectionEvent event) { if (event.getValueIsAdjusting()) { return; @@ -989,10 +998,9 @@ int rowIndex = jTableHistory.getSelectedRow(); if (rowIndex >= 0 && rowIndex < jTableHistory.getRowCount()) { int id = (Integer) jTableHistory.getValueAt(rowIndex, 1); - myController.loadMessage(id); - myRelay.getMessageHistory().loadMessageByID(id); - } - } + myController.loadMessageById(id); + } + } }); jTableHistory.setDefaultRenderer(Object.class, new HistoryTableCellRenderer()); @@ -1002,7 +1010,7 @@ /** * This method initializes jScrollPaneTableHistory. - * + * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPaneTableHistory() { @@ -1015,7 +1023,7 @@ /** * This method initializes jToggleButtonRelay. - * + * * @return javax.swing.JToggleButton */ private JToggleButton getJToggleButtonRelay() { @@ -1027,7 +1035,7 @@ /** * This method initializes jToggleButtonAutomode. - * + * * @return javax.swing.JToggleButton */ private JToggleButton getJToggleButtonAutomode() { @@ -1036,7 +1044,7 @@ } return jToggleButtonAutomode; } - + /** * Enable actions for sending data manual. */ @@ -1049,21 +1057,58 @@ * Disable actions for sending data manual. */ public void disableSendToActions() { - sendToClientAction.setEnabled(false); + sendToClientAction.setEnabled(false); sendToServerAction.setEnabled(false); } - + /** * Enable the export menu item. */ public void enableExportAction() { exportAction.setEnabled(true); } - + /** * Disable the export menu item. */ public void disableExportAction() { exportAction.setEnabled(false); } + + /** + * This method initializes the status bar. + * + * @return JStatusBar + */ + private JSimpleStatusBar getJStatusBar() { + + if (jStatusBar == null) { + jStatusBar = new JSimpleStatusBar(); + jStatusBar.setText("Relay not active."); + } + return jStatusBar; + } + + /** + * TODO: HJW: Enter comment! + * + * @param clientAddress + * String + * @param clientPort + * String + * @param serverAddress + * String + * @param serverPort + * String + */ + public void setRelayConfigurationInfo(String clientAddress, String clientPort, String serverAddress, String serverPort) { + String infoText = ""; + if (clientAddress.equals("") && clientPort.equals("") && serverAddress.equals("") && serverPort.equals("")) { + infoText = "Relay not active."; + } else { + infoText = "Relay listening on " + clientAddress + ":" + clientPort + " connected to Server on " + serverAddress + ":" + + serverPort; + } + jStatusBar.setText(infoText); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-09-01 19:45:16
|
Revision: 158 http://davinspector.svn.sourceforge.net/davinspector/?rev=158&view=rev Author: killerjoe Date: 2008-09-01 19:45:13 +0000 (Mon, 01 Sep 2008) Log Message: ----------- Fixed typo. Modified Paths: -------------- trunk/www/index.html Modified: trunk/www/index.html =================================================================== --- trunk/www/index.html 2008-08-20 14:42:25 UTC (rev 157) +++ trunk/www/index.html 2008-09-01 19:45:13 UTC (rev 158) @@ -19,7 +19,7 @@ <h2><a href="#">About DAVInspector</a></h2> - <p>DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too.<br /><br /> + <p>DAVInspector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too.<br /><br /> DAVInspector is developed by employees of the the institution <a href="http://www.dlr.de/sc" class="blacklink">"Simulation and Software Technology" (SISTEC)</a> at the <a href="http://www.dlr.de" class="blacklink">German Aerospace Center DLR</a>.</p> <p>We are happy about any support for this project - for example you might participate as a developer, bug reporter or simply by telling us your needs. Just visit our <a href="http://sourceforge.net/forum/?group_id=206242">forums</a> or join our <a href="http://sourceforge.net/mail/?group_id=206242">mailing-lists</a> on Sourceforge. <br></p></p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-08-20 14:42:29
|
Revision: 157 http://davinspector.svn.sourceforge.net/davinspector/?rev=157&view=rev Author: wuest Date: 2008-08-20 14:42:25 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Added and updated the plugin development howto. Added a screenshot of the example plugin. Modified Paths: -------------- trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex Added Paths: ----------- trunk/Documents/PluginDevelopment_Howto/gui-plugin.png Modified: trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex =================================================================== --- trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex 2008-08-19 12:11:16 UTC (rev 156) +++ trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex 2008-08-20 14:42:25 UTC (rev 157) @@ -6,10 +6,22 @@ \usepackage{color} \usepackage{caption} \usepackage{exscale} - \usepackage[dvips]{graphicx} + \usepackage[pdftex]{graphicx} \pagestyle{headings} \usepackage{longtable} +%% Formatierung Listings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{listings} % Paket zur Formatierung von listings +%\lstset{numbers=left} % zeilennummern links +\lstset{numberstyle=\scriptsize} % zeilennummern größe +\lstset{numbersep=10pt} % abstand zeilennummern -> listing +\lstset{frame=single} % (rahmen für abstand zum text) +\lstset{framerule=0.5pt} % (rahmen für abstand zum text) +\lstset{aboveskip=12pt} % abstand über dem listing 12pt +%\lstset{backgroundcolor=\color[rgb]{0.95,0.95,0.95}} % Hintergrund grau +\lstset{language=Java} % Sprache des HL +\lstset{captionpos=b} % Beschriftung ist unterhalb +\lstset{basicstyle=\footnotesize\ttfamily} % kleine schriftart \author{Markus Litz} \title{DAVInspector Plugin-development Howto} @@ -31,18 +43,19 @@ \vspace{0.5cm} \Large - \textsc{Howto to write plugins for Davinspector} + \textsc{How to write plugins for Davinspector} \vspace{0.5cm} \large 18.04.2008 - Markus Litz \\ + 18.08.2008 - Jochen Wuest \\ DLR (German Aerospace Center) \\ Simulation and Software Technology \\ \end{center} \normalsize -This is a updated brief explanation about writing plugins for DAVInspector. If you are just looking for a user guide please take a look at the DAVInspector website at \textit{<http://davinspector.sourceforge.net/>}. This explains what this version of DAVInspector is and how you could add new features to DAVInspector without knowledge of the core program. Just some experiences in java programming are needed. +This is a updated brief explanation about writing plugins for DAVInspector. If you are just looking for a user guide please take a look at the DAVInspector website at \textit{<http://davinspector.sourceforge.net/>}. This explains what this version of DAVInspector is and how you could add new features to DAVInspector without knowledge of the core program. Just some experiences in Java programming are needed. \end{titlepage} @@ -57,38 +70,42 @@ % \mainmatter +%################################################################################################## +% What is DAVInspector? +%################################################################################################## \section{What is DAVInspector?} -DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too. +DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. Also the open plugin technology enables the application to support other network protocols in the future. -DAVInspector is developed by employees of the the institution "Simulation and Software Technology" (SISTEC) at the German Aerospace Center DLR. +DAVInspector is developed by employees of the institution "Simulation and Software Technology" (SISTEC) at the German Aerospace Center DLR. We are happy about any support for this project - for example you might participate as a developer, bug reporter or simply by telling us your needs. Just visit our forums or join our mailing-lists on Sourceforge. \subsection{What do I need?} -You need : +In order to create your own DAVInspector plugins at least the following software is required: \begin{itemize} - \item A stable version of DAVInspector - get latest stable release build of DAVInspector from SF.NET download page: \textit{<http://davinspector.sourceforge.net>}. - \item Java version 1.5.0 or higher. - \item Jakarta Ant + \item A stable version of DAVInspector - get the latest stable release of DAVInspector from SF.NET download page: \textit{<http://davinspector.sourceforge.net>}. + \item Java 2 Runtime Environment (JRE) or Java 2 Developer Kit (JDK) both version 1.5.0 or higher. \end{itemize} -To build or run DAVInspector you need a Java 2 Runtime Environment (JRE) with a version number 1.5.0 and higher. You can download the JRE for a number of platforms from \textit{<http://java.sun.com>}. -If you want to build DAVInspector you additionally need a recent version of the Jakarta Ant build tool. You can download Ant from \textit{<http://jakarta.apache.org>}. +To build or run DAVInspector you need either JRE or JDK version 1.5.0 or higher. You can download the JRE or JDK for various platforms from \textit{<http://java.sun.com>}. +If you want to build DAVInspector you additionally need a recent version of the Apache Ant build tool. You can download Ant from \textit{<http://ant.apache.org>}. +%################################################################################################## +% Writing Plugins +%################################################################################################## \section{Writing Plugins} -There are 2 types of plugins. ViewPlugins and EditPlugins. The ViewPlugins only shows the transfert data and gives you the possibility to change the way how to display these data, e.g. highling. Through EditPlugins DAVInspector gives you the capability to change the transfered data like body or header informations. -The two types of plugins are represented by the two interfaces IViewPlugin and IEditPlugin. Your own plugin has to implement one of these interfaces. +There are two types of plugins: ViewPlugins and EditPlugins. ViewPlugins only display the transfered data and provide the possibility to change the presentation of the data, e.g. highlighting. EditPlugins enable you to change the data before it is transfered. For example you may change the header information of a message. The two types of plugins are represented by the two interfaces \textit{IViewPlugin} and \textit{IEditPlugin}. Your own plugin has to implement one of these interfaces. +\subsection{Constructor}\label{subsec:contructor} +Since the plugins are loaded dynamically, there is no constructor we can use to set things up. Instead each plugin has to implement the method \textit{init()}, which acts like a constructor. For example the \textit{init()} of the ExampleView plugin: -\subsection{Constructor} -Since the plugins are loaded dynamically, there is no constructor we can use to set things up. Instead each plugin has to implement the method init(), which acts like a constructor. For example the init() of the ExampleView plugin: - -\begin{verbatim} -public void init(PluginManager pluginManager, PluginDirection direction) { +\begin{lstlisting}[caption={init() method of ExampleView plugin}, label=code:init] +public void init(PluginManager pluginManager, + PluginDirection direction) { myPlugInDirection = direction; if (myJScrollPane == null) { myJTextPane = new JTextPane(); @@ -98,16 +115,14 @@ myJTextPane.setText(""); Util.setUIDesign(); } -\end{verbatim} +\end{lstlisting} - \subsection{Naming conventions} +To write your own plugin you have to follow some naming conventions. Otherwise DAVInspector is not able to load your plugin. The main class of your plugin has to belong to the package \textit{de.dlr.davinspector.plugins.<Main Class>}.\\ +Let's assume you are writing a plugin named \textit{ExampleViewPlugin}. The first few lines of code have to look like this: -To write your own plugin you have to follow some naming conventions. Otherwise DAVInspector is not able to load your plugin. The main class of your plugin has to belong to a package de.dlr.davinspector.plugins.<Main Class>.\\ -So, let's assume to write a plugin named ExampleViewPlugin. The first few lines of code have to look like this: - -\begin{verbatim} +\begin{lstlisting}[caption={Naming conventions}, label=code:naming] package de.dlr.davinspector.plugins.exampleviewplugin; import de.dlr.davinspector.common.Util; @@ -118,58 +133,118 @@ public class ExampleViewPlugin implements IViewPlugin { ... } -\end{verbatim} +\end{lstlisting} -If you think, you are ready to test your plugin, create a jar file of it named like the main class. In our example that would be ExampleViewPlugin.jar. Copy it to the plugin directory of DAVInspector and start DAVInspector. Now you should see you plugin in the plugin-configuration window. +If you think, you are ready to test your plugin, create a JAR file named like the main class. In our example the JAR file would be named \textit{ExampleViewPlugin.jar}. Copy this file to the plugin directory of DAVInspector and start DAVInspector. Now your plugin should be listed in the plugin-configuration window and you can test the proper functioning of your plugin. \subsection{GUI} -Ne gui is wat feines...\\ -Muffi-Schlumpf sagt: \textit{``Ich hasse GUI!''} +If you want to create a plugin with a graphical user interface (GUI) you can use all provided by the Java Swing framework. +As shown in listing \ref{code:gui} the method \textit{getUI()} of the interface \textit{IViewPlugin} returns the top component of your GUI to the DAVInspector plugin manager. This top component has to be of the type \textit{JComponent} or a subclass of \textit{JComponent}. It is recommended to initialize the GUI components in the \textit{init()} method of your class, see section \ref{subsec:contructor}. +\begin{lstlisting}[caption={GUI method of ExampleView plugin}, label=code:gui] +/** The scroll pane of the view. */ +private JScrollPane myJScrollPane = null; +... +public JComponent getUI() { + return myJScrollPane; +} +\end{lstlisting} +\begin{figure} + \centering + \includegraphics[width=0.75\textwidth]{gui-plugin.png} + \caption{Screenshot GUI ExampleViewPlugin (german version)} + \label{fig:gui-plugin} +\end{figure} + +Figure \ref{fig:gui-plugin} shows the GUI of the described \textit{ExampleView} plugin from above. + + +%################################################################################################## +% Internationalization +%################################################################################################## \section{Internationalization (I18N)} +In order to provide a localized version of your plugin you need to: +\begin{itemize} + \item Provide localized language files. + \item Use a translate method to get the localized text for labels and so on. + \item Name all files correctly and place them proper in the JAR file. +\end{itemize} -To make your plugin multilingual, you have to ..... +\begin{lstlisting}[caption={Using translation your source}, label=code:i18n-use-translate] +public String getName() { + return translate("name"); +} +\end{lstlisting} +Listing \ref{code:i18n-use-translate} shows the use of the translation method to get the localized version of a text. An implementation of the translation method is shown in listing \ref{code:i18n-translate-method}. Each text is identified by a key. This key is used to look up the localized version of the text in the appropriate language file. +Listing \ref{code:i18n-language-file} shows, as an example, the content of the default language file of the \textit{ExampleView} plugin. This file is named \textit{TextBundle.properties}. \textit{TextBundle\_de\_DE.properties} would be the proper name of a german language file. Further information regarding Java and internationalization can be found at \cite{java-i18n-res} and \cite{java-i18n-tut}. +\begin{lstlisting}[caption={Language file definition for example plugin}, label=code:i18n-language-file] +name=Example Plugin +description=This is an example plugin +\end{lstlisting} +\begin{lstlisting}[caption={Source code of translate() method}, label=code:i18n-translate-method] +public static String translate(String key) { + final String bundleName = + "de.dlr.davinspector.plugins.exampleviewplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = + ResourceBundle.getBundle(bundleName, + Locale.getDefault()); + return resourceBundle.getString(key); +} +\end{lstlisting} + + +%################################################################################################## +% Logging +%################################################################################################## \section{Logging} +You should use the Logging system of DAVInspector to log debug and error messages. All you have to do is to create a logging object for each class: -You should use the Logging system of DAVInspector to log debug and error messages. All you have to do is, to create a logging object for each class: - -\begin{verbatim} +\begin{lstlisting}[caption={Logging}, label=code:logging] public class ExampleViewPlugin implements IViewPlugin { /** Logger, Apache log4j. */ - private static Logger myLogger = Logger.getLogger(ExampleViewPlugin.class); + private static Logger myLogger = + Logger.getLogger(ExampleViewPlugin.class); + + myLogger.debug("This is a debug message"); } -\end{verbatim} +\end{lstlisting} -Then you can use the five logging methods debug(), info(), warn(), error() and fatal()\\ -For example: \textit{logger.debug("This is a debug message");}\\ -All messages should appear on stdout / the logging file. +Now you can use the five logging methods \textit{debug()}, \textit{info()}, \textit{warn()}, \textit{error()} and \textit{fatal()}. An example on how to obtain the logger and using the different logging methods is given in listing \ref{code:logging}. All messages should appear in StdOut / the log file. Further information on logging with log4j is available at \cite{log4j}. - \subsection{Troubleshooting} -If your plugin doesn't load and java is saying something about invalid class version numbers or something like that, make sure, that you have compiled DAVInspector and your plugin with the same JDK version. -You could also write to the DAVInspector development mailinglist \cite{ml}. +If your plugin does not load and Java is reporting something about invalid class version numbers or something like that, make sure you have compiled DAVInspector and your plugin with the same JDK version. You could also write to the DAVInspector development mailing list \cite{ml}. +%################################################################################################## +% Conclusion +%################################################################################################## \section{Conclusion} -The DAVInspector development has just started, so please support us with potential error descriptions. We hope DAVInspector and this HOWTO could help your development environment. +The development of DAVInspector has just started, so please support us with potential error descriptions. We hope DAVInspector and this HOWTO may help you to improve your development environment. \subsection{Call for participation} -DAVInspector is open source project under Apache2 License. So anybody is welcome to the project. Please join our development mailing list : \textit{<dav...@li...>} \cite{ml}, if you have interest. +DAVInspector is an open source project published under Apache 2.0 License. Anybody is welcome to the project. If you are interested, feel free to join our development mailing list at \cite{ml}. - -\addcontentsline{toc}{chapter}{References} - +%################################################################################################## +% the bibliography +%################################################################################################## +\begin{flushleft} \begin{thebibliography}{12} \bibitem{ml} DAVInspector Development mailing list - https://lists.sourceforge.net/lists/listinfo/davinspector-developers +\bibitem{java-i18n-res} Java Internationalization homepage - http://java.sun.com/javase/technologies/core/basic/intl/ +\bibitem{java-i18n-tut} Tutorial on core internationalization functionality - http://java.sun.com/docs/books/tutorial/i18n/index.html +\bibitem{log4j} Short introduction to log4j - http://logging.apache.org/log4j/1.2/manual.html \end{thebibliography} +\end{flushleft} \end{document} Property changes on: trunk/Documents/PluginDevelopment_Howto/gui-plugin.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-08-19 12:11:20
|
Revision: 156 http://davinspector.svn.sourceforge.net/davinspector/?rev=156&view=rev Author: wuest Date: 2008-08-19 12:11:16 +0000 (Tue, 19 Aug 2008) Log Message: ----------- Swaped odd/even in the definition of the minor version number. Modified Paths: -------------- trunk/Documents/howto-release.txt Modified: trunk/Documents/howto-release.txt =================================================================== --- trunk/Documents/howto-release.txt 2008-06-17 15:54:37 UTC (rev 155) +++ trunk/Documents/howto-release.txt 2008-08-19 12:11:16 UTC (rev 156) @@ -10,8 +10,8 @@ A Release should be named after the following pattern: <major number>.<minor number>.<bugfix number>[-releasetype] The major number should be increased if, for example, the GUI is replaced or -core modules are redesigned. The minor number should be even if the version is -under development/unstable. The minor number should be odd if the version is +core modules are redesigned. The minor number should be odd if the version is +under development/unstable. The minor number should be even if the version is stable. The bugfix number should only be used for security related patches. The releasetype is optional and could be Dev, Alpha, Beta, RC or Release. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-06-17 15:55:38
|
Revision: 155 http://davinspector.svn.sourceforge.net/davinspector/?rev=155&view=rev Author: wuest Date: 2008-06-17 08:54:37 -0700 (Tue, 17 Jun 2008) Log Message: ----------- Added ant-file for javadoc. Updated comments and package documentation. Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/history/AMessage.java trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java trunk/DAVInspector/src/de/dlr/davinspector/plugin/package.html trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java Added Paths: ----------- trunk/DAVInspector/javadoc.xml Added: trunk/DAVInspector/javadoc.xml =================================================================== --- trunk/DAVInspector/javadoc.xml (rev 0) +++ trunk/DAVInspector/javadoc.xml 2008-06-17 15:54:37 UTC (rev 155) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<project default="javadoc"> + <target name="javadoc"> + <javadoc access="public" author="true" classpath="lib/log4j.jar;D:\src\java\eclipse\plugins\org.junit4_4.3.1\junit.jar" destdir="doc" doctitle="DAVInspector" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="de.dlr.davinspector.plugins.headerplugin,de.dlr.davinspector.http,de.dlr.davinspector.plugins.recordingplugin,de.dlr.davinspector.plugins.xmltreeplugin,de.dlr.davinspector.plugins.raweditplugin,de.dlr.davinspector.relay,de.dlr.davinspector.plugin,de.dlr.davinspector.history,de.dlr.davinspector.plugins.exampleviewplugin,de.dlr.davinspector.common,de.dlr.davinspector.ui,de.dlr.davinspector.configuration,de.dlr.davinspector.plugins.xmlplugin" source="1.5" sourcefiles="src/de/dlr/davinspector/DAVInspector.java" sourcepath="test;src" splitindex="false" use="true" version="true"/> + </target> +</project> Modified: trunk/DAVInspector/src/de/dlr/davinspector/history/AMessage.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/history/AMessage.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/history/AMessage.java 2008-06-17 15:54:37 UTC (rev 155) @@ -100,9 +100,9 @@ /** * Returns the direction (request/reply) of the message. - * @see MessageDirection + * @see de.dlr.davinspector.common.Constant.Direction * - * @return MessageDirection + * @return Direction */ public Direction getDirection() { return myDirection; @@ -110,7 +110,7 @@ /** * This method sets the message direction. - * @see MessageDirection + * @see de.dlr.davinspector.common.Constant.Direction * * @param direction Direction */ Modified: trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/http/HTTPMessageParser.java 2008-06-17 15:54:37 UTC (rev 155) @@ -141,7 +141,7 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.history.AMessageParser#parseMessage() + * @see de.dlr.davinspector.history.AMessageParser#parse() */ public String parse() { myLogger.debug("---- new data event ----"); Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugin/package.html =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugin/package.html 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugin/package.html 2008-06-17 15:54:37 UTC (rev 155) @@ -1,12 +1,6 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> -<html><head><title>BLUB B</title></head><body> - -BLUB B - -<h2>Package Specification</h2> - -BLUB B - +<html><head><title>Plugin</title></head><body> +This package contains all classes and interfaces needed to handle plugins. </body></html> \ No newline at end of file Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -61,7 +61,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IViewPlugin#getUI() + * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { return myJScrollPane; @@ -70,7 +70,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getAuthor() + * @see de.dlr.davinspector.plugin.IPlugin#getAuthor() */ public String getAuthor() { return "Jochen Wuest"; @@ -79,7 +79,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() + * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { return translate("description"); @@ -88,7 +88,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() + * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { return translate("name"); @@ -97,7 +97,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getType() + * @see de.dlr.davinspector.plugin.IPlugin#getType() */ public PluginType getType() { return PluginType.VIEW_GENERAL; @@ -106,7 +106,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getVersion() + * @see de.dlr.davinspector.plugin.IPlugin#getVersion() */ public int getVersion() { return 1; @@ -115,7 +115,8 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPlugInDirection = direction; @@ -150,7 +151,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#isActive() + * @see de.dlr.davinspector.plugin.IPlugin#isActive() */ public Boolean isActive() { return isActive; @@ -159,7 +160,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#setActive(java.lang.Boolean) + * @see de.dlr.davinspector.plugin.IPlugin#setActive(java.lang.Boolean) */ public void setActive(Boolean state) { isActive = state; @@ -168,7 +169,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#update(java.lang.String) + * @see de.dlr.davinspector.plugin.IPlugin#update(de.dlr.davinspector.history.AMessage) */ public void update(AMessage msg) { if (isActive && myJTextPane != null) { Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -82,7 +82,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IViewPlugin#getUI() + * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { return myJPanel; @@ -91,7 +91,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getAuthor() + * @see de.dlr.davinspector.plugin.IPlugin#getAuthor() */ public String getAuthor() { return "Jochen Wuest"; @@ -100,7 +100,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() + * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { return translate("description"); @@ -109,7 +109,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() + * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { return translate("name"); @@ -118,7 +118,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getType() + * @see de.dlr.davinspector.plugin.IPlugin#getType() */ public PluginType getType() { return PluginType.VIEW_GENERAL; @@ -127,16 +127,18 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getVersion() + * @see de.dlr.davinspector.plugin.IPlugin#getVersion() */ public int getVersion() { return 2; } + /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPlugInDirection = direction; @@ -182,7 +184,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#isActive() + * @see de.dlr.davinspector.plugin.IPlugin#isActive() */ public Boolean isActive() { return isActive; @@ -191,7 +193,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#setActive(java.lang.Boolean) + * @see de.dlr.davinspector.plugin.IPlugin#setActive(java.lang.Boolean) */ public void setActive(Boolean state) { isActive = state; @@ -200,7 +202,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#update(java.lang.String) + * @see de.dlr.davinspector.plugin.IPlugin#update(de.dlr.davinspector.history.AMessage) */ public void update(AMessage msg) { clear(); Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -94,7 +94,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IViewPlugin#getUI() + * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { return myJPanel; @@ -103,7 +103,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getAuthor() + * @see de.dlr.davinspector.plugin.IPlugin#getAuthor() */ public String getAuthor() { return "Jochen Wuest"; @@ -112,7 +112,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() + * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { return translate("description"); @@ -121,7 +121,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() + * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { return translate("name"); @@ -130,7 +130,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getType() + * @see de.dlr.davinspector.plugin.IPlugin#getType() */ public PluginType getType() { return PluginType.EDIT_GENERAL; @@ -139,7 +139,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getVersion() + * @see de.dlr.davinspector.plugin.IPlugin#getVersion() */ public int getVersion() { return 1; @@ -148,7 +148,8 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPluginManager = pluginManager; @@ -243,7 +244,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#isActive() + * @see de.dlr.davinspector.plugin.IPlugin#isActive() */ public Boolean isActive() { return isActive; @@ -252,7 +253,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#setActive(java.lang.Boolean) + * @see de.dlr.davinspector.plugin.IPlugin#setActive(java.lang.Boolean) */ public void setActive(Boolean state) { isActive = state; @@ -261,7 +262,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#update(java.lang.String) + * @see de.dlr.davinspector.plugin.IPlugin#update(de.dlr.davinspector.history.AMessage) */ public void update(AMessage msg) { if (isActive && myJTextPane != null) { Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -131,7 +131,8 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPlugInDirection = direction; Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -78,7 +78,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IViewPlugin#getUI() + * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { return myJSplitPane; @@ -87,7 +87,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getAuthor() + * @see de.dlr.davinspector.plugin.IPlugin#getAuthor() */ public String getAuthor() { return "Jochen Wuest"; @@ -96,7 +96,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() + * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { return translate("description"); @@ -105,7 +105,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() + * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { return translate("name"); @@ -114,7 +114,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getType() + * @see de.dlr.davinspector.plugin.IPlugin#getType() */ public PluginType getType() { return PluginType.VIEW_GENERAL; @@ -123,7 +123,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getVersion() + * @see de.dlr.davinspector.plugin.IPlugin#getVersion() */ public int getVersion() { return 1; @@ -132,7 +132,8 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPlugInDirection = direction; @@ -184,7 +185,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#isActive() + * @see de.dlr.davinspector.plugin.IPlugin#isActive() */ public Boolean isActive() { return isActive; @@ -193,7 +194,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#setActive(java.lang.Boolean) + * @see de.dlr.davinspector.plugin.IPlugin#setActive(java.lang.Boolean) */ public void setActive(Boolean state) { isActive = state; @@ -202,7 +203,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#update(java.lang.String) + * @see de.dlr.davinspector.plugin.IPlugin#update(de.dlr.davinspector.history.AMessage) */ public void update(AMessage msg) { if (isActive && myXMLTextPane != null) { Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java 2008-06-17 15:54:37 UTC (rev 155) @@ -78,7 +78,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IViewPlugin#getUI() + * @see de.dlr.davinspector.plugin.IViewPlugin#getUI() */ public JComponent getUI() { return myJSplitPane; @@ -87,7 +87,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getAuthor() + * @see de.dlr.davinspector.plugin.IPlugin#getAuthor() */ public String getAuthor() { return "Jochen Wuest"; @@ -96,7 +96,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() + * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { return translate("description"); @@ -105,7 +105,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() + * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { return translate("name"); @@ -114,7 +114,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getType() + * @see de.dlr.davinspector.plugin.IPlugin#getType() */ public PluginType getType() { return PluginType.VIEW_GENERAL; @@ -123,7 +123,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#getVersion() + * @see de.dlr.davinspector.plugin.IPlugin#getVersion() */ public int getVersion() { return 1; @@ -132,7 +132,8 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#init() + * @see de.dlr.davinspector.plugin.IPlugin#init(de.dlr.davinspector.plugin.PluginManager, + * de.dlr.davinspector.plugin.IPlugin.PluginDirection) */ public void init(PluginManager pluginManager, PluginDirection direction) { myPlugInDirection = direction; @@ -183,7 +184,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#isActive() + * @see de.dlr.davinspector.plugin.IPlugin#isActive() */ public Boolean isActive() { return isActive; @@ -192,7 +193,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#setActive(java.lang.Boolean) + * @see de.dlr.davinspector.plugin.IPlugin#setActive(java.lang.Boolean) */ public void setActive(Boolean state) { isActive = state; @@ -201,7 +202,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Plugin.IPlugin#update(java.lang.String) + * @see de.dlr.davinspector.plugin.IPlugin#update(de.dlr.davinspector.history.AMessage) */ public void update(AMessage msg) { if (isActive && myXMLTreeView != null) { Modified: trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java 2008-06-17 15:02:19 UTC (rev 154) +++ trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java 2008-06-17 15:54:37 UTC (rev 155) @@ -153,7 +153,7 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.relay.IRelayModel#enableAutomode(java.lang.Boolean) + * @see de.dlr.davinspector.relay.IRelayModel#enableAutomode() */ public void enableAutomode() { myPluginManager.disableEditPlugins(); @@ -233,7 +233,7 @@ /** * {@inheritDoc} * - * @see de.dlr.DAVInspector.Relay.IRelayModel#startRelay() + * @see de.dlr.davinspector.relay.IRelayModel#startRelay(de.dlr.davinspector.configuration.Configuration) */ public void startRelay(Configuration configuration) { theRelay = new RelayThread(this, configuration); @@ -256,7 +256,7 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.relay.IRelayModel#writeToClient(java.lang.String) + * @see de.dlr.davinspector.relay.IRelayModel#writeToClient() */ public void writeToClient() { AMessage message = myMessageHistory.getMessage(myActiveClientMessageID); @@ -269,7 +269,7 @@ /** * {@inheritDoc} * - * @see de.dlr.davinspector.relay.IRelayModel#writeToServer(java.lang.String) + * @see de.dlr.davinspector.relay.IRelayModel#writeToServer() */ public void writeToServer() { AMessage message = myMessageHistory.getMessage(myActiveServerMessageID); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-06-17 15:02:36
|
Revision: 154 http://davinspector.svn.sourceforge.net/davinspector/?rev=154&view=rev Author: wuest Date: 2008-06-17 08:02:19 -0700 (Tue, 17 Jun 2008) Log Message: ----------- Added packet description of main package. Changed message flow of edited messages. Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/package.html trunk/DAVInspector/src/de/dlr/davinspector/plugin/PluginManager.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java Modified: trunk/DAVInspector/src/de/dlr/davinspector/package.html =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/package.html 2008-05-02 13:03:31 UTC (rev 153) +++ trunk/DAVInspector/src/de/dlr/davinspector/package.html 2008-06-17 15:02:19 UTC (rev 154) @@ -1,12 +1,6 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> -<html><head><title>BLUB B</title></head><body> - -BLUB B - -<h2>Package Specification</h2> - -BLUB B - +<html><head><title>DAVInspector</title></head><body> +This package is the main package of the application. </body></html> \ No newline at end of file Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugin/PluginManager.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugin/PluginManager.java 2008-05-02 13:03:31 UTC (rev 153) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugin/PluginManager.java 2008-06-17 15:02:19 UTC (rev 154) @@ -36,8 +36,10 @@ import org.apache.log4j.Logger; import de.dlr.davinspector.common.Constant; +import de.dlr.davinspector.common.Constant.Direction; import de.dlr.davinspector.history.AMessage; import de.dlr.davinspector.plugin.IPlugin.PluginDirection; +import de.dlr.davinspector.relay.RelayModel; /** * This class loads all available plugins and manages the activated plugins @@ -64,6 +66,9 @@ /** This list contains all plugins to view/edit messages to the client. */ private List<IPlugin> myActivePluginsClient = new Vector<IPlugin>(); + + /** The RelayModel. */ + private RelayModel relayModel; /** * Default constructor, @@ -81,6 +86,15 @@ } /** + * Set the RelayModel. + * + * @param relay RelayModel + */ + public void setRelayModel(RelayModel relay) { + relayModel = relay; + } + + /** * Searches the plugin directory for jar files and tries to load them * via <code>loadPlugin</code>. */ @@ -295,18 +309,19 @@ } /** - * An edit-plugin signals the completion of an editing activity by calling this method. + * An edit-plugin signals the completion of an editing activity by calling this method. * All active plugins with the same direction are updated. - * NOTE: Raw views are not updated! + * NOTE: Messages need to be parsed again. + * TODO: detailed description of edit workflow * * @param direction {@link PluginDirection} - * @param message {@link AMessage} + * @param data String */ - public void messageEditedEvent(PluginDirection direction, AMessage message) { - if (direction == PluginDirection.CLIENT) { - updateActivePluginsClient(message); + public void messageEditedEvent(PluginDirection direction, String data) { + if (direction == PluginDirection.CLIENT) { + relayModel.updateData(data, Direction.ClientToServer); } else { - updateActivePluginsServer(message); + relayModel.updateData(data, Direction.ServerToClient); } } } Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-05-02 13:03:31 UTC (rev 153) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-06-17 15:02:19 UTC (rev 154) @@ -1,9 +1,9 @@ /* * RawEdit.java * - * TODO: wues_ha Enter comment! + * RawEditPlugin demo class for editing message content. * - * Created: 31.03.2008 wues_ha <email> + * Created: 31.03.2008 Jochen Wuest <joc...@dl...> * Changed: * * $Id$ @@ -47,7 +47,7 @@ /** - * TODO: wues_ha: Enter comment! + * RawEditPlugin demo class for editing message content. * * @version $LastChangedRevision$ * @author Jochen Wuest @@ -201,10 +201,9 @@ myJButtonApply.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { // get edited text from the text pane - myMessage.setRawBody(myJTextPane.getText()); - myMessage.setBody(myJTextPane.getText()); + // myMessage.setRawData(myJTextPane.getText()); // trigger update event with edited data and direction - myPluginManager.messageEditedEvent(myPlugInDirection, myMessage); + myPluginManager.messageEditedEvent(myPlugInDirection, myJTextPane.getText()); } }); } @@ -267,7 +266,7 @@ public void update(AMessage msg) { if (isActive && myJTextPane != null) { myMessage = msg; - myJTextPane.setText(myMessage.getRawBody()); + myJTextPane.setText(myMessage.getRawData()); } } Modified: trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java 2008-05-02 13:03:31 UTC (rev 153) +++ trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayModel.java 2008-06-17 15:02:19 UTC (rev 154) @@ -93,6 +93,7 @@ public RelayModel() { myMessageHistory = new MessageHistory(); myPluginManager = PluginManager.getInstance(); + myPluginManager.setRelayModel(this); // load available plugins myPluginManager.loadAllPlugins(); // load plugin configuration (if available) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-05-02 13:03:41
|
Revision: 153 http://davinspector.svn.sourceforge.net/davinspector/?rev=153&view=rev Author: wuest Date: 2008-05-02 06:03:31 -0700 (Fri, 02 May 2008) Log Message: ----------- Added roadmap section to development page and flash viewer for the mindmap. NOTE: You have to edit the minmap first (translation german->english), then you may upload the page. Modified Paths: -------------- trunk/www/development.html Added Paths: ----------- trunk/www/roadmap/ trunk/www/roadmap/DAVInspector_Roadmap.mm trunk/www/roadmap/flashobject.js trunk/www/roadmap/roadmap_mm.html trunk/www/roadmap/visorFreemind.swf Modified: trunk/www/development.html =================================================================== --- trunk/www/development.html 2008-04-29 18:43:22 UTC (rev 152) +++ trunk/www/development.html 2008-05-02 13:03:31 UTC (rev 153) @@ -1,7 +1,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<title>DAVInspector - News</title> +<title>DAVInspector - Development</title> <meta name="Description" content="" /> <meta name="Keywords" content="" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> @@ -43,11 +43,16 @@ as proposing ideas and new features, reporting bugs, submitting patches, bug-fixes, resources, etc.</p> </p> + <p> </p> + + <h2>DAVInspector Roadmap</h2> + <p>The ideas for future development of DAVInspector are collected using a <a target="_blank" href="roadmap/roadmap_mm.html">mindmap</a>. The original mindmap file is stored in the DAVInspector <a href="http://davinspector.svn.sourceforge.net/viewvc/davinspector/trunk/Documents/DAVInspector_Roadmap.mm">repository</a>. You are also welcome to use the sourceforge.net <a href="http://sourceforge.net/tracker/?group_id=206242">tracker</a> to file feature requests or bugs, of course.</p><br /> + <p>The mindmap was created using <a href="http://freemind.sourceforge.net/">FreeMind</a>.</p> + <p> </p> + <h2> </h2> + <p></p> <p> </p> - <h2> </h2> - <p> - <p> </div> <div id="footer">© 2007-2008 <a href="http://www.dlr.de/sc">Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)</a> </div> Added: trunk/www/roadmap/DAVInspector_Roadmap.mm =================================================================== --- trunk/www/roadmap/DAVInspector_Roadmap.mm (rev 0) +++ trunk/www/roadmap/DAVInspector_Roadmap.mm 2008-05-02 13:03:31 UTC (rev 153) @@ -0,0 +1,203 @@ +<map version="0.9.0_Beta_8"> +<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net --> +<node COLOR="#000000" CREATED="1159959406006" ID="Freemind_Link_558005947" MODIFIED="1209454672309" STYLE="fork"> +<richcontent TYPE="NODE"><html> + <head> + <style type="text/css"> + <!-- + p { margin-top: 0 } + --> + </style> + + </head> + <body> + <p> + DAVInspector + </p> + </body> +</html> +</richcontent> +<font NAME="SansSerif" SIZE="20"/> +<hook NAME="accessories/plugins/AutomaticLayout.properties"/> +<node COLOR="#0033ff" CREATED="1159959726926" ID="Freemind_Link_590288351" MODIFIED="1209454582842" POSITION="left" STYLE="fork" TEXT="Vorhandene Testtools und Bibliotheken"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159961046785" ID="Freemind_Link_1373207250" MODIFIED="1209454582842" STYLE="fork" TEXT="LIB-NEON (http://www.webdav.org/neon/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159959758544" ID="Freemind_Link_856655747" MODIFIED="1209454582842" STYLE="fork" TEXT="Prestan (prestan.sf.net)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159959773173" ID="Freemind_Link_442974162" MODIFIED="1209454582842" STYLE="fork" TEXT="Litmus (http://www.webdav.org/neon/litmus/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1187600409157" ID="Freemind_Link_1642321848" MODIFIED="1209454582842" STYLE="fork" TEXT="Davtool (http://sourceforge.net/projects/davtool/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1159959748444" ID="Freemind_Link_966015816" MODIFIED="1209454582842" POSITION="right" STYLE="fork" TEXT="WebDAV Clients und Hilfen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159960028041" ID="Freemind_Link_840071807" MODIFIED="1209454582857" STYLE="fork" TEXT="Cadaver (http://www.webdav.org/cadaver/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159960085549" ID="Freemind_Link_591596823" MODIFIED="1209454582857" STYLE="fork" TEXT="DAVExplorer (http://www.ics.uci.edu/~webdav/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159960175434" ID="Freemind_Link_1466030852" MODIFIED="1209454582857" STYLE="fork" TEXT="WebDAVPilot (nur für ACLs)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<icon BUILTIN="Mail"/> +</node> +<node COLOR="#00b439" CREATED="1187600560127" ID="Freemind_Link_476069524" MODIFIED="1209454582857" STYLE="fork" TEXT="Konqueror / Explorer"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1159970392024" ID="Freemind_Link_441106247" MODIFIED="1209454582857" POSITION="right" STYLE="fork" TEXT="Mailinglisten"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<cloud/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159970434433" ID="Freemind_Link_390438203" MODIFIED="1209454582873" STYLE="fork" TEXT="Catacomb-dev (http://mailman.webdav.org/mailman/listinfo/catacomb)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970513642" ID="Freemind_Link_1017600584" MODIFIED="1209454582873" STYLE="fork" TEXT="Prestan-dev (https://lists.sourceforge.net/lists/listinfo/prestan-development)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970559633" ID="Freemind_Link_1535009751" MODIFIED="1209454582873" STYLE="fork" TEXT="Neon-dev (http://mailman.webdav.org/mailman/listinfo/neon/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970583750" ID="Freemind_Link_1740179081" MODIFIED="1209454582873" STYLE="fork" TEXT="Litmus-dev (http://mailman.lyra.org/mailman/listinfo/litmus/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1187600582128" ID="Freemind_Link_74086319" MODIFIED="1209454582873" STYLE="fork" TEXT="DataFinder-dev (http://www.sistec.dlr.de/mailman/listinfo/datafinder-dev)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1174998139571" ID="_" MODIFIED="1209454582873" STYLE="fork" TEXT="DAVTool"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1133367283889" ID="Freemind_Link_1150036533" MODIFIED="1209454582904" POSITION="left" STYLE="fork" TEXT="Referenzen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1133365903850" ID="Freemind_Link_561346950" MODIFIED="1209454582904" STYLE="fork" TEXT="Catacomb (WebDAV mit DB-Backend):
http://www.webdav.org/papers/catacomb-apachecon2002.pdf
http://www.cse.ucsc.edu/~hunkim/papers/catacomb-notes-apachecon2002.pdf
http://catacomb.tigris.org
http://www.cse.ucsc.edu/~hunkim/papers/catacomb-CTS04.pdf
https://wiki.sistec.dlr.de/Catacomb

Cadaver WebDAV-Client (Commandline, mit DASL- und DeltaV-Support):
http://www.webdav.org/cadaver/

Neon WebDAV-Library:
http://webdav.org/neon/"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209454681278" ID="Freemind_Link_1207814794" MODIFIED="1209454686184" POSITION="right" STYLE="fork" TEXT="Ideen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209454690497" ID="Freemind_Link_1140490994" MODIFIED="1209454710387" STYLE="fork" TEXT="Slide als Plugin für Client Entwickler"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209454724715" ID="Freemind_Link_355769264" MODIFIED="1209454735402" TEXT="http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/overview-summary.html"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209454738324" ID="Freemind_Link_1210331975" MODIFIED="1209454748730" TEXT="http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209455710327" ID="Freemind_Link_680671269" MODIFIED="1209455728358" STYLE="fork" TEXT="Anzeige der aktuelle Relais-Konfiguration in der Statuszeile"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455731765" ID="Freemind_Link_292502416" MODIFIED="1209455782405" STYLE="fork" TEXT="Exportdialog"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209455783967" ID="Freemind_Link_1323340394" MODIFIED="1209455793154" TEXT="Benutzer kann Trennzeichen auswählen"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209455795467" ID="Freemind_Link_1233271124" MODIFIED="1209455825451" TEXT="Benutzer kann vollständige Nachricht, nur Kopfdaten oder nur Rumpfdaten exportieren"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209455849341" ID="Freemind_Link_1939717951" MODIFIED="1209455896356" STYLE="fork" TEXT="Verlaufsansicht: mehr Details zur Nachricht anzeigen (vllt. Methode/Status, o.ä.)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456103447" ID="Freemind_Link_1526045462" MODIFIED="1209456118057" STYLE="fork" TEXT="Breakpoint-/Haltepunkt-Plugin"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209456119307" ID="Freemind_Link_233890004" MODIFIED="1209456168306" TEXT="einfache Version: Automatikmodus wird bei Auftauchen eines Suchstrings beendet"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209454908900" ID="Freemind_Link_191339046" MODIFIED="1209454912431" POSITION="left" STYLE="fork" TEXT="Todo"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209454914994" ID="Freemind_Link_1364286982" MODIFIED="1209454924384" STYLE="fork" TEXT="HTTPS integration"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209454929212" ID="Freemind_Link_1019200014" MODIFIED="1209456043761" STYLE="fork" TEXT="URL/URI Parsing in Header-Plugin"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455912309" ID="Freemind_Link_1599710519" MODIFIED="1209455943590" STYLE="fork" TEXT="Encoding in des Datenstroms in den ChannelThreads konfigurierbar"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455985058" ID="Freemind_Link_244368749" MODIFIED="1209455999933" STYLE="fork" TEXT="HTTP-Parser"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209456003605" ID="Freemind_Link_1578102731" MODIFIED="1209456016402" TEXT="Chunk-Encoding"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456019323" ID="Freemind_Link_473207624" MODIFIED="1209456028948" TEXT="Transfer-Encoding"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456045495" ID="Freemind_Link_1502184164" MODIFIED="1209456047776" TEXT="URL/URI Parsing"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456065042" ID="Freemind_Link_1888436496" MODIFIED="1209456066542" TEXT="Unit Tests HTTP-Parser vervollständigen"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456088791" ID="Freemind_Link_362340288" MODIFIED="1209456090198" TEXT="Überprüfen, ob alle DAV-Methoden beim Parsen berücksichtigt werden"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209456236399" ID="Freemind_Link_1383684690" MODIFIED="1209456260524" STYLE="fork" TEXT="Rework der Bearbeitungs-Plugin-Schnittstelle!?"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209456284336" ID="Freemind_Link_1107018718" MODIFIED="1209456347054" POSITION="right" STYLE="fork" TEXT="DAVInspector Ressourcen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209456372288" ID="Freemind_Link_1441337649" MODIFIED="1209456385397" STYLE="fork" TEXT="davinspector-developers Mailingliste"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456403334" ID="Freemind_Link_269732704" MODIFIED="1209456409178" STYLE="fork" TEXT=" davinspector-svn Mailingliste"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456412412" ID="Freemind_Link_899732312" MODIFIED="1209456417896" STYLE="fork" TEXT="SF Wiki"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456420381" ID="Freemind_Link_779461019" MODIFIED="1209456428974" STYLE="fork" TEXT="SF Homepage"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456436131" ID="Freemind_Link_1091124601" MODIFIED="1209456441193" STYLE="fork" TEXT="SF Tracker"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +</node> +</map> Added: trunk/www/roadmap/flashobject.js =================================================================== --- trunk/www/roadmap/flashobject.js (rev 0) +++ trunk/www/roadmap/flashobject.js 2008-05-02 13:03:31 UTC (rev 153) @@ -0,0 +1,152 @@ +/* + * FlashObject embed + * by Geoff Stearns (ge...@de..., http://www.deconcept.com/) + * + * v1.1.1 - 05-17-2005 + * + * writes the embed code for a flash movie, includes plugin detection + * + * Usage: + * + * myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor"); + * myFlash.write("objId"); + * + * for best practices, see: + * http://blog.deconcept.com/2005/03/31/proper-flash-embedding-flashobject-best-practices/ + * + */ + +var FlashObject = function(swf, id, w, h, ver, c) { + this.swf = swf; + this.id = id; + this.width = w; + this.height = h; + this.version = ver; + this.align = "middle"; + + this.params = new Object(); + this.variables = new Object(); + + this.redirect = ""; + this.sq = document.location.search.split("?")[1] || ""; + this.bypassTxt = "<p>Already have Macromedia Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>"; + + if (c) this.color = this.addParam('bgcolor', c); + this.addParam('quality', 'high'); // default to high + this.doDetect = getQueryParamValue('detectflash'); +} + +var FOP = FlashObject.prototype; + +FOP.addParam = function(name, value) { this.params[name] = value; } + +FOP.getParams = function() { return this.params; } + +FOP.getParam = function(name) { return this.params[name]; } + +FOP.addVariable = function(name, value) { this.variables[name] = value; } + +FOP.getVariable = function(name) { return this.variables[name]; } + +FOP.getVariables = function() { return this.variables; } + +FOP.getParamTags = function() { + var paramTags = ""; + for (var param in this.getParams()) { + paramTags += '<param name="' + param + '" value="' + this.getParam(param) + '" />'; + } + return (paramTags == "") ? false:paramTags; +} + +FOP.getHTML = function() { + var flashHTML = ""; + if (navigator.plugins && navigator.mimeTypes.length) { // netscape plugin architecture + flashHTML += '<embed type="application/x-shockwave-flash" src="' + this.swf + '" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '"'; + for (var param in this.getParams()) { + flashHTML += ' ' + param + '="' + this.getParam(param) + '"'; + } + if (this.getVariablePairs()) { + flashHTML += ' flashVars="' + this.getVariablePairs() + '"'; + } + flashHTML += '></embed>'; + } else { // PC IE + flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + this.width + '" height="' + this.height + '" name="' + this.id + '" align="' + this.align + '">'; + flashHTML += '<param name="movie" value="' + this.swf + '" />'; + if (this.getParamTags()) { + flashHTML += this.getParamTags(); + } + if (this.getVariablePairs() != null) { + flashHTML += '<param name="flashVars" value="' + this.getVariablePairs() + '" />'; + } + flashHTML += '</object>'; + } + return flashHTML; +} + +FOP.getVariablePairs = function() { + var variablePairs = new Array(); + for (var name in this.getVariables()) { + variablePairs.push(name + "=" + escape(this.getVariable(name))); + } + return (variablePairs.length > 0) ? variablePairs.join("&"):false; +} + +FOP.write = function(elementId) { + if(detectFlash(this.version) || this.doDetect=='false') { + if (elementId) { + document.getElementById(elementId).innerHTML = this.getHTML(); + } else { + document.write(this.getHTML()); + } + } else { + if (this.redirect != "") { + document.location.replace(this.redirect); + } else if (this.altTxt) { + if (elementId) { + document.getElementById(elementId).innerHTML = this.altTxt +""+ this.bypassTxt; + } else { + document.write(this.altTxt +""+ this.bypassTxt); + } + } + } +} + +/* ---- detection functions ---- */ +function getFlashVersion() { + var flashversion = 0; + if (navigator.plugins && navigator.mimeTypes.length) { + var x = navigator.plugins["Shockwave Flash"]; + if(x && x.description) { + var y = x.description; + flashversion = y.charAt(y.indexOf('.')-1); + } + } else { + result = false; + for(var i = 15; i >= 3 && result != true; i--){ + execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript'); + flashversion = i; + } + } + return flashversion; +} + +function detectFlash(ver) { return (getFlashVersion() >= ver) ? true:false; } + +// get value of query string param +function getQueryParamValue(param) { + var q = document.location.search || document.location.href.split("#")[1]; + if (q) { + var detectIndex = q.indexOf(param +"="); + var endIndex = (q.indexOf("&", detectIndex) > -1) ? q.indexOf("&", detectIndex) : q.length; + if (q.length > 1 && detectIndex > -1) { + return q.substring(q.indexOf("=", detectIndex)+1, endIndex); + } else { + return ""; + } + } +} + +/* add Array.push if needed */ +if(Array.prototype.push == null){ + Array.prototype.push = function(item) { this[this.length] = item; return this.length; } +} Added: trunk/www/roadmap/roadmap_mm.html =================================================================== --- trunk/www/roadmap/roadmap_mm.html (rev 0) +++ trunk/www/roadmap/roadmap_mm.html 2008-05-02 13:03:31 UTC (rev 153) @@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <meta name="description" content="davinspector roadmap - mindmap"/> + <meta name="keywords" content="davinspector,roadmap,mindmap,freemind,flash"/> + <title> + DAVInspector Roadmap - Mindmap + </title> +<script type="text/javascript" src="flashobject.js"></script> + <style type="text/css"> /* hide from ie on mac \*/ html { height: 100%; overflow: hidden; } #flashcontent { height: 100%; } /* end hide */ body { height: 100%; margin: 0; padding: 0; background-color: #ffffff; } + </style> +<script language="javascript"> +function giveFocus() +{ +document.visorFreeMind.focus(); +} +</script> + </head> + <body onLoad="giveFocus();"> + <div id="flashcontent" onmouseover="giveFocus();"> Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap + </div> +<script type="text/javascript"> +// <![CDATA[ +var fo = new FlashObject("visorFreemind.swf", "visorFreeMind", "100%", "100%", 6, "#9999ff"); +fo.addParam("quality", "high"); +fo.addParam("bgcolor", "#ffffff"); +fo.addVariable("openUrl", "_blank"); +//fo.addVariable("initLoadFile", "davinspector.svn.sourceforge.net/viewvc/*checkout*/davinspector/trunk/Documents/DAVInspector_Roadmap.mm"); +fo.addVariable("initLoadFile", "DAVInspector_Roadmap.mm"); +fo.addVariable("justMap","true"); +fo.addVariable("startCollapsedToLevel","1") +fo.addVariable("defaultToolTipWordWrap",200); +fo.addVariable("min_alpha_buttons",40); +fo.addVariable("max_alpha_buttons",100); +fo.write("flashcontent"); +// ]]> +</script> + </body> +</html> Added: trunk/www/roadmap/visorFreemind.swf =================================================================== (Binary files differ) Property changes on: trunk/www/roadmap/visorFreemind.swf ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-04-29 18:43:28
|
Revision: 152 http://davinspector.svn.sourceforge.net/davinspector/?rev=152&view=rev Author: killerjoe Date: 2008-04-29 11:43:22 -0700 (Tue, 29 Apr 2008) Log Message: ----------- news.html updated. Modified Paths: -------------- trunk/www/news.html Modified: trunk/www/news.html =================================================================== --- trunk/www/news.html 2008-04-29 18:36:38 UTC (rev 151) +++ trunk/www/news.html 2008-04-29 18:43:22 UTC (rev 152) @@ -19,6 +19,10 @@ <h2><a href="#">DAVInspector News Archive</a></h2> <p></p> + <p class="meta">28.04.2008</p> + <p>DAVInspector Release Candidate 2 released</p> + <p> </p> + <p class="meta">17.04.2008</p> <p>DAVInspector Release Candidate 1 released</p> <p> </p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-04-29 18:36:42
|
Revision: 151 http://davinspector.svn.sourceforge.net/davinspector/?rev=151&view=rev Author: killerjoe Date: 2008-04-29 11:36:38 -0700 (Tue, 29 Apr 2008) Log Message: ----------- Updated plugin section of davi-webpage. Modified Paths: -------------- trunk/www/development.html trunk/www/overview.html Added Paths: ----------- trunk/www/image/1.0.RC1_davi-exampleview.png trunk/www/image/1.0.RC1_davi-exampleview_pluginview.png trunk/www/image/1.0.RC1_davi-header.png trunk/www/image/1.0.RC1_davi-header_pluginview.png trunk/www/image/1.0.RC1_davi-rawedit.png trunk/www/image/1.0.RC1_davi-rawedit_pluginview.png trunk/www/image/1.0.RC1_davi-recordplugin.png trunk/www/image/1.0.RC1_davi-recordplugin_pluginview.png trunk/www/image/1.0.RC1_davi-rohdaten.png trunk/www/image/1.0.RC1_davi-rohdaten_pluginview.png trunk/www/image/1.0.RC1_davi-xmltree_pluginview.png trunk/www/image/1.0.RC1_davi-xmltreepng.png trunk/www/image/1.0.RC1_davi-xmltreeview.png trunk/www/image/1.0.RC1_davi-xmltreeview_pluginview.png Modified: trunk/www/development.html =================================================================== --- trunk/www/development.html 2008-04-29 14:12:55 UTC (rev 150) +++ trunk/www/development.html 2008-04-29 18:36:38 UTC (rev 151) @@ -25,7 +25,7 @@ <div id="content"> <h2>DAVInspector Development</h2> <p> - <p>DAVInspector could be extented by the use of plugins. To find out how to write you own plugin please take a look at the <a href="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html">DAVInspectorPlugin-Develement Howto</a> - <A HREF="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.pdf"><b>PDF</b></A> + <p>DAVInspector could be extented by the use of plugins. To find out how to write you own plugin please take a look at the <a href="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html">DAVInspectorPlugin-Develement Howto</a> - <A HREF="DAVInspector_plugin_develement_howto/DAVInspector_Plugin_develement_howto.pdf"><b>PDF</b></A> <p> </p> Added: trunk/www/image/1.0.RC1_davi-exampleview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-exampleview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-exampleview_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-exampleview_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-header.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-header.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-header_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-header_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-rawedit.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-rawedit.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-rawedit_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-rawedit_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-recordplugin.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-recordplugin.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-recordplugin_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-recordplugin_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-rohdaten.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-rohdaten.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-rohdaten_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-rohdaten_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-xmltree_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-xmltree_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-xmltreepng.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-xmltreepng.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-xmltreeview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-xmltreeview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/image/1.0.RC1_davi-xmltreeview_pluginview.png =================================================================== (Binary files differ) Property changes on: trunk/www/image/1.0.RC1_davi-xmltreeview_pluginview.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/www/overview.html =================================================================== --- trunk/www/overview.html 2008-04-29 14:12:55 UTC (rev 150) +++ trunk/www/overview.html 2008-04-29 18:36:38 UTC (rev 151) @@ -16,7 +16,7 @@ </div> <div id="menu"> <a href="index.html">Home</a> <a href="overview.html">Overview</a> <a href="news.html">News</a> <a href="download.html">Download</a> <a href="development.html">Development</a></div> <div id="content"> - <h2><a href="#">An short overview about DAVInspector</a></h2> + <h2>An short overview about DAVInspector</h2> <p> The main goal of this project is to minimize time and effort for recurring tests of WebDAV applications. This Tool offers developers and testers the @@ -35,6 +35,60 @@ <img src="image/prototype.png" alt="Prototype of DAVInspector" title="Prototype of DAVInspector"> <br> </div> + + <div id="content"> + <h2>Available and planed plugins</h2> + <p> + <h3>HeaderPlugin</h3><br /> + <p>Displays the message header information.<br /></p> + <img src="image/1.0.RC1_davi-header_pluginview.png" alt="HeaderPlugin" title="HeaderPlugin"> + <br><br> + <br><br> + + <h3>XMLPlugin</h3> + <p>Shows the xml content of the message body.<br /></p> + <img src="image/1.0.RC1_davi-xmltreeview_pluginview.png" alt="XMLPlugin" title="XMLPlugin"> + <br><br> + <br><br> + + <h3>XMLTreePlugin</h3> + <p>Shows the xml content of the message body in a tree view.<br /></p> + <img src="image/1.0.RC1_davi-xmltree_pluginview.png" alt="XMLTreePlugin" title="XMLTreePlugin"> + <br><br> + <br><br> + + <h3>RawEditPlugin</h3> + <p>Plugin that could be used to paste custom body informations to a choosen HTTP/WebDAV Method type.<br /></p> + <img src="image/1.0.RC1_davi-rawedit_pluginview.png" alt="RawEditPlugin" title="RawEditPlugin"> + <br><br> + <br><br> + + <h3>HeaderViewPlugin</h3> + <p>Plugin that shows custom fields of the message header.<br /></p> + <img src="image/1.0.RC1_davi-header_pluginview.png" alt="HeaderViewPlugin" title="HeaderViewPlugin"> + <br><br> + <br><br> + + <h3>RawDataPlugin</h3> + <p>Plugin that shows the message stream as raw data.<br /></p> + <img src="image/1.0.RC1_davi-rohdaten_pluginview.png" alt="RawDataPlugin" title="RawDataPlugin"> + <br><br> + <br><br> + + <h3>RecordPlugin</h3> + <p>Plugin that shows the message stream as raw data.<br /></p> + <img src="image/1.0.RC1_davi-recordplugin_pluginview.png" alt="RecordPlugin" title="RecordPlugin"> + <br><br> + <br><br> + + <h3>ExampleViewPlugin</h3> + <p>Plugin that is a empty view plugin as template for own development..<br /></p> + <img src="image/1.0.RC1_davi-exampleview_pluginview.png" alt="RecordPlugin" title="RecordPlugin"> + <br><br> + <br><br> + + + </div> <div id="footer">© 2007-2008 <a href="http://www.dlr.de/sc">Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)</a> </div> </div> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-29 14:13:01
|
Revision: 150 http://davinspector.svn.sourceforge.net/davinspector/?rev=150&view=rev Author: wuest Date: 2008-04-29 07:12:55 -0700 (Tue, 29 Apr 2008) Log Message: ----------- changed logo Modified Paths: -------------- trunk/www/style/logo.gif Modified: trunk/www/style/logo.gif =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-29 09:03:44
|
Revision: 149 http://davinspector.svn.sourceforge.net/davinspector/?rev=149&view=rev Author: wuest Date: 2008-04-29 02:03:36 -0700 (Tue, 29 Apr 2008) Log Message: ----------- Added brief instructions how to use DAVInspector. Added notice to change the website content for a release. Modified Paths: -------------- trunk/Documents/howto-release.txt Added Paths: ----------- trunk/Documents/using-davinspector.txt Modified: trunk/Documents/howto-release.txt =================================================================== --- trunk/Documents/howto-release.txt 2008-04-29 08:08:56 UTC (rev 148) +++ trunk/Documents/howto-release.txt 2008-04-29 09:03:36 UTC (rev 149) @@ -13,7 +13,7 @@ core modules are redesigned. The minor number should be even if the version is under development/unstable. The minor number should be odd if the version is stable. The bugfix number should only be used for security related patches. The -releasetype is optional and could be Alpha, Beta, RC or Release. +releasetype is optional and could be Dev, Alpha, Beta, RC or Release. Update these files before the release: - Constant.java (Version) @@ -21,6 +21,7 @@ Release steps: - Set the version number according to the above defined pattern and check in. + Remember to change the version number in Constant.java AND build-user.xml! - Tag the release (SVN). - After the tagging is done, change the version number again. - Build the release @@ -29,3 +30,4 @@ - Create RELEASE file - Upload the release to ftp://upload.sourceforge.net/incoming - Login on SF.NET, got to "Admin->File Releases" and add the release. +- Change the index.html AND download.html AND news.html of the project home page. Added: trunk/Documents/using-davinspector.txt =================================================================== --- trunk/Documents/using-davinspector.txt (rev 0) +++ trunk/Documents/using-davinspector.txt 2008-04-29 09:03:36 UTC (rev 149) @@ -0,0 +1,43 @@ +Using DAVInspector +-------------------------------------------------------------------------------- + +This is a short description on how to use DAVInscpector. + +Starting DAVInspector +-------------------------------------------------------------------------------- +First the download the latest stable version of DAVInspector from +http://sourceforge.net/projects/davinspector/. Afterwards extract all files to a +directory of your choice. + +To start DAVInspector use +- "DAVInspector.bat" on Microsoft Windows plattforms +- "DAVInspector.sh" on *nix plattforms +- or start the program vai "java -jar davinspector.jar" + +Remember: You need Java 1.5 or higher. + +Configuring DAVInspector +-------------------------------------------------------------------------------- +First you have to configure DAVInspector to work properly. Choose "File" from +the menu and then "Configuration". In the configuration window you can now edit +the addresses and ports of the client and server part of DAVInspector. + +Client-Address: local address DAVInspector will listen on; normally left blank +Client-Port : local port DAVInspector will listen on +Server-Address: remote address; to this address the requests are forwarded +Server-Port : remote port; this destination port + +Example: +DAVInspector is listening on port 9999 for requests. The requests are then +fowarded to webdav-test.net:8080. + +Client-Address: +Client-Port : 9999 +Server-Address: webdav-test.net +Server-Port : 8080 + + +First Steps +-------------------------------------------------------------------------------- + +TBW This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-29 08:09:01
|
Revision: 148 http://davinspector.svn.sourceforge.net/davinspector/?rev=148&view=rev Author: wuest Date: 2008-04-29 01:08:56 -0700 (Tue, 29 Apr 2008) Log Message: ----------- Added some ideas and todos. Added Paths: ----------- trunk/Documents/DAVInspector_Roadmap.mm Added: trunk/Documents/DAVInspector_Roadmap.mm =================================================================== --- trunk/Documents/DAVInspector_Roadmap.mm (rev 0) +++ trunk/Documents/DAVInspector_Roadmap.mm 2008-04-29 08:08:56 UTC (rev 148) @@ -0,0 +1,203 @@ +<map version="0.9.0_Beta_8"> +<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net --> +<node COLOR="#000000" CREATED="1159959406006" ID="Freemind_Link_558005947" MODIFIED="1209454672309" STYLE="fork"> +<richcontent TYPE="NODE"><html> + <head> + <style type="text/css"> + <!-- + p { margin-top: 0 } + --> + </style> + + </head> + <body> + <p> + DAVInspector + </p> + </body> +</html> +</richcontent> +<font NAME="SansSerif" SIZE="20"/> +<hook NAME="accessories/plugins/AutomaticLayout.properties"/> +<node COLOR="#0033ff" CREATED="1159959726926" ID="Freemind_Link_590288351" MODIFIED="1209454582842" POSITION="left" STYLE="fork" TEXT="Vorhandene Testtools und Bibliotheken"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159961046785" ID="Freemind_Link_1373207250" MODIFIED="1209454582842" STYLE="fork" TEXT="LIB-NEON (http://www.webdav.org/neon/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159959758544" ID="Freemind_Link_856655747" MODIFIED="1209454582842" STYLE="fork" TEXT="Prestan (prestan.sf.net)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159959773173" ID="Freemind_Link_442974162" MODIFIED="1209454582842" STYLE="fork" TEXT="Litmus (http://www.webdav.org/neon/litmus/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1187600409157" ID="Freemind_Link_1642321848" MODIFIED="1209454582842" STYLE="fork" TEXT="Davtool (http://sourceforge.net/projects/davtool/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1159959748444" ID="Freemind_Link_966015816" MODIFIED="1209454582842" POSITION="right" STYLE="fork" TEXT="WebDAV Clients und Hilfen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159960028041" ID="Freemind_Link_840071807" MODIFIED="1209454582857" STYLE="fork" TEXT="Cadaver (http://www.webdav.org/cadaver/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159960085549" ID="Freemind_Link_591596823" MODIFIED="1209454582857" STYLE="fork" TEXT="DAVExplorer (http://www.ics.uci.edu/~webdav/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159960175434" ID="Freemind_Link_1466030852" MODIFIED="1209454582857" STYLE="fork" TEXT="WebDAVPilot (nur für ACLs)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<icon BUILTIN="Mail"/> +</node> +<node COLOR="#00b439" CREATED="1187600560127" ID="Freemind_Link_476069524" MODIFIED="1209454582857" STYLE="fork" TEXT="Konqueror / Explorer"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1159970392024" ID="Freemind_Link_441106247" MODIFIED="1209454582857" POSITION="right" STYLE="fork" TEXT="Mailinglisten"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<cloud/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1159970434433" ID="Freemind_Link_390438203" MODIFIED="1209454582873" STYLE="fork" TEXT="Catacomb-dev (http://mailman.webdav.org/mailman/listinfo/catacomb)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970513642" ID="Freemind_Link_1017600584" MODIFIED="1209454582873" STYLE="fork" TEXT="Prestan-dev (https://lists.sourceforge.net/lists/listinfo/prestan-development)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970559633" ID="Freemind_Link_1535009751" MODIFIED="1209454582873" STYLE="fork" TEXT="Neon-dev (http://mailman.webdav.org/mailman/listinfo/neon/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1159970583750" ID="Freemind_Link_1740179081" MODIFIED="1209454582873" STYLE="fork" TEXT="Litmus-dev (http://mailman.lyra.org/mailman/listinfo/litmus/)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1187600582128" ID="Freemind_Link_74086319" MODIFIED="1209454582873" STYLE="fork" TEXT="DataFinder-dev (http://www.sistec.dlr.de/mailman/listinfo/datafinder-dev)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1174998139571" ID="_" MODIFIED="1209454582873" STYLE="fork" TEXT="DAVTool"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1133367283889" ID="Freemind_Link_1150036533" MODIFIED="1209454582904" POSITION="left" STYLE="fork" TEXT="Referenzen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1133365903850" ID="Freemind_Link_561346950" MODIFIED="1209454582904" STYLE="fork" TEXT="Catacomb (WebDAV mit DB-Backend):
http://www.webdav.org/papers/catacomb-apachecon2002.pdf
http://www.cse.ucsc.edu/~hunkim/papers/catacomb-notes-apachecon2002.pdf
http://catacomb.tigris.org
http://www.cse.ucsc.edu/~hunkim/papers/catacomb-CTS04.pdf
https://wiki.sistec.dlr.de/Catacomb

Cadaver WebDAV-Client (Commandline, mit DASL- und DeltaV-Support):
http://www.webdav.org/cadaver/

Neon WebDAV-Library:
http://webdav.org/neon/"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209454681278" ID="Freemind_Link_1207814794" MODIFIED="1209454686184" POSITION="right" STYLE="fork" TEXT="Ideen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209454690497" ID="Freemind_Link_1140490994" MODIFIED="1209454710387" STYLE="fork" TEXT="Slide als Plugin für Client Entwickler"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209454724715" ID="Freemind_Link_355769264" MODIFIED="1209454735402" TEXT="http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/overview-summary.html"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209454738324" ID="Freemind_Link_1210331975" MODIFIED="1209454748730" TEXT="http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209455710327" ID="Freemind_Link_680671269" MODIFIED="1209455728358" STYLE="fork" TEXT="Anzeige der aktuelle Relais-Konfiguration in der Statuszeile"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455731765" ID="Freemind_Link_292502416" MODIFIED="1209455782405" STYLE="fork" TEXT="Exportdialog"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209455783967" ID="Freemind_Link_1323340394" MODIFIED="1209455793154" TEXT="Benutzer kann Trennzeichen auswählen"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209455795467" ID="Freemind_Link_1233271124" MODIFIED="1209455825451" TEXT="Benutzer kann vollständige Nachricht, nur Kopfdaten oder nur Rumpfdaten exportieren"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209455849341" ID="Freemind_Link_1939717951" MODIFIED="1209455896356" STYLE="fork" TEXT="Verlaufsansicht: mehr Details zur Nachricht anzeigen (vllt. Methode/Status, o.ä.)"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456103447" ID="Freemind_Link_1526045462" MODIFIED="1209456118057" STYLE="fork" TEXT="Breakpoint-/Haltepunkt-Plugin"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209456119307" ID="Freemind_Link_233890004" MODIFIED="1209456168306" TEXT="einfache Version: Automatikmodus wird bei Auftauchen eines Suchstrings beendet"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209454908900" ID="Freemind_Link_191339046" MODIFIED="1209454912431" POSITION="left" STYLE="fork" TEXT="Todo"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209454914994" ID="Freemind_Link_1364286982" MODIFIED="1209454924384" STYLE="fork" TEXT="HTTPS integration"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209454929212" ID="Freemind_Link_1019200014" MODIFIED="1209456043761" STYLE="fork" TEXT="URL/URI Parsing in Header-Plugin"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455912309" ID="Freemind_Link_1599710519" MODIFIED="1209455943590" STYLE="fork" TEXT="Encoding in des Datenstroms in den ChannelThreads konfigurierbar"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209455985058" ID="Freemind_Link_244368749" MODIFIED="1209455999933" STYLE="fork" TEXT="HTTP-Parser"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +<node COLOR="#990000" CREATED="1209456003605" ID="Freemind_Link_1578102731" MODIFIED="1209456016402" TEXT="Chunk-Encoding"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456019323" ID="Freemind_Link_473207624" MODIFIED="1209456028948" TEXT="Transfer-Encoding"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456045495" ID="Freemind_Link_1502184164" MODIFIED="1209456047776" TEXT="URL/URI Parsing"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456065042" ID="Freemind_Link_1888436496" MODIFIED="1209456066542" TEXT="Unit Tests HTTP-Parser vervollständigen"> +<font NAME="SansSerif" SIZE="14"/> +</node> +<node COLOR="#990000" CREATED="1209456088791" ID="Freemind_Link_362340288" MODIFIED="1209456090198" TEXT="Überprüfen, ob alle DAV-Methoden beim Parsen berücksichtigt werden"> +<font NAME="SansSerif" SIZE="14"/> +</node> +</node> +<node COLOR="#00b439" CREATED="1209456236399" ID="Freemind_Link_1383684690" MODIFIED="1209456260524" STYLE="fork" TEXT="Rework der Bearbeitungs-Plugin-Schnittstelle!?"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +<node COLOR="#0033ff" CREATED="1209456284336" ID="Freemind_Link_1107018718" MODIFIED="1209456347054" POSITION="right" STYLE="fork" TEXT="DAVInspector Ressourcen"> +<edge STYLE="sharp_bezier" WIDTH="8"/> +<font NAME="SansSerif" SIZE="18"/> +<node COLOR="#00b439" CREATED="1209456372288" ID="Freemind_Link_1441337649" MODIFIED="1209456385397" STYLE="fork" TEXT="davinspector-developers Mailingliste"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456403334" ID="Freemind_Link_269732704" MODIFIED="1209456409178" STYLE="fork" TEXT=" davinspector-svn Mailingliste"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456412412" ID="Freemind_Link_899732312" MODIFIED="1209456417896" STYLE="fork" TEXT="SF Wiki"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456420381" ID="Freemind_Link_779461019" MODIFIED="1209456428974" STYLE="fork" TEXT="SF Homepage"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +<node COLOR="#00b439" CREATED="1209456436131" ID="Freemind_Link_1091124601" MODIFIED="1209456441193" STYLE="fork" TEXT="SF Tracker"> +<edge STYLE="bezier" WIDTH="thin"/> +<font NAME="SansSerif" SIZE="16"/> +</node> +</node> +</node> +</map> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 19:24:26
|
Revision: 147 http://davinspector.svn.sourceforge.net/davinspector/?rev=147&view=rev Author: wuest Date: 2008-04-28 12:24:07 -0700 (Mon, 28 Apr 2008) Log Message: ----------- . Modified Paths: -------------- trunk/www/index.html Modified: trunk/www/index.html =================================================================== --- trunk/www/index.html 2008-04-28 19:14:10 UTC (rev 146) +++ trunk/www/index.html 2008-04-28 19:24:07 UTC (rev 147) @@ -46,7 +46,7 @@ <br> </span><a href="http://www.apache.org/licenses/LICENSE-2.0"><span style="" lang="EN-GB">http://www.apache.org/licenses/LICENSE-2.0</span></a><span style="" lang="EN-GB"><br> <br> - Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. See the License for the specific language governing permissions and limitations under the License. <br style=""> <!-- [if !supportLineBreakNewLine] --><br style=""> <!-- [endif] --><o:p></o:p></span></p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 19:15:24
|
Revision: 146 http://davinspector.svn.sourceforge.net/davinspector/?rev=146&view=rev Author: wuest Date: 2008-04-28 12:14:10 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Added entries for RC2. Changed url to the Ant project. Modified Paths: -------------- trunk/www/download.html trunk/www/index.html trunk/www/news.html Modified: trunk/www/download.html =================================================================== --- trunk/www/download.html 2008-04-28 17:42:45 UTC (rev 145) +++ trunk/www/download.html 2008-04-28 19:14:10 UTC (rev 146) @@ -22,13 +22,13 @@ <h2>Release</h2> <p> To build or run DAVInspector you need a Java 2 Runtime Environment (JRE) with a version number 1.5.0 and higher. You can download the JRE for a number of platforms from http://java.sun.com. <br /> -If you want to build DAVInspector you additionally need a recent version of the Jakarta Ant build tool. You can download Ant from http://jakarta.apache.org. +If you want to build DAVInspector you additionally need a recent version of the Ant build tool. You can download Ant from http://ant.apache.org/. </p> <p> </p> <h2>Get a stable version of DAVInspector</h2> <p> -<a href="http://sourceforge.net/project/showfiles.php?group_id=206242&package_id=246714&release_id=592882">Download</a> the latest stable release build of DAVInspector from SF.NET <a href="http://sourceforge.net/project/showfiles.php?group_id=206242&package_id=246714&release_id=592882">download page</a>. +<a href="http://sourceforge.net/project/showfiles.php?group_id=206242">Download</a> the latest stable release build of DAVInspector from SF.NET <a href="http://sourceforge.net/project/showfiles.php?group_id=206242">download page</a>. </p> <p> </p> Modified: trunk/www/index.html =================================================================== --- trunk/www/index.html 2008-04-28 17:42:45 UTC (rev 145) +++ trunk/www/index.html 2008-04-28 19:14:10 UTC (rev 146) @@ -27,8 +27,8 @@ <h2><a href="news.html">Latest news</a></h2> - <p class="meta">17.04.2008</p> - <p>DAVInspector Release Candidate 1 released</p> + <p class="meta">28.04.2008</p> + <p>DAVInspector Release Candidate 2 released</p> <p> </p> <h2><a href="download.html">Download</a></h2> Modified: trunk/www/news.html =================================================================== --- trunk/www/news.html 2008-04-28 17:42:45 UTC (rev 145) +++ trunk/www/news.html 2008-04-28 19:14:10 UTC (rev 146) @@ -17,8 +17,12 @@ <div id="menu"> <a href="index.html">Home</a> <a href="overview.html">Overview</a> <a href="news.html">News</a> <a href="download.html">Download</a> <a href="development.html">Development</a></div> <div id="content"> <h2><a href="#">DAVInspector News Archive</a></h2> - <p> + <p></p> + <p class="meta">17.04.2008</p> + <p>DAVInspector Release Candidate 1 released</p> + <p> </p> + </div> <div id="footer">© 2007-2008 <a href="http://www.dlr.de/sc">Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)</a> </div> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 17:42:57
|
Revision: 145 http://davinspector.svn.sourceforge.net/davinspector/?rev=145&view=rev Author: wuest Date: 2008-04-28 10:42:45 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Post RC2 / switched to -dev Version Modified Paths: -------------- trunk/DAVInspector/build-user.xml trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java Modified: trunk/DAVInspector/build-user.xml =================================================================== --- trunk/DAVInspector/build-user.xml 2008-04-28 17:37:56 UTC (rev 144) +++ trunk/DAVInspector/build-user.xml 2008-04-28 17:42:45 UTC (rev 145) @@ -2,7 +2,7 @@ <?eclipse.ant.import?> <project> <property name="project.name" value="DAVInspector"/> - <property name="project.version" value="1.0-RC1-dev"/> + <property name="project.version" value="1.0-RC2-dev"/> <target name="dist" description="Generates distribution in subdirectory dist"> <!-- Handle OS-specific properties --> Modified: trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2008-04-28 17:37:56 UTC (rev 144) +++ trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2008-04-28 17:42:45 UTC (rev 145) @@ -88,7 +88,7 @@ public static final String APP_TITLE = "DAVInspector"; /** Version of the application. */ - public static final String APP_VERSION = "1.0-RC2"; + public static final String APP_VERSION = "1.0-RC2-dev"; /** Filename of the configuration file. */ public static final String APP_CONFIGURATION_FILENAME = "config.properties"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 17:38:13
|
Revision: 144 http://davinspector.svn.sourceforge.net/davinspector/?rev=144&view=rev Author: wuest Date: 2008-04-28 10:37:56 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Prep RC2 Added Paths: ----------- tags/DAVInspector-1.0-RC2/ Copied: tags/DAVInspector-1.0-RC2 (from rev 143, trunk/DAVInspector) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 17:35:27
|
Revision: 143 http://davinspector.svn.sourceforge.net/davinspector/?rev=143&view=rev Author: wuest Date: 2008-04-28 10:35:12 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Preparation for RC2. Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java Modified: trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2008-04-28 13:54:35 UTC (rev 142) +++ trunk/DAVInspector/src/de/dlr/davinspector/common/Constant.java 2008-04-28 17:35:12 UTC (rev 143) @@ -88,7 +88,7 @@ public static final String APP_TITLE = "DAVInspector"; /** Version of the application. */ - public static final String APP_VERSION = "1.0-RC1"; + public static final String APP_VERSION = "1.0-RC2"; /** Filename of the configuration file. */ public static final String APP_CONFIGURATION_FILENAME = "config.properties"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 13:54:42
|
Revision: 142 http://davinspector.svn.sourceforge.net/davinspector/?rev=142&view=rev Author: wuest Date: 2008-04-28 06:54:35 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Added an error message dialog to the relay thread, corrected spelling in README and set default log4j properties. Modified Paths: -------------- trunk/DAVInspector/README.txt trunk/DAVInspector/log4j.properties trunk/DAVInspector/resource/TextBundle.properties trunk/DAVInspector/resource/TextBundle_de_DE.properties trunk/DAVInspector/src/de/dlr/davinspector/common/Util.java trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayThread.java Modified: trunk/DAVInspector/README.txt =================================================================== --- trunk/DAVInspector/README.txt 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/README.txt 2008-04-28 13:54:35 UTC (rev 142) @@ -2,7 +2,7 @@ ================================================================================ About DAVInspector ------------------ -DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too. +DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be supported too. DAVInspector is developed by employees of the the institution "Simulation and Software Technology" (SISTEC) at the German Aerospace Center DLR. @@ -11,11 +11,10 @@ Starting DAVInspector --------------------- -- Windows - -- Linux - java -jar davinspector.jar - +java -jar davinspector.jar + +For convenience you can also use "DAVInspector.bat" on windows plattforms or "DAVInspector.sh" under *nix to start DAVInspector. + Please note that DAVnspector requires JAVA 5 or later. @@ -31,7 +30,7 @@ Bugs, Support, Help, Feature Requests ------------------------------------- -DAVInspector is an open volunteer project based on the spirit of the Open Development and Free Software. You can visit the project home, joind mailing lists and contribute ideas at SourceForge.net: +DAVInspector is an open volunteer project based on the spirit of the Open Development and Free Software. You can visit the project home, join mailing lists and contribute ideas at SourceForge.net: http://sourceforge.net/projects/davinspector/ @@ -40,11 +39,11 @@ License ------- -Copyright 2006 Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR) +Copyright 2006 Deutsches Zentrum fuer Luft- und Raumfahrt e.V. (DLR) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. See the License for the specific language governing permissions and limitations under the License. Modified: trunk/DAVInspector/log4j.properties =================================================================== --- trunk/DAVInspector/log4j.properties 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/log4j.properties 2008-04-28 13:54:35 UTC (rev 142) @@ -3,11 +3,11 @@ # Set Log-Level for DAVInspector log4j.logger.de.dlr.davinspector=ERROR, system -log4j.logger.de.dlr.davinspector.plugin=DEBUG, plugin -log4j.logger.de.dlr.davinspector.plugins=DEBUG, plugin -log4j.logger.de.dlr.davinspector.http=DEBUG, messageparser -log4j.logger.de.dlr.davinspector.history=DEBUG, messageparser -log4j.logger.de.dlr.davinspector.relay=DEBUG, relay +log4j.logger.de.dlr.davinspector.plugin=ERROR, plugin +log4j.logger.de.dlr.davinspector.plugins=ERROR, plugin +log4j.logger.de.dlr.davinspector.http=ERROR, messageparser +log4j.logger.de.dlr.davinspector.history=ERROR, messageparser +log4j.logger.de.dlr.davinspector.relay=ERROR, relay # Configuration of the general Log-File log4j.appender.system=org.apache.log4j.FileAppender Modified: trunk/DAVInspector/resource/TextBundle.properties =================================================================== --- trunk/DAVInspector/resource/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/resource/TextBundle.properties 2008-04-28 13:54:35 UTC (rev 142) @@ -42,9 +42,13 @@ #save as dialog file chooser dlg_title_saveas=Save as ... +#error dialog +dlg_error_title=Error +dlg_error_text=An error occurred + #io error dialog dlg_ioerror_title=Error -dlg_ioerror_text=File IO-Error. +dlg_ioerror_text=File IO-Error #tabs tab_raw=Raw Modified: trunk/DAVInspector/resource/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/resource/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/resource/TextBundle_de_DE.properties 2008-04-28 13:54:35 UTC (rev 142) @@ -42,9 +42,13 @@ #save as dialog file chooser dlg_title_saveas=Speichern unter ... +#error dialog +dlg_error_title=Fehler +dlg_error_text=Ein Fehler ist aufgetreten + #io error dialog dlg_ioerror_title=Fehler -dlg_ioerror_text=Fehler bei der Ein-/Ausgabe. +dlg_ioerror_text=Fehler bei der Ein-/Ausgabe #tabs tab_raw=Rohdaten Modified: trunk/DAVInspector/src/de/dlr/davinspector/common/Util.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/common/Util.java 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/src/de/dlr/davinspector/common/Util.java 2008-04-28 13:54:35 UTC (rev 142) @@ -121,4 +121,17 @@ Internationalization.getTranslation("dlg_ioerror_title"), JOptionPane.ERROR_MESSAGE); } + + /** + * This method opens a dialog window displaying the Exception. + * + * @param e {@link Exception} + */ + public static void showExceptionMessageDialog(Exception e) { + JOptionPane.showMessageDialog(null, + Internationalization.getTranslation("dlg_error_text") + "\n" + + e.getLocalizedMessage(), + Internationalization.getTranslation("dlg_error_title"), + JOptionPane.ERROR_MESSAGE); + } } Modified: trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayThread.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayThread.java 2008-04-28 06:52:57 UTC (rev 141) +++ trunk/DAVInspector/src/de/dlr/davinspector/relay/RelayThread.java 2008-04-28 13:54:35 UTC (rev 142) @@ -36,6 +36,7 @@ import de.dlr.davinspector.common.Constant; import de.dlr.davinspector.common.Constant.Direction; +import de.dlr.davinspector.common.Util; import de.dlr.davinspector.configuration.Configuration; @@ -83,23 +84,27 @@ */ public RelayThread(IRelayModel aRelayModel, Configuration configuration) { isActive = true; - // TODO: blockieren bis sockets geschlossen sind. myRelayModel = aRelayModel; try { - InetAddress serverAddress = InetAddress.getByName(configuration.getClientAddress()); - InetAddress clientAddress = InetAddress.getByName(configuration.getServerAddress()); - + InetAddress clientAddress = InetAddress.getByName(configuration.getClientAddress()); + myLogger.debug("Source " + clientAddress.getHostAddress() + ":" + configuration.getClientPort()); + if (clientAddress == null) { relayServerSocket = new ServerSocket(configuration.getClientPort(), Constant.RELAY_BACKLOG); } else { relayServerSocket = new ServerSocket(configuration.getClientPort(), Constant.RELAY_BACKLOG, clientAddress); } relayServerSocket.setReuseAddress(true); + + InetAddress serverAddress = InetAddress.getByName(configuration.getServerAddress()); myDestinationAddress = serverAddress; myDestinationPort = configuration.getServerPort(); + myLogger.debug("Destination " + myDestinationAddress.getHostAddress() + ":" + myDestinationPort); } catch (UnknownHostException uhe) { + Util.showExceptionMessageDialog(uhe); myLogger.error(uhe.getMessage(), uhe); } catch (IOException ioe) { + Util.showExceptionMessageDialog(ioe); myLogger.error(ioe.getMessage(), ioe); } start(); @@ -121,7 +126,7 @@ myLogger.debug("Accepting client connection"); try { // Connect to the server - Socket serverSideSocket = new Socket(myDestinationAddress, myDestinationPort); + Socket serverSideSocket = new Socket(myDestinationAddress.getHostAddress(), myDestinationPort); serverSideSocket.setSoLinger(true, Constant.RELAY_LINGERTIME); myLogger.debug("Established connection to the server"); serverToClientChannel = new ChannelThread(serverSideSocket, clientSideSocket, (IRelayThread) this); @@ -156,15 +161,17 @@ synchronized (lock) { isActive = false; myLogger.debug("Stopping stage: Shutting down ChannelThreads " + activeCount()); - serverToClientChannel.shutdown(); - clientToServerChannel.shutdown(); + if (clientToServerChannel != null && serverToClientChannel != null) { + clientToServerChannel.shutdown(); + serverToClientChannel.shutdown(); + } } try { // INFO: A "java.net.SocketException: socket closed" is thrown, but that's okay with us myLogger.debug("Stopping stage: Closing Server Socket " + activeCount()); relayServerSocket.close(); } catch (IOException ioe) { - myLogger.fatal(ioe.getMessage(), ioe); + myLogger.error(ioe.getMessage(), ioe); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-28 06:52:59
|
Revision: 141 http://davinspector.svn.sourceforge.net/davinspector/?rev=141&view=rev Author: wuest Date: 2008-04-27 23:52:57 -0700 (Sun, 27 Apr 2008) Log Message: ----------- All plugins now with i18n support. Thanx, and see you soon :) Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java Added Paths: ----------- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle_de_DE.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle_de_DE.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle_de_DE.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle_de_DE.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle_de_DE.properties Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/ExampleViewPlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -25,6 +25,9 @@ package de.dlr.davinspector.plugins.exampleviewplugin; +import java.util.Locale; +import java.util.ResourceBundle; + import javax.swing.JComponent; import javax.swing.JScrollPane; import javax.swing.JTextPane; @@ -79,7 +82,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() */ public String getDescription() { - return "This is an example"; + return translate("description"); } /** @@ -88,7 +91,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() */ public String getName() { - return "Example View"; + return translate("name"); } /** @@ -182,5 +185,19 @@ if (myJTextPane != null) { myJTextPane.setText(""); } + } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.exampleviewplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); } } Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=Example Plugin +description=This is an example plugin Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/exampleviewplugin/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=Beispiel-Plugin +description=Dieses ist ein Beispielsplugin Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/HeaderPlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -25,6 +25,8 @@ package de.dlr.davinspector.plugins.headerplugin; +import java.util.Locale; +import java.util.ResourceBundle; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -101,7 +103,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() */ public String getDescription() { - return "Display header data."; + return translate("description"); } /** @@ -110,7 +112,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() */ public String getName() { - return "Header"; + return translate("name"); } /** @@ -143,10 +145,10 @@ myJPanel = new JPanel(); myJPanel.setLayout(new BoxLayout(myJPanel, BoxLayout.PAGE_AXIS)); - myCommonHeaders = new JCategoryTable(myJPanel, "Common"); - myResponseHeaders = new JCategoryTable(myJPanel, "Response"); - myRequestHeaders = new JCategoryTable(myJPanel, "Request"); - myMiscHeaders = new JCategoryTable(myJPanel, "Misc"); + myCommonHeaders = new JCategoryTable(myJPanel, translate("gui_category_common")); + myResponseHeaders = new JCategoryTable(myJPanel, translate("gui_category_response")); + myRequestHeaders = new JCategoryTable(myJPanel, translate("gui_category_request")); + myMiscHeaders = new JCategoryTable(myJPanel, translate("gui_category_misc")); myJPanel.add(myCommonHeaders); if (myPlugInDirection == PluginDirection.CLIENT) { @@ -291,4 +293,18 @@ } } } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.headerplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); + } } Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,7 @@ +name=Header Plugin +description=Display header data + +gui_category_common=Common +gui_category_response=Response +gui_category_request=Request +gui_category_misc=Misc Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/headerplugin/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,7 @@ +name=Header-Plugin +description=Dieses Plugin zeigt die Kopfdaten von NAchrichten an + +gui_category_common=Allgemein +gui_category_response=Antwort +gui_category_request=Anfrage +gui_category_misc=Verschiedenes Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/RawEditPlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -27,6 +27,8 @@ import java.awt.BorderLayout; import java.awt.Component; +import java.util.Locale; +import java.util.ResourceBundle; import javax.swing.BorderFactory; import javax.swing.Box; @@ -113,7 +115,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() */ public String getDescription() { - return "Edit the raw data of a message."; + return translate("description"); } /** @@ -122,7 +124,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() */ public String getName() { - return "RawEdit"; + return translate("name"); } /** @@ -194,7 +196,7 @@ private JButton getJButtonApply() { if (myJButtonApply == null) { myJButtonApply = new JButton(); - myJButtonApply.setText("Apply"); + myJButtonApply.setText(translate("gui_btn_apply")); myJButtonApply.setAlignmentX(Component.RIGHT_ALIGNMENT); myJButtonApply.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { @@ -288,4 +290,18 @@ public PluginDirection getPluginDirection() { return myPlugInDirection; } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.raweditplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); + } } Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,4 @@ +name=Raw Edit Plugin +description=Edit the raw data of a message + +gui_btn_apply=Apply Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/raweditplugin/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,4 @@ +name=Bearbeitungs-Plugin +description=Erm\xF6glicht die Manipulation von Nachrichten + +gui_btn_apply=Anwenden Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -49,9 +49,6 @@ * @author Jochen Wuest */ public class RecordingPlugin implements IViewPlugin { - - /** The name of the package. */ - protected static final String RESOURCE_NAME = "de.dlr.davinspector.plugins.recordingplugin.TextBundle"; /** State of the plugin. */ private Boolean isActive = true; Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=XML-View Plugin +description=Display Body of the Message in XML-View Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=XML-Ansicht Plugin +description=Zeigt die XML-Daten einer Nachricht formatiert an Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmlplugin/XMLPlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -27,6 +27,8 @@ import java.awt.SystemColor; import java.io.IOException; +import java.util.Locale; +import java.util.ResourceBundle; import javax.swing.JComponent; import javax.swing.JScrollPane; @@ -97,7 +99,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() */ public String getDescription() { - return "Display Body of the Message in XML-View"; + return translate("description"); } /** @@ -106,7 +108,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() */ public String getName() { - return "XML View"; + return translate("name"); } /** @@ -224,5 +226,19 @@ myXMLTextPane.setText(""); myJTextArea.setText(""); } + } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.xmlplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); } } Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=XML-Tree Plugin +description=Display Body of the Message in a XML-Tree Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/TextBundle_de_DE.properties 2008-04-28 06:52:57 UTC (rev 141) @@ -0,0 +1,2 @@ +name=XML-Baum Plugin +description=Zeigt die Rumpfdaten der Nachricht in einer XML-Baumansicht Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java 2008-04-27 17:51:54 UTC (rev 140) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/xmltreeplugin/XMLTreePlugin.java 2008-04-28 06:52:57 UTC (rev 141) @@ -27,6 +27,8 @@ import java.awt.SystemColor; import java.io.IOException; +import java.util.Locale; +import java.util.ResourceBundle; import javax.swing.JComponent; import javax.swing.JScrollPane; @@ -97,7 +99,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getDescription() */ public String getDescription() { - return "Display Body of the Message in XML-Tree"; + return translate("description"); } /** @@ -106,7 +108,7 @@ * @see de.dlr.DAVInspector.Plugin.IPlugin#getName() */ public String getName() { - return "XML Tree"; + return translate("name"); } /** @@ -231,5 +233,19 @@ if (myXMLTreeView != null) { updateTree(""); } - } + } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.xmltreeplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-27 17:52:26
|
Revision: 140 http://davinspector.svn.sourceforge.net/davinspector/?rev=140&view=rev Author: wuest Date: 2008-04-27 10:51:54 -0700 (Sun, 27 Apr 2008) Log Message: ----------- Removed Paths: ------------- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin_de_DE.properties Deleted: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin.properties 2008-04-27 17:50:37 UTC (rev 139) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin.properties 2008-04-27 17:51:54 UTC (rev 140) @@ -1 +0,0 @@ -plugin_name=Aufzeichnungs-Plugin Deleted: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin_de_DE.properties 2008-04-27 17:50:37 UTC (rev 139) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/recordingPlugin_de_DE.properties 2008-04-27 17:51:54 UTC (rev 140) @@ -1 +0,0 @@ -plugin_name=Recording Plugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-27 17:50:51
|
Revision: 139 http://davinspector.svn.sourceforge.net/davinspector/?rev=139&view=rev Author: wuest Date: 2008-04-27 10:50:37 -0700 (Sun, 27 Apr 2008) Log Message: ----------- Implemented i18n for plugins (Showcase recordingplugin). Modified Paths: -------------- trunk/DAVInspector/src/de/dlr/davinspector/common/Internationalization.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingConfigurationPanel.java trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java Added Paths: ----------- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle.properties trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle_de_DE.properties Modified: trunk/DAVInspector/src/de/dlr/davinspector/common/Internationalization.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/common/Internationalization.java 2008-04-18 09:57:07 UTC (rev 138) +++ trunk/DAVInspector/src/de/dlr/davinspector/common/Internationalization.java 2008-04-27 17:50:37 UTC (rev 139) @@ -56,30 +56,4 @@ public static String getTranslation(String key) { return Internationalization.RESOURCE_BUNDLE.getString(key); } - - /** - * This method returns the translation for the given key. - * The translation is extracted from the proper language file of the plugin. - * - * @param packageName String - * @param key String - * @return String - */ - public static String getTranslationPlugin(String packageName, String key) { - // plugins\RecordingPlugin.jar\de\dlr\davinspector\plugins\recordingplugin\ - // INFO: caching of resource bundles -> Not necessary, java handles caching on it's own - return ResourceBundle.getBundle("/" + getPackagePath(packageName) + "/" + "recordingPlugin", Locale.getDefault()).getString(key); -// return ResourceBundle.getBundle(packageName + "." + "recordingPlugin", Locale.getDefault()).getString(key); -// return ResourceBundle.getBundle("\\recordingPlugin", Locale.getDefault()).getString(key); - } - - /** - * Converts the class package name to a file system path. - * - * @param packageName String - * @return String - */ - private static String getPackagePath(String packageName) { - return packageName.replace('.', '/'); - } } Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingConfigurationPanel.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingConfigurationPanel.java 2008-04-18 09:57:07 UTC (rev 138) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingConfigurationPanel.java 2008-04-27 17:50:37 UTC (rev 139) @@ -103,7 +103,7 @@ private void jButtonOpenFileChooserActionPerformed(java.awt.event.ActionEvent event) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); - fileChooser.setDialogTitle("Select recording file"); + fileChooser.setDialogTitle(RecordingPlugin.translate("gui_save_dialog_title")); fileChooser.setSelectedFile(new File(myFilename)); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); @@ -155,9 +155,9 @@ jTextFieldFilename.setText(myFilename); jButtonOpenFileChooser.setText("..."); - jButtonOpenFileChooser.setToolTipText("Choose file for recording."); + jButtonOpenFileChooser.setToolTipText(RecordingPlugin.translate("gui_file_chooser_tooltip")); - jLabelFilename.setText("File:"); + jLabelFilename.setText(RecordingPlugin.translate("gui_label_file") + ":"); GroupLayout layout = new GroupLayout(this); this.setLayout(layout); Modified: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-04-18 09:57:07 UTC (rev 138) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/RecordingPlugin.java 2008-04-27 17:50:37 UTC (rev 139) @@ -30,6 +30,8 @@ import java.io.File; import java.io.FileWriter; import java.io.IOException; +import java.util.Locale; +import java.util.ResourceBundle; import javax.swing.JComponent; @@ -48,6 +50,9 @@ */ public class RecordingPlugin implements IViewPlugin { + /** The name of the package. */ + protected static final String RESOURCE_NAME = "de.dlr.davinspector.plugins.recordingplugin.TextBundle"; + /** State of the plugin. */ private Boolean isActive = true; @@ -96,7 +101,7 @@ * @see de.dlr.davinspector.plugin.IPlugin#getDescription() */ public String getDescription() { - return "This plugin enables the user to record network traffic to a file."; + return translate("description"); } /** @@ -105,7 +110,7 @@ * @see de.dlr.davinspector.plugin.IPlugin#getName() */ public String getName() { - return "RecordingPlugin"; + return translate("name"); } /** @@ -226,4 +231,18 @@ public void setRecordingFile(File file) { myFilename = file.getAbsolutePath(); } + + /** + * Reads the translated String of the ResourceBundle. Trys to load local language. + * + * @param key Key for loading + * @return needed String + */ + public static String translate(String key) { + final String bundleName = "de.dlr.davinspector.plugins.recordingplugin.TextBundle"; + + /** The resource bundle. */ + ResourceBundle resourceBundle = ResourceBundle.getBundle(bundleName, Locale.getDefault()); + return resourceBundle.getString(key); + } } Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle.properties 2008-04-27 17:50:37 UTC (rev 139) @@ -0,0 +1,6 @@ +name=Recording Plugin +description=This plugin enables the user to record network traffic to a file + +gui_save_dialog_title=Choose recording file +gui_file_chooser_tooltip=Choose file for recording +gui_label_file=File Added: trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle_de_DE.properties =================================================================== --- trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle_de_DE.properties (rev 0) +++ trunk/DAVInspector/src/de/dlr/davinspector/plugins/recordingplugin/TextBundle_de_DE.properties 2008-04-27 17:50:37 UTC (rev 139) @@ -0,0 +1,6 @@ +name=Aufzeichnungs-Plugin +description=Dieses Plugin erm\xF6glicht die Aufzeichnung von Datenverkehr in einer Datei + +gui_save_dialog_title=Datei ausw\xE4hlen +gui_file_chooser_tooltip=Datei f\xFCr Aufzeichnung ausw\xE4hlen +gui_label_file=Datei This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-04-18 09:57:11
|
Revision: 138 http://davinspector.svn.sourceforge.net/davinspector/?rev=138&view=rev Author: killerjoe Date: 2008-04-18 02:57:07 -0700 (Fri, 18 Apr 2008) Log Message: ----------- Updated Plugin Howto with PDF. Modified Paths: -------------- trunk/www/development.html Added Paths: ----------- trunk/www/DAVInspector_plugin_develement_howto/ trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_Plugin_Develement_Howto.pdf trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.css trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html Added: trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_Plugin_Develement_Howto.pdf =================================================================== (Binary files differ) Property changes on: trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_Plugin_Develement_Howto.pdf ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.css =================================================================== --- trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.css (rev 0) +++ trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.css 2008-04-18 09:57:07 UTC (rev 138) @@ -0,0 +1,35 @@ +/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */ +.MATH { font-family: "Century Schoolbook", serif; } +.MATH I { font-family: "Century Schoolbook", serif; font-style: italic } +.BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold } + +/* implement both fixed-size and relative sizes */ +SMALL.XTINY { font-size : xx-small } +SMALL.TINY { font-size : x-small } +SMALL.SCRIPTSIZE { font-size : smaller } +SMALL.FOOTNOTESIZE { font-size : small } +SMALL.SMALL { } +BIG.LARGE { } +BIG.XLARGE { font-size : large } +BIG.XXLARGE { font-size : x-large } +BIG.HUGE { font-size : larger } +BIG.XHUGE { font-size : xx-large } + +/* heading styles */ +H1 { } +H2 { } +H3 { } +H4 { } +H5 { } + +/* mathematics styles */ +DIV.displaymath { } /* math displays */ +TD.eqno { } /* equation-number cells */ + + +/* document-specific styles come next */ +DIV.navigation { } +DIV.center { } +PRE.preform { } +SPAN.textit { font-style: italic } +SPAN.arabic { } Added: trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html =================================================================== --- trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html (rev 0) +++ trunk/www/DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html 2008-04-18 09:57:07 UTC (rev 138) @@ -0,0 +1,277 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> + +<HTML> +<HEAD> +<TITLE>DAVInspector Plugin-development Howto</TITLE> +<META NAME="description" CONTENT="DAVInspector Plugin-development Howto"> +<META NAME="keywords" CONTENT="DAVInspector_plugin_develement_howto"> +<META NAME="resource-type" CONTENT="document"> +<META NAME="distribution" CONTENT="global"> + +<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> +<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> + +<LINK REL="STYLESHEET" HREF="DAVInspector_plugin_develement_howto.css"> + +</HEAD> + +<BODY > + +<BR> +<BR><BR></DIV> +<!--End of Navigation Panel--> + +<P> + + <DIV ALIGN="CENTER"> +<BR> +<BR> +<BR> +<BR> +<BR> +<BR> + <BIG CLASS="XXLARGE"> D<SMALL>AVINSPECTOR </SMALL>P<SMALL>LUGIN-DEVELOPMENT </SMALL>H<SMALL>OWTO</SMALL> +</BIG></DIV> +<P> +<DIV ALIGN="CENTER"><BIG CLASS="XXLARGE"><BR> +<BR> + <BIG CLASS="XLARGE"> H<SMALL>OWTO TO WRITE PLUGINS FOR </SMALL>D<SMALL>AVINSPECTOR</SMALL> +</BIG></BIG></DIV> +<P> +<DIV ALIGN="CENTER"><BIG CLASS="XXLARGE"><BIG CLASS="XLARGE"><BR> +<BR> + <BIG CLASS="LARGE"> 18.04.2008 - Markus Litz +<BR> DLR (German Aerospace Center) +<BR> Simulation and Software Technology +<BR></BIG></BIG></BIG></DIV> +<P> +<DIV ALIGN="CENTER"><BIG CLASS="XXLARGE"><BIG CLASS="XLARGE"></BIG></BIG></DIV> + +<P> +This is a updated brief explanation about writing plugins for DAVInspector. If you are just looking for a user guide please take a look at the DAVInspector website at <SPAN CLASS="textit"><http://davinspector.sourceforge.net/></SPAN>. This explains what this version of DAVInspector is and how you could add new features to DAVInspector without knowledge of the core program. Just some experiences in java programming are needed. + +<P> + <BR> + +<H2><A NAME="SECTION00010000000000000000"> +Contents</A> +</H2> +<!--Table of Contents--> + +<UL CLASS="TofC"> +<LI><A NAME="tex2html15" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00020000000000000000">What is DAVInspector?</A> +<UL> +<LI><A NAME="tex2html16" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00021000000000000000">What do I need?</A> +</UL><BR> +<LI><A NAME="tex2html17" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00030000000000000000">Writing Plugins</A> +<UL> +<LI><A NAME="tex2html18" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00031000000000000000">Constructor</A> +<LI><A NAME="tex2html19" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00032000000000000000">Naming conventions</A> +<LI><A NAME="tex2html20" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00033000000000000000">GUI</A> +</UL><BR> +<LI><A NAME="tex2html21" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00040000000000000000">Internationalization (I18N)</A> +<LI><A NAME="tex2html22" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00050000000000000000">Logging</A> +<UL> +<LI><A NAME="tex2html23" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00051000000000000000">Troubleshooting</A> +</UL><BR> +<LI><A NAME="tex2html24" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00060000000000000000">Conclusion</A> +<UL> +<LI><A NAME="tex2html25" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00061000000000000000">Call for participation</A> +</UL><BR> +<LI><A NAME="tex2html26" + HREF="DAVInspector_plugin_develement_howto.html#SECTION00070000000000000000">Bibliography</A> +</UL> +<!--End of Table of Contents--> +<P> + + + + +<P> + +<H1><A NAME="SECTION00020000000000000000"> +What is DAVInspector?</A> +</H1> +DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too. + +<P> +DAVInspector is developed by employees of the the institution "Simulation and Software Technology" (SISTEC) at the German Aerospace Center DLR. + +<P> +We are happy about any support for this project - for example you might participate as a developer, bug reporter or simply by telling us your needs. Just visit our forums or join our mailing-lists on Sourceforge. + +<P> + +<H2><A NAME="SECTION00021000000000000000"> +What do I need?</A> +</H2> +You need : + +<P> + +<UL> +<LI>A stable version of DAVInspector - get latest stable release build of DAVInspector from SF.NET download page: <SPAN CLASS="textit"><http://davinspector.sourceforge.net></SPAN>. +</LI> +<LI>Java version 1.5.0 or higher. +</LI> +<LI>Jakarta Ant +</LI> +</UL> + +<P> +To build or run DAVInspector you need a Java 2 Runtime Environment (JRE) with a version number 1.5.0 and higher. You can download the JRE for a number of platforms from <SPAN CLASS="textit"><http://java.sun.com></SPAN>. +If you want to build DAVInspector you additionally need a recent version of the Jakarta Ant build tool. You can download Ant from <SPAN CLASS="textit"><http://jakarta.apache.org></SPAN>. + +<P> + +<H1><A NAME="SECTION00030000000000000000"> +Writing Plugins</A> +</H1> +There are 2 types of plugins. ViewPlugins and EditPlugins. The ViewPlugins only shows the transfert data and gives you the possibility to change the way how to display these data, e.g. highling. Through EditPlugins DAVInspector gives you the capability to change the transfered data like body or header informations. +The two types of plugins are represented by the two interfaces IViewPlugin and IEditPlugin. Your own plugin has to implement one of these interfaces. + +<P> + +<H2><A NAME="SECTION00031000000000000000"> +Constructor</A> +</H2> +Since the plugins are loaded dynamically, there is no constructor we can use to set things up. Instead each plugin has to implement the method init(), which acts like a constructor. For example the init() of the ExampleView plugin: + +<P> +<PRE> +public void init(PluginManager pluginManager, PluginDirection direction) { + myPlugInDirection = direction; + if (myJScrollPane == null) { + myJTextPane = new JTextPane(); + myJScrollPane = new JScrollPane(); + myJScrollPane.setViewportView(myJTextPane); + } + myJTextPane.setText(""); + Util.setUIDesign(); + } +</PRE> + +<P> + +<H2><A NAME="SECTION00032000000000000000"> +Naming conventions</A> +</H2> + +<P> +To write your own plugin you have to follow some naming conventions. Otherwise DAVInspector is not able to load your plugin. The main class of your plugin has to belong to a package de.dlr.davinspector.plugins.<Main Class>. +<BR>So, let's assume to write a plugin named ExampleViewPlugin. The first few lines of code have to look like this: + +<P> +<PRE> +package de.dlr.davinspector.plugins.exampleviewplugin; + +import de.dlr.davinspector.common.Util; +import de.dlr.davinspector.history.AMessage; +import de.dlr.davinspector.plugin.IViewPlugin; +import de.dlr.davinspector.plugin.PluginManager; + +public class ExampleViewPlugin implements IViewPlugin { +... +} +</PRE> + +<P> +If you think, you are ready to test your plugin, create a jar file of it named like the main class. In our example that would be ExampleViewPlugin.jar. Copy it to the plugin directory of DAVInspector and start DAVInspector. Now you should see you plugin in the plugin-configuration window. + +<P> + +<H2><A NAME="SECTION00033000000000000000"> +GUI</A> +</H2> +Ne gui is wat feines... +<BR>Muffi-Schlumpf sagt: <SPAN CLASS="textit">``Ich hasse GUI!''</SPAN> + +<P> + +<H1><A NAME="SECTION00040000000000000000"> +Internationalization (I18N)</A> +</H1> + +<P> +To make your plugin multilingual, you have to ..... + +<P> + +<H1><A NAME="SECTION00050000000000000000"> +Logging</A> +</H1> + +<P> +You should use the Logging system of DAVInspector to log debug and error messages. All you have to do is, to create a logging object for each class: + +<P> +<PRE> +public class ExampleViewPlugin implements IViewPlugin { + /** Logger, Apache log4j. */ + private static Logger myLogger = Logger.getLogger(ExampleViewPlugin.class); +} +</PRE> + +<P> +Then you can use the five logging methods debug(), info(), warn(), error() and fatal() +<BR>For example: <SPAN CLASS="textit">logger.debug("This is a debug message");</SPAN> +<BR>All messages should appear on stdout / the logging file. + +<P> + +<H2><A NAME="SECTION00051000000000000000"> +Troubleshooting</A> +</H2> +If your plugin doesn't load and java is saying something about invalid class version numbers or something like that, make sure, that you have compiled DAVInspector and your plugin with the same JDK version. +You could also write to the DAVInspector development mailinglist [<A + HREF="DAVInspector_plugin_develement_howto.html#ml">1</A>]. + +<P> + +<H1><A NAME="SECTION00060000000000000000"> +Conclusion</A> +</H1> +The DAVInspector development has just started, so please support us with potential error descriptions. We hope DAVInspector and this HOWTO could help your development environment. + +<P> + +<H2><A NAME="SECTION00061000000000000000"> +Call for participation</A> +</H2> +DAVInspector is open source project under Apache2 License. So anybody is welcome to the project. Please join our development mailing list : <SPAN CLASS="textit"><dav...@li...></SPAN> [<A + HREF="DAVInspector_plugin_develement_howto.html#ml">1</A>], if you have interest. + +<P> + +<P> + +<H2><A NAME="SECTION00070000000000000000"> +Bibliography</A> +</H2><DL COMPACT><DD> +<P> +<P></P><DT><A NAME="ml">1</A> +<DD> DAVInspector Development mailing list - https://lists.sourceforge.net/lists/listinfo/davinspector-developers +</DL> + +<P> + +<!--Navigation Panel--> +<BR></DIV> +<!--End of Navigation Panel--> +<ADDRESS> +Markus Litz +2008-04-18 +</ADDRESS> +</BODY> +</HTML> Modified: trunk/www/development.html =================================================================== --- trunk/www/development.html 2008-04-18 09:45:07 UTC (rev 137) +++ trunk/www/development.html 2008-04-18 09:57:07 UTC (rev 138) @@ -25,7 +25,7 @@ <div id="content"> <h2>DAVInspector Development</h2> <p> - <p>DAVInspector could be extented by the use of plugins. To find out how to write you own plugin please take a look at the <a href="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html">DAVInspectorPlugin-Develement Howto</a> + <p>DAVInspector could be extented by the use of plugins. To find out how to write you own plugin please take a look at the <a href="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html">DAVInspectorPlugin-Develement Howto</a> - <A HREF="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.pdf"><b>PDF</b></A> <p> </p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-04-18 09:45:10
|
Revision: 137 http://davinspector.svn.sourceforge.net/davinspector/?rev=137&view=rev Author: killerjoe Date: 2008-04-18 02:45:07 -0700 (Fri, 18 Apr 2008) Log Message: ----------- Updates Website with newest howto. Modified Paths: -------------- trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr trunk/www/development.html Modified: trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr =================================================================== --- trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr 2008-04-18 09:20:37 UTC (rev 136) +++ trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr 2008-04-18 09:45:07 UTC (rev 137) @@ -17,10 +17,10 @@ [item:DAVInspector_plugin_develement_howto.tex] archive=true -column=1 +column=22 encoding=UTF-8 highlight=LaTeX -line=111 +line=169 open=true order=0 Modified: trunk/www/development.html =================================================================== --- trunk/www/development.html 2008-04-18 09:20:37 UTC (rev 136) +++ trunk/www/development.html 2008-04-18 09:45:07 UTC (rev 137) @@ -19,9 +19,17 @@ <h2>DAVInspector Development</h2> <p> <p>DAVInspector is an open volunteer project based on the spirit of the Open Development and Free Software. You can visit the project home at SourceForge.net:</p> -<a href="http://sourceforge.net/projects/davinspector/">http://sourceforge.net/projects/davinspector/</a> +<a href="http://sourceforge.net/projects/davinspector/">http://sourceforge.net/projects/davinspector/</a>. + + <div id="content"> + <h2>DAVInspector Development</h2> + <p> + <p>DAVInspector could be extented by the use of plugins. To find out how to write you own plugin please take a look at the <a href="DAVInspector_plugin_develement_howto/DAVInspector_plugin_develement_howto.html">DAVInspectorPlugin-Develement Howto</a> <p> </p> + + + <p> </p> <h2>Getting involved</h2> <p><p>There are lots of ways to contribute to the project. We are always glad to meet the developers, testers, UI and UX designers, writers of documentation This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kil...@us...> - 2008-04-18 09:21:06
|
Revision: 136 http://davinspector.svn.sourceforge.net/davinspector/?rev=136&view=rev Author: killerjoe Date: 2008-04-18 02:20:37 -0700 (Fri, 18 Apr 2008) Log Message: ----------- First draft of davinspector_plugin_development_howto in latex. Added Paths: ----------- trunk/Documents/PluginDevelopment_Howto/ trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr Added: trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex =================================================================== --- trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex (rev 0) +++ trunk/Documents/PluginDevelopment_Howto/DAVInspector_plugin_develement_howto.tex 2008-04-18 09:20:37 UTC (rev 136) @@ -0,0 +1,175 @@ +\documentclass[a4paper,10pt]{article} + \usepackage[ansinew]{inputenc} % about german umlauts + \usepackage[american]{babel} + \usepackage[T1]{fontenc} + \usepackage{listings} + \usepackage{color} + \usepackage{caption} + \usepackage{exscale} + \usepackage[dvips]{graphicx} + \pagestyle{headings} + \usepackage{longtable} + + + \author{Markus Litz} + \title{DAVInspector Plugin-development Howto} + \date{18.04.2008} + + +\begin{document} +% \frontmatter + \setlength{\parskip}{1ex} + \renewcommand{\baselinestretch}{1} + \normalsize + + +\begin{titlepage} + \begin{center} + \vspace*{2cm} + \LARGE + \textsc{Davinspector Plugin-development Howto} + + \vspace{0.5cm} + \Large + \textsc{Howto to write plugins for Davinspector} + + \vspace{0.5cm} + \large + 18.04.2008 - Markus Litz \\ + DLR (German Aerospace Center) \\ + Simulation and Software Technology \\ + + \end{center} + + \normalsize +This is a updated brief explanation about writing plugins for DAVInspector. If you are just looking for a user guide please take a look at the DAVInspector website at \textit{<http://davinspector.sourceforge.net/>}. This explains what this version of DAVInspector is and how you could add new features to DAVInspector without knowledge of the core program. Just some experiences in java programming are needed. +\end{titlepage} + + +\setcounter{tocdepth}{3} % TOC-depth +\tableofcontents + + %% f{�}r Dokument 1.25-Zeilig und extra Abstand nach Abs{ä}tzen + \setlength{\parskip}{2ex plus 1ex minus 1ex} %% Abstand zum letzten Absatz + \renewcommand{\baselinestretch}{1.25} %% 1.25-Zeilig + \normalsize %% \baselinestretch wirksam machen + +% \mainmatter + + +\section{What is DAVInspector?} +DAVInpector is a tool for debugging and monitoring HTTP and WebDAV capable applications. It is mainly written to help developers creating HTTP/WebDAV clients or servers, but could also be used by sysadmins. The open plugin technology makes it possible that in future other network protocols will be support too. + +DAVInspector is developed by employees of the the institution "Simulation and Software Technology" (SISTEC) at the German Aerospace Center DLR. + +We are happy about any support for this project - for example you might participate as a developer, bug reporter or simply by telling us your needs. Just visit our forums or join our mailing-lists on Sourceforge. + + +\subsection{What do I need?} +You need : + +\begin{itemize} + \item A stable version of DAVInspector - get latest stable release build of DAVInspector from SF.NET download page: \textit{<http://davinspector.sourceforge.net>}. + \item Java version 1.5.0 or higher. + \item Jakarta Ant +\end{itemize} + +To build or run DAVInspector you need a Java 2 Runtime Environment (JRE) with a version number 1.5.0 and higher. You can download the JRE for a number of platforms from \textit{<http://java.sun.com>}. +If you want to build DAVInspector you additionally need a recent version of the Jakarta Ant build tool. You can download Ant from \textit{<http://jakarta.apache.org>}. + + +\section{Writing Plugins} +There are 2 types of plugins. ViewPlugins and EditPlugins. The ViewPlugins only shows the transfert data and gives you the possibility to change the way how to display these data, e.g. highling. Through EditPlugins DAVInspector gives you the capability to change the transfered data like body or header informations. +The two types of plugins are represented by the two interfaces IViewPlugin and IEditPlugin. Your own plugin has to implement one of these interfaces. + + + +\subsection{Constructor} +Since the plugins are loaded dynamically, there is no constructor we can use to set things up. Instead each plugin has to implement the method init(), which acts like a constructor. For example the init() of the ExampleView plugin: + +\begin{verbatim} +public void init(PluginManager pluginManager, PluginDirection direction) { + myPlugInDirection = direction; + if (myJScrollPane == null) { + myJTextPane = new JTextPane(); + myJScrollPane = new JScrollPane(); + myJScrollPane.setViewportView(myJTextPane); + } + myJTextPane.setText(""); + Util.setUIDesign(); + } +\end{verbatim} + + + +\subsection{Naming conventions} + +To write your own plugin you have to follow some naming conventions. Otherwise DAVInspector is not able to load your plugin. The main class of your plugin has to belong to a package de.dlr.davinspector.plugins.<Main Class>.\\ +So, let's assume to write a plugin named ExampleViewPlugin. The first few lines of code have to look like this: + +\begin{verbatim} +package de.dlr.davinspector.plugins.exampleviewplugin; + +import de.dlr.davinspector.common.Util; +import de.dlr.davinspector.history.AMessage; +import de.dlr.davinspector.plugin.IViewPlugin; +import de.dlr.davinspector.plugin.PluginManager; + +public class ExampleViewPlugin implements IViewPlugin { +... +} +\end{verbatim} + +If you think, you are ready to test your plugin, create a jar file of it named like the main class. In our example that would be ExampleViewPlugin.jar. Copy it to the plugin directory of DAVInspector and start DAVInspector. Now you should see you plugin in the plugin-configuration window. + + +\subsection{GUI} +Ne gui is wat feines...\\ +Muffi-Schlumpf sagt: \textit{``Ich hasse GUI!''} + + +\section{Internationalization (I18N)} + +To make your plugin multilingual, you have to ..... + + + + +\section{Logging} + +You should use the Logging system of DAVInspector to log debug and error messages. All you have to do is, to create a logging object for each class: + +\begin{verbatim} +public class ExampleViewPlugin implements IViewPlugin { + /** Logger, Apache log4j. */ + private static Logger myLogger = Logger.getLogger(ExampleViewPlugin.class); +} +\end{verbatim} + +Then you can use the five logging methods debug(), info(), warn(), error() and fatal()\\ +For example: \textit{logger.debug("This is a debug message");}\\ +All messages should appear on stdout / the logging file. + + + +\subsection{Troubleshooting} +If your plugin doesn't load and java is saying something about invalid class version numbers or something like that, make sure, that you have compiled DAVInspector and your plugin with the same JDK version. +You could also write to the DAVInspector development mailinglist \cite{ml}. + + +\section{Conclusion} +The DAVInspector development has just started, so please support us with potential error descriptions. We hope DAVInspector and this HOWTO could help your development environment. + +\subsection{Call for participation} +DAVInspector is open source project under Apache2 License. So anybody is welcome to the project. Please join our development mailing list : \textit{<dav...@li...>} \cite{ml}, if you have interest. + + + +\addcontentsline{toc}{chapter}{References} + +\begin{thebibliography}{12} + +\bibitem{ml} DAVInspector Development mailing list - https://lists.sourceforge.net/lists/listinfo/davinspector-developers +\end{thebibliography} + +\end{document} Added: trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr =================================================================== --- trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr (rev 0) +++ trunk/Documents/PluginDevelopment_Howto/davinspector_plugin_develement_howto.kilepr 2008-04-18 09:20:37 UTC (rev 136) @@ -0,0 +1,34 @@ +[General] +img_extIsRegExp=false +img_extensions=.eps .jpg .jpeg .png .pdf .ps .fig .gif +kileprversion=2 +kileversion=2.0 +lastDocument=DAVInspector_plugin_develement_howto.tex +masterDocument= +name=DAVInspector_plugin_develement_howto +pkg_extIsRegExp=false +pkg_extensions=.cls .sty +src_extIsRegExp=false +src_extensions=.tex .ltx .latex .dtx .ins + +[Tools] +MakeIndex= +QuickBuild= + +[item:DAVInspector_plugin_develement_howto.tex] +archive=true +column=1 +encoding=UTF-8 +highlight=LaTeX +line=111 +open=true +order=0 + +[item:davinspector_plugin_develement_howto.kilepr] +archive=true +column=0 +encoding= +highlight= +line=0 +open=false +order=-1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wu...@us...> - 2008-04-18 08:10:53
|
Revision: 135 http://davinspector.svn.sourceforge.net/davinspector/?rev=135&view=rev Author: wuest Date: 2008-04-18 01:10:51 -0700 (Fri, 18 Apr 2008) Log Message: ----------- Added license and readme file to build. Modified Paths: -------------- trunk/DAVInspector/build-user.xml Modified: trunk/DAVInspector/build-user.xml =================================================================== --- trunk/DAVInspector/build-user.xml 2008-04-18 07:44:55 UTC (rev 134) +++ trunk/DAVInspector/build-user.xml 2008-04-18 08:10:51 UTC (rev 135) @@ -90,7 +90,7 @@ <!-- Copy script files and icon --> <copy todir="${dist}"> - <fileset dir="." includes="*.bat, *.sh, *.properties" /> + <fileset dir="." includes="*.bat, *.sh, *.properties, README.txt, LICENSE" /> <fileset dir="resource" includes="*.ico" /> </copy> <!-- Copy libs --> @@ -101,6 +101,8 @@ </target> <target name="release" depends="dist,linux,win32,os-independent"> + <!-- maybe add dir --> + <echo>Creating release ${project.name}-${project.version}.zip</echo> <zip destfile="${project.name}-${project.version}.zip" basedir="${dist}" /> </target> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |