Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2677 - in development/main/depot: console/src/main/net/dpml/depot/lang prefs/src/main/net/dpml/depot/prefs station

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2677 - in development/main/depot: console/src/main/net/dpml/depot/lang prefs/src/main/net/dpml/depot/prefs station
  • Date: Mon, 30 May 2005 10:02:13 -0400

Author: mcconnell AT dpml.net
Date: Mon May 30 10:02:12 2005
New Revision: 2677

Added:

development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutComboBoxModel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryTableModel.java
Modified:
development/main/depot/console/src/main/net/dpml/depot/lang/Main.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheDirectoryPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheManagerPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheTableModel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicDialog.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/DepotPreferencesPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
development/main/depot/prefs/src/main/net/dpml/depot/prefs/Main.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/PluginManagerPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyFeaturesPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryManagerPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryTableModel.java
development/main/depot/station/build.xml
Log:
Bringing Metro into sync. with Transit.

Modified:
development/main/depot/console/src/main/net/dpml/depot/lang/Main.java
==============================================================================
--- development/main/depot/console/src/main/net/dpml/depot/lang/Main.java
(original)
+++ development/main/depot/console/src/main/net/dpml/depot/lang/Main.java
Mon May 30 10:02:12 2005
@@ -25,6 +25,7 @@
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
+import java.util.logging.LogManager;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

@@ -119,11 +120,11 @@
if( system instanceof DepotClassLoader )
{
DepotClassLoader classloader = (DepotClassLoader) system;
- System.err.println( "#BEFORE" );
- System.err.println( classloader.toString() );
+ //System.err.println( "#BEFORE" );
+ //System.err.println( classloader.toString() );
classloader.setProfileClasspathNode( classpath );
- System.err.println( "#AFTER" );
- System.err.println( classloader.toString() );
+ //System.err.println( "#AFTER" );
+ //System.err.println( classloader.toString() );
String classname = resolve( profile.get( "classname", null )
);
if( null == classname )
{
@@ -150,7 +151,7 @@
buffer.append( "Application class not found." );
buffer.append( "\nClassname: " + classname );
buffer.append( "\nDepot Main Codesource: " );
- buffer.append(
Main.class.getProtectionDomain().getCodeSource().getLocation().toString() );
+ buffer.append( getCodeSourceLocation().toString() );
buffer.append( "\nSystem classpath:" );
URL[] urls = classloader.getURLs();
for( int i=0; i<urls.length; i++ )
@@ -167,7 +168,7 @@
buffer.append( "\nException: " + e.getClass() );
buffer.append( "\nMessage: " + e.getMessage() );
buffer.append( "\nDepot Main Codesource: " );
- buffer.append(
Main.class.getProtectionDomain().getCodeSource().getLocation().toString() );
+ buffer.append( getCodeSourceLocation().toString() );
buffer.append( "\nSystem classpath:" );
URL[] urls = classloader.getURLs();
for( int i=0; i<urls.length; i++ )
@@ -314,5 +315,10 @@
{
// disabled
}
+
+ private static URL getCodeSourceLocation()
+ {
+ return
Main.class.getProtectionDomain().getCodeSource().getLocation();
+ }
}


Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheDirectoryPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheDirectoryPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheDirectoryPanel.java
Mon May 30 10:02:12 2005
@@ -42,7 +42,6 @@
import net.dpml.transit.model.FileChangeEvent;
import net.dpml.transit.model.HostNodeEvent;

-
/**
* Control panel for editing the cache preferences.
*
@@ -86,7 +85,7 @@
String filename = cache.getCanonicalPath();
JLabel label =
IconHelper.createImageIconJLabel(
- getClass().getClassLoader(),
"net/dpml/depot/prefs/images/cache.jpg", "Filename", "Directory: " + filename
);
+ getClass().getClassLoader(), CACHE_ICON_SRC, "Filename",
"Directory: " + filename );
label.setBorder( new EmptyBorder( 0, 5, 0, 0 ) );

m_label = label;
@@ -277,4 +276,10 @@
{
return m_manager.getCacheDirectory();
}
+
+ //--------------------------------------------------------------
+ // static (utils)
+ //--------------------------------------------------------------
+
+ private static String CACHE_ICON_SRC =
"net/dpml/depot/prefs/images/cache.jpg";
}

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheManagerPanel.java
Mon May 30 10:02:12 2005
@@ -51,6 +51,8 @@
import net.dpml.transit.util.ExceptionHelper;
import net.dpml.transit.manager.CacheManager;
import net.dpml.transit.manager.HostManager;
+import net.dpml.transit.manager.LayoutRegistryManager;
+import net.dpml.transit.model.HostModel;
import net.dpml.transit.cache.CacheHandler;

/**
@@ -78,18 +80,20 @@
private JButton m_delete;
private String m_selection; // selected hostname
private CacheManager m_manager;
+ private LayoutRegistryManager m_layouts;
private CacheAction m_cache;

//--------------------------------------------------------------
// constructor
//--------------------------------------------------------------

- public CacheManagerPanel( Window parent, CacheManager manager ) throws
Exception
+ public CacheManagerPanel( Window parent, CacheManager manager,
LayoutRegistryManager layouts ) throws Exception
{
Transit.getInstance();

m_parent = parent;
m_manager = manager;
+ m_layouts = layouts;

m_editAction = new EditAction( "Edit" );
m_edit = new JButton( m_editAction );
@@ -141,10 +145,11 @@
if( "selection".equals( event.getPropertyName() ) )
{
m_selection = (String) event.getNewValue();
- if( null != m_selection )
+ HostManager model = m_manager.getHostManager( m_selection );
+ if( null != model )
{
m_edit.setEnabled( true );
- m_delete.setEnabled( true );
+ m_delete.setEnabled( false == model.isBootstrap() );

getRootPane().setDefaultButton( m_edit );
}
else
@@ -283,11 +288,6 @@

public void actionPerformed( ActionEvent event )
{
- // TODO: create a dialog that collects the host name and the
base url
- // and use this to create a new host entry then lauch the host
edit
- // dialog box. The following is just a placeholder that does
nothing
- // useful.
-
String name = JOptionPane.showInputDialog( m_parent, "Host
name:" );
if( null != name )
{
@@ -317,7 +317,7 @@
final Dimension size = new Dimension( 400, 360 );
ClassicDialog dialog = ClassicDialog.createDialog( m_parent,
title, size );
HostManager manager = m_manager.getHostManager( m_selection
);
- HostManagerPanel panel = new HostManagerPanel( dialog,
manager );
+ HostManagerPanel panel = new HostManagerPanel( dialog,
manager, m_layouts );
dialog.getBody().add( panel );
dialog.setLocationRelativeTo( source );
dialog.setResizable( false );
@@ -332,39 +332,6 @@
Logger logger = Logger.getLogger( "depot.prefs" );
logger.log( Level.SEVERE, error, e );
}
-
- /*
- try
- {
- JDialog dialog = null;
- if( m_parent instanceof Dialog )
- {
- dialog = new JDialog( (Dialog) m_parent, true );
- }
- else
- {
- dialog = new JDialog( (Frame) m_parent, true );
- }
- dialog.setTitle( "Resource Host: " + m_selection );
- HostManager manager = m_manager.getHostManager( m_selection
);
- JPanel panel = new HostManagerPanel( dialog, manager );
- dialog.setContentPane( panel );
- Dimension size = new Dimension( 400, 360 );
- dialog.setSize( size );
- dialog.setLocationRelativeTo( source );
- dialog.setResizable( true );
- dialog.setVisible( true );
- }
- catch( Throwable e )
- {
- final String error =
- "Unexpected error while attempting to construct host
dialog."
- + "\nCODEBASE: "
- +
CacheManagerPanel.class.getProtectionDomain().getCodeSource().getLocation().toString();
- Logger logger = Logger.getLogger( "depot.prefs" );
- logger.log( Level.SEVERE, error, e );
- }
- */
}
}


Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheTableModel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheTableModel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/CacheTableModel.java
Mon May 30 10:02:12 2005
@@ -71,7 +71,7 @@
* Creation of a new table model that presents children of the supplied
preference
* node as table entries.
*
- * @param prefs the preferences node that this model is displaying
+ * @param manager the cache configuration manager
*/
public CacheTableModel( CacheManager manager )
{

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicDialog.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicDialog.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicDialog.java
Mon May 30 10:02:12 2005
@@ -46,10 +46,6 @@
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;

-import net.dpml.transit.Transit;
-import net.dpml.transit.util.ExceptionHelper;
-import net.dpml.transit.content.ContentHandlerRegistry;
-
/**
* Runnable plugin that handles DPML environment setup.
*

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/DepotPreferencesPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/DepotPreferencesPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/DepotPreferencesPanel.java
Mon May 30 10:02:12 2005
@@ -42,6 +42,10 @@
import net.dpml.transit.Transit;
import net.dpml.transit.model.TransitModel;
import net.dpml.transit.manager.TransitManager;
+import net.dpml.transit.manager.LayoutRegistryManager;
+import net.dpml.transit.manager.CacheManager;
+import net.dpml.transit.manager.RegistryManager;
+import net.dpml.transit.manager.ProxyManager;

/**
* Panel that presents the default preferences for DPML applications
including
@@ -92,15 +96,18 @@
// add the different management models to the tabbed pane
//

+ LayoutRegistryManager layouts = manager.getLayoutRegistryManager();
+ CacheManager cache = manager.getCacheManager();
+ RegistryManager content = manager.getRegistryManager();
+ ProxyManager proxy = manager.getProxyManager();
JPanel panel = new JPanel();
- CacheManagerPanel cachePanel =
- new CacheManagerPanel( window, manager.getCacheManager() );
- RegistryManagerPanel registryPanel =
- new RegistryManagerPanel( window, manager.getRegistryManager() );
- ProxyManagerPanel proxyPanel =
- new ProxyManagerPanel( window, manager.getProxyManager() );
+ LayoutRegistryManagerPanel layoutPanel = new
LayoutRegistryManagerPanel( window, layouts );
+ CacheManagerPanel cachePanel = new CacheManagerPanel( window, cache,
layouts );
+ RegistryManagerPanel registryPanel = new RegistryManagerPanel(
window, content );
+ ProxyManagerPanel proxyPanel = new ProxyManagerPanel( window, proxy
);

tabbedPane.addTab( "Cache", cachePanel );
+ tabbedPane.addTab( "Layout", layoutPanel );
tabbedPane.addTab( "Content", registryPanel );
tabbedPane.addTab( "Proxy", proxyPanel );


Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
Mon May 30 10:02:12 2005
@@ -20,13 +20,18 @@

import java.awt.BorderLayout;
import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.net.URL;
+import java.net.PasswordAuthentication;
import java.util.Date;
+import java.util.logging.Level;
+import java.util.logging.Logger;

import javax.swing.AbstractAction;
import javax.swing.BoxLayout;
@@ -43,20 +48,26 @@
import javax.swing.border.TitledBorder;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
+import javax.swing.event.ListDataListener;
+import javax.swing.event.ListDataEvent;

import net.dpml.transit.manager.HostManager;
+import net.dpml.transit.manager.LayoutRegistryManager;
import net.dpml.transit.model.HostListener;
+import net.dpml.transit.model.LayoutModel;
import net.dpml.transit.model.HostChangeEvent;
-import net.dpml.transit.model.EnabledEvent;
-import net.dpml.transit.model.TrustedEvent;
-import net.dpml.transit.model.PriorityEvent;
+import net.dpml.transit.model.HostLayoutEvent;
+import net.dpml.transit.model.HostEnabledEvent;
+import net.dpml.transit.model.HostTrustedEvent;
+import net.dpml.transit.model.HostPriorityEvent;

/**
* A interactive panel that presents the preferences for a single host.
*
* @author <a href="mailto:mcconnell AT osm.net";>OSM</a>
*/
-class HostManagerPanel extends ClassicPanel implements HostListener,
PropertyChangeListener, DocumentListener
+class HostManagerPanel extends ClassicPanel
+ implements HostListener, PropertyChangeListener, DocumentListener,
ListDataListener
{
//--------------------------------------------------------------
// static
@@ -69,7 +80,8 @@
//--------------------------------------------------------------

private final JDialog m_parent;
- private HostManager m_manager;
+ private final HostManager m_manager;
+ private final LayoutRegistryManager m_layouts;

private JLabel m_label;
private JCheckBox m_enabled;
@@ -77,6 +89,8 @@
private JTextField m_base;
private JButton m_ok;
private JButton m_revert;
+ private LayoutComboBoxModel m_strategy;
+ private CredentialsAction m_credentials;

private PropertyChangeSupport m_propertyChangeSupport;

@@ -84,12 +98,13 @@
// constructor
//--------------------------------------------------------------

- public HostManagerPanel( JDialog parent, HostManager manager ) throws
Exception
+ public HostManagerPanel( JDialog parent, HostManager manager,
LayoutRegistryManager layouts ) throws Exception
{
super();

m_parent = parent;
m_manager = manager;
+ m_layouts = layouts;

m_manager.addHostListener( this );
m_propertyChangeSupport = new PropertyChangeSupport( this );
@@ -161,9 +176,7 @@
layoutPlusCredentials.setBackground( Color.white );
panel.add( layoutPlusCredentials );

- // repository layout strategy
- // TODO: need to figure out how to get a layout 'friendly name' and
associate
- // this with a class name.
+ // resolver layout strategy

JPanel layout = new JPanel();
layout.setLayout( new BorderLayout() );
@@ -174,7 +187,9 @@
border5 ) );
layoutPlusCredentials.add( layout );

- JComboBox strategy = new JComboBox( new Object[]{ " Classic Layout "
} );
+ m_strategy = new LayoutComboBoxModel( m_layouts, m_manager );
+ m_strategy.addListDataListener( this );
+ JComboBox strategy = new JComboBox( m_strategy );
layout.add( strategy, BorderLayout.SOUTH );

// sign-on credentials
@@ -186,14 +201,13 @@
new CompoundBorder(
new TitledBorder( null, "Credentials", TitledBorder.LEFT,
TitledBorder.TOP),
border5 ) );
- // TODO: action support for credential settings
ImageIcon keysIcon = IconHelper.createImageIcon(
getClass().getClassLoader(),
"net/dpml/depot/prefs/images/password.png",
"Credentials" );
JLabel keys = new JLabel( keysIcon );
- JButton settings = new JButton( "Settings" );
- settings.setEnabled( false );
+ m_credentials = new CredentialsAction( "Settings" );
+ JButton settings = new JButton( m_credentials );
JPanel settingsPanel = new JPanel();
settingsPanel.setLayout( new BorderLayout() );
settingsPanel.setBackground( Color.white );
@@ -284,7 +298,7 @@
* Notify a consumer of a change to the enabled state.
* @param event the host event
*/
- public void enabledStateChanged( EnabledEvent event )
+ public void enabledStateChanged( HostEnabledEvent event )
{
}

@@ -292,7 +306,7 @@
* Notify a consumer of a change to the trusted state.
* @param event the host event
*/
- public void trustedStateChanged( TrustedEvent event )
+ public void trustedStateChanged( HostTrustedEvent event )
{
}

@@ -300,7 +314,15 @@
* Notify a consumer of a change to the host priority.
* @param event the host event
*/
- public void priorityChanged( PriorityEvent event )
+ public void priorityChanged( HostPriorityEvent event )
+ {
+ }
+
+ /**
+ * Notify a consumer of a change to the host priority.
+ * @param event the host event
+ */
+ public void layoutChanged( HostLayoutEvent event )
{
}

@@ -338,6 +360,16 @@
flag = true;
}
}
+ {
+ LayoutModel layout = (LayoutModel) m_strategy.getSelectedItem();
+ if( null != layout )
+ {
+ if( false == layout.equals( m_manager.getLayoutModel() ) )
+ {
+ flag = true;
+ }
+ }
+ }
m_ok.setEnabled( flag );
m_revert.setEnabled( flag );
}
@@ -371,6 +403,60 @@
}

//--------------------------------------------------------------
+ // ListDataListener (listen for changes to the layout selection)
+ //--------------------------------------------------------------
+
+ /**
+ * Sent after the indices in the index0,index1
+ * interval have been inserted in the data model.
+ * The new interval includes both index0 and index1.
+ *
+ * @param e a <code>ListDataEvent</code> encapsulating the
+ * event information
+ */
+ public void intervalAdded(ListDataEvent e)
+ {
+ }
+
+ /**
+ * Sent after the indices in the index0,index1 interval
+ * have been removed from the data model. The interval
+ * includes both index0 and index1.
+ *
+ * @param e a <code>ListDataEvent</code> encapsulating the
+ * event information
+ */
+ public void intervalRemoved(ListDataEvent e)
+ {
+ }
+
+ /**
+ * Sent when the contents of the list has changed in a way
+ * that's too complex to characterize with the previous
+ * methods. For example, this is sent when an item has been
+ * replaced. Index0 and index1 bracket the change.
+ *
+ * @param e a <code>ListDataEvent</code> encapsulating the
+ * event information
+ */
+ public void contentsChanged(ListDataEvent e)
+ {
+ Object selection = m_strategy.getSelectedItem();
+ if( selection instanceof LayoutModel )
+ {
+ LayoutModel current = m_manager.getLayoutModel();
+ LayoutModel model = (LayoutModel) selection;
+ if( false == model.equals( current ) )
+ {
+ PropertyChangeEvent event =
+ new PropertyChangeEvent(
+ this, "layout", current, model );
+ m_propertyChangeSupport.firePropertyChange( event );
+ }
+ }
+ }
+
+ //--------------------------------------------------------------
// utility classes
//--------------------------------------------------------------

@@ -456,15 +542,70 @@
boolean value = m_enabled.isSelected();
m_manager.setEnabled( value );
}
- //try
- //{
- // m_hostPrefs.putLong( "modified", new Date().getTime() );
// trigger event broadcast
- // m_hostPrefs.flush();
- //}
- //catch( Throwable e )
- //{
- // e.printStackTrace();
- //}
+ LayoutModel layout = (LayoutModel) m_strategy.getSelectedItem();
+ if( null != layout )
+ {
+ if( false == layout.equals( m_manager.getLayoutModel() ) )
+ {
+ m_manager.setLayoutModel( layout );
+ }
+ }
+ }
+ }
+
+ private class CredentialsAction extends AbstractAction implements
PasswordAuthenticationListener
+ {
+ CredentialsAction( String name )
+ {
+ super( name );
+ }
+
+ public void actionPerformed( ActionEvent event )
+ {
+ try
+ {
+ final String title = "Credentials: " +
m_manager.getHostName();
+ final Dimension size = new Dimension( 300, 280 );
+ ClassicDialog dialog = ClassicDialog.createDialog( m_parent,
title, size );
+ PasswordAuthentication auth = m_manager.getAuthentication();
+ ClassicCredentialsPanel panel =
+ new ClassicCredentialsPanel( dialog, auth, this );
+ dialog.getBody().add( panel );
+ dialog.setLocationRelativeTo( (Component) event.getSource()
);
+ dialog.setResizable( false );
+ dialog.setVisible(true);
+ }
+ catch( Throwable e )
+ {
+ final String error =
+ "Unexpected error while attempting to handle credentials
action. "
+ + "\nCODEBASE: "
+ +
getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ Logger logger = Logger.getLogger( "depot.prefs" );
+ logger.log( Level.SEVERE, error, e );
+ }
+ }
+
+ /**
+ * Notify a consumer of a change to the host priority.
+ * @param event the host event
+ */
+ public void passwordAuthenticationChanged(
PasswordAuthenticationEvent event )
+ {
+ PasswordAuthentication auth = event.getPasswordAuthentication();
+ try
+ {
+ m_manager.setAuthentication( auth );
+ }
+ catch( Throwable e )
+ {
+ final String error =
+ "Unexpected error while attempting to update host sign-on
credentials. "
+ + "\nCODEBASE: "
+ +
getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ Logger logger = Logger.getLogger( "depot.prefs" );
+ logger.log( Level.SEVERE, error, e );
+ }
}
}

@@ -494,11 +635,14 @@
{
m_enabled.setSelected( m_manager.getEnabled() );
m_trusted.setSelected( m_manager.getTrusted() );
+ m_strategy.setSelectedItem( m_manager.getLayoutModel() );
m_base.setText( getBasePath() );
PropertyChangeEvent e =
new PropertyChangeEvent(
this, "revert", null, null );
m_propertyChangeSupport.firePropertyChange( e );
+
+
}
}


Added:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutComboBoxModel.java
==============================================================================
--- (empty file)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutComboBoxModel.java
Mon May 30 10:02:12 2005
@@ -0,0 +1,144 @@
+/*
+ * Copyright 2005 Stephen McConnell
+ *
+ * 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 net.dpml.depot.prefs;
+
+import java.awt.Component;
+
+import javax.swing.ComboBoxModel;
+import javax.swing.DefaultComboBoxModel;
+
+import net.dpml.transit.manager.HostManager;
+import net.dpml.transit.manager.LayoutRegistryManager;
+import net.dpml.transit.model.HostListener;
+import net.dpml.transit.model.HostChangeEvent;
+import net.dpml.transit.model.HostEnabledEvent;
+import net.dpml.transit.model.HostTrustedEvent;
+import net.dpml.transit.model.HostPriorityEvent;
+import net.dpml.transit.model.HostLayoutEvent;
+import net.dpml.transit.model.LayoutModel;
+import net.dpml.transit.model.LayoutRegistryListener;
+import net.dpml.transit.model.LayoutRegistryEvent;
+
+class LayoutComboBoxModel extends DefaultComboBoxModel implements
LayoutRegistryListener, HostListener
+{
+
//--------------------------------------------------------------------------
+ // state
+
//--------------------------------------------------------------------------
+
+ private final LayoutRegistryManager m_manager;
+ private final HostManager m_host;
+
+
//--------------------------------------------------------------------------
+ // constructor
+
//--------------------------------------------------------------------------
+
+ /**
+ * Creation of a new combox box containing the available set of
+ * location resolvers declared by a location manager and a current
+ * selection declared by a supplied host manager.
+ *
+ * @param locations the layout manager
+ * @param host the host manager
+ */
+ public LayoutComboBoxModel( LayoutRegistryManager manager, HostManager
host )
+ {
+ super( manager.getLayoutModels() );
+ m_manager = manager;
+ m_host = host;
+
+ LayoutModel layout = host.getLayoutModel();
+ if( null != layout )
+ {
+ setSelectedItem( layout );
+ }
+ }
+
+
//--------------------------------------------------------------------------
+ // LayoutRegistryListener (listen to changes to the available layouts)
+
//--------------------------------------------------------------------------
+
+ /**
+ * Notify all listeners of the addition of a layout registry model.
+ * @param event the layout registry event
+ */
+ public void layoutAdded( LayoutRegistryEvent event )
+ {
+ int n = m_manager.getLayoutModels().length;
+ fireContentsChanged( this, 0, n );
+ }
+
+ /**
+ * Notify all listeners of the removal of a layout model.
+ * @param event the layout registry event
+ */
+ public void layoutRemoved( LayoutRegistryEvent event )
+ {
+ int n = m_manager.getLayoutModels().length;
+ fireContentsChanged( this, 0, n );
+ }
+
+ //--------------------------------------------------------------
+ // HostListener (listen for changes to the selected layout)
+ //--------------------------------------------------------------
+
+ /**
+ * Notify a consumer of an aggregated set of changes.
+ * @param event the host change event
+ */
+ public void hostChanged( HostChangeEvent event )
+ {
+ }
+
+ /**
+ * Notify a consumer of a change to the enabled state.
+ * @param event the host event
+ */
+ public void enabledStateChanged( HostEnabledEvent event )
+ {
+ }
+
+ /**
+ * Notify a consumer of a change to the trusted state.
+ * @param event the host event
+ */
+ public void trustedStateChanged( HostTrustedEvent event )
+ {
+ }
+
+ /**
+ * Notify a consumer of a change to the host priority.
+ * @param event the host event
+ */
+ public void priorityChanged( HostPriorityEvent event )
+ {
+ }
+
+ /**
+ * Notify a consumer of a change to the host priority.
+ * @param event the host event
+ */
+ public void layoutChanged( HostLayoutEvent event )
+ {
+ LayoutModel layout = event.getLayoutModel();
+ if( null != layout )
+ {
+ setSelectedItem( layout );
+ }
+ }
+
+}
+

Added:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java
==============================================================================
--- (empty file)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java
Mon May 30 10:02:12 2005
@@ -0,0 +1,332 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * 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 net.dpml.depot.prefs;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dialog;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Window;
+import java.awt.Frame;
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.util.logging.Logger;
+import java.util.logging.Level;
+
+import javax.swing.AbstractAction;
+import javax.swing.BoxLayout;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.border.CompoundBorder;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.TitledBorder;
+import javax.swing.table.DefaultTableColumnModel;
+import javax.swing.table.TableColumn;
+import javax.swing.table.TableColumnModel;
+
+import net.dpml.transit.Transit;
+import net.dpml.transit.util.ExceptionHelper;
+import net.dpml.transit.layout.LayoutRegistry;
+import net.dpml.transit.layout.Layout;
+import net.dpml.transit.manager.LayoutRegistryManager;
+import net.dpml.transit.manager.LayoutManager;
+import net.dpml.transit.model.LayoutModel;
+
+/**
+ * Runnable plugin that handles DPML environment setup.
+ *
+ * @author <a href="mailto:mcconnell AT osm.net";>OSM</a>
+ */
+class LayoutRegistryManagerPanel extends ClassicPanel implements
PropertyChangeListener
+{
+ //--------------------------------------------------------------
+ // state
+ //--------------------------------------------------------------
+
+ private final Window m_parent;
+ private ClassicTable m_table;
+ private EditAction m_editAction;
+ private JButton m_edit;
+ private JButton m_delete;
+ private String m_selection;
+
+ private LayoutRegistryManager m_manager;
+
+ //--------------------------------------------------------------
+ // constructor
+ //--------------------------------------------------------------
+
+ public LayoutRegistryManagerPanel( Window parent, LayoutRegistryManager
manager ) throws Exception
+ {
+ super();
+
+ m_manager = manager;
+ m_parent = parent;
+
+ m_editAction = new EditAction( "Edit" );
+ m_edit = new JButton( m_editAction );
+ m_delete = new JButton( new DeleteAction( "Delete" ) );
+
+ JPanel panel = new JPanel();
+ panel.setBackground( Color.white );
+ panel.setLayout( new BorderLayout() );
+ TitledBorder tb =
+ new TitledBorder(
+ new EmptyBorder( 0,0,0,0 ), "Location Resolvers",
TitledBorder.LEFT, TitledBorder.TOP );
+ panel.setBorder( new CompoundBorder( tb, border5 ) );
+
+ TableColumnModel columns = createResolverHandlerColumnModel();
+ LayoutRegistryTableModel model = new LayoutRegistryTableModel(
manager );
+
+ m_table = new ClassicTable( model, columns );
+ m_table.addPropertyChangeListener( this );
+ m_table.setShowVerticalLines( false );
+ m_table.setShowHorizontalLines( false );
+
+ JScrollPane scroller = createScrollPanel( m_table );
+ panel.add( scroller, BorderLayout.CENTER );
+ JPanel buttons = new JPanel();
+ buttons.setLayout( new FlowLayout( FlowLayout.RIGHT ) );
+ buttons.add( new JButton( new AddAction( "Add" ) ) );
+ buttons.add( m_edit );
+ buttons.add( m_delete );
+ buttons.setBorder( new EmptyBorder( 10, 10, 5, 0 ) );
+ buttons.setBackground( Color.white );
+ panel.add( buttons, BorderLayout.SOUTH );
+
+ JLabel label =
+ IconHelper.createImageIconJLabel(
+ getClass().getClassLoader(), MISC_IMG_PATH,
+ "Artifact", "Location Resolver Controller settings." );
+ label.setBorder( new EmptyBorder( 0, 5, 0, 0 ) );
+ ControllerAction controller = new ControllerAction( "Controller" );
+ getHeader().addEntry( label, "Location Registry Controller", new
JButton( controller ) );
+ getBody().add( panel );
+ }
+
+ //--------------------------------------------------------------
+ // PropertyChangelistener
+ //--------------------------------------------------------------
+
+ /**
+ * handle property change events raised by the table model.
+ */
+ public void propertyChange( PropertyChangeEvent event )
+ {
+ if( "selection".equals( event.getPropertyName() ) )
+ {
+ m_selection = (String) event.getNewValue();
+ LayoutModel resolver = m_manager.getLayoutModel( m_selection );
+ if( null != resolver )
+ {
+ m_edit.setEnabled( true );
+ if( null == resolver.getClassname() )
+ {
+ m_delete.setEnabled( true );
+ }
+ getRootPane().setDefaultButton( m_edit );
+ }
+ else
+ {
+ m_edit.setEnabled( false );
+ m_delete.setEnabled( false );
+ }
+ }
+ else if( "doubleclick".equals( event.getPropertyName() ) )
+ {
+ m_editAction.editSelection( m_edit );
+ }
+ }
+
+ //--------------------------------------------------------------
+ // utilities
+ //--------------------------------------------------------------
+
+ private class ControllerAction extends AbstractAction
+ {
+ ControllerAction( String name )
+ {
+ super( name );
+ }
+
+ public void actionPerformed( ActionEvent event )
+ {
+ try
+ {
+ final String title = "Location Resolver Controller";
+ final Dimension size = new Dimension( 400, 240 );
+ ClassicDialog dialog = ClassicDialog.createDialog( m_parent,
title, size );
+ PluginManagerPanel panel =
+ new PluginManagerPanel( dialog, m_manager,
LayoutRegistry.class );
+ dialog.getBody().add( panel );
+ dialog.setLocationRelativeTo( (Component) event.getSource()
);
+ dialog.setResizable( false );
+ dialog.setVisible(true);
+ }
+ catch( Throwable e )
+ {
+ final String error =
+ "Unexpected error while attempting to handle the
'Controller' action. "
+ + "\nCODEBASE: "
+ +
getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ String message = ExceptionHelper.packException( error, e,
true );
+ System.err.println( message );
+ }
+ }
+ }
+
+ /**
+ * Creation of a parameterized scroll pane.
+ * @param view the viewport view
+ * @return the scroll pane wrapping the supplied view
+ */
+ private static JScrollPane createScrollPanel( Component view )
+ {
+ JScrollPane scroller = new JScrollPane();
+ scroller.setVerticalScrollBarPolicy(
+ JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED );
+ scroller.setHorizontalScrollBarPolicy(
+ JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
+ scroller.getViewport().setBackground( Color.white );
+ scroller.setViewportView( view );
+ return scroller;
+ }
+
+ /**
+ * Utility method to construct the hosts table column model.
+ * @return the table
+ */
+ private static TableColumnModel createResolverHandlerColumnModel()
+ {
+ TableColumn iconColumn = new TableColumn( 0, 30, new
ClassicCellRenderer(), null );
+ iconColumn.setHeaderValue( "" );
+ iconColumn.setMaxWidth( 30 );
+ iconColumn.setMinWidth( 30 );
+ TableColumn typeColumn = new TableColumn( 1, 100, new
ClassicCellRenderer(), null );
+ typeColumn.setHeaderValue( "Type" );
+ TableColumnModel model = new DefaultTableColumnModel();
+ model.addColumn( iconColumn );
+ model.addColumn( typeColumn );
+ return model;
+ }
+
+ private class AddAction extends EditAction
+ {
+ public AddAction( String name )
+ {
+ super( name );
+ setEnabled( true );
+ }
+
+ public void actionPerformed( ActionEvent event )
+ {
+ String id = JOptionPane.showInputDialog( m_parent, "Resolver
Identifier:" );
+ if( null == id )
+ {
+ return;
+ }
+ else
+ {
+ m_manager.newLayoutModel( id );
+ }
+ }
+ }
+
+ private class EditAction extends AbstractAction
+ {
+ public EditAction( String name )
+ {
+ super( name );
+ setEnabled( false );
+ }
+
+ public void actionPerformed( ActionEvent event )
+ {
+ editSelection( (Component) event.getSource() );
+ }
+
+ public void editSelection( Component source )
+ {
+ try
+ {
+ final String title = "Location Resolver";
+ final Dimension size = new Dimension( 400, 240 );
+ ClassicDialog dialog = ClassicDialog.createDialog( m_parent,
title, size );
+ LayoutManager manager = m_manager.getLayoutManager(
m_selection );
+ if( null != manager )
+ {
+ PluginManagerPanel panel =
+ new PluginManagerPanel( dialog, manager, Layout.class
);
+ dialog.getBody().add( panel );
+ dialog.setLocationRelativeTo( source );
+ dialog.setResizable( false );
+ dialog.setVisible(true);
+ }
+ }
+ catch( Throwable e )
+ {
+ final String error =
+ "Unexpected error while attempting to construct plugin
dialog."
+ + "\nCODEBASE: "
+ +
getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ Logger logger = Logger.getLogger( "depot.prefs" );
+ logger.log( Level.SEVERE, error, e );
+ }
+ }
+ }
+
+ private class DeleteAction extends AbstractAction
+ {
+ public DeleteAction( String name )
+ {
+ super( name );
+ setEnabled( false );
+ }
+
+ public void actionPerformed( ActionEvent event )
+ {
+ if( null == m_selection )
+ {
+ return;
+ }
+ try
+ {
+ m_manager.removeLayoutModel( m_selection );
+ }
+ catch( Throwable e )
+ {
+ final String error =
+ "Unexpected error while attempting to delete a layout
plugin reference."
+ + "\nCODEBASE: "
+ +
getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ String message = ExceptionHelper.packException( error, e,
true );
+ System.out.println( message );
+ }
+ }
+ }
+
+ private static String MISC_IMG_PATH =
"net/dpml/depot/prefs/images/misc.png";
+}

Added:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryTableModel.java
==============================================================================
--- (empty file)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryTableModel.java
Mon May 30 10:02:12 2005
@@ -0,0 +1,181 @@
+/*
+ * Copyright 2005 Stephen McConnell
+ *
+ * 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 net.dpml.depot.prefs;
+
+import javax.swing.Icon;
+import javax.swing.table.AbstractTableModel;
+
+import net.dpml.transit.Transit;
+import net.dpml.transit.model.LayoutRegistryEvent;
+import net.dpml.transit.model.LayoutRegistryListener;
+import net.dpml.transit.manager.LayoutRegistryManager;
+
+/**
+ * Table model that maps table rows to child nodes of a supplied preferences
node.
+ */
+public class LayoutRegistryTableModel extends AbstractTableModel implements
LayoutRegistryListener
+{
+
//--------------------------------------------------------------------------
+ // static
+
//--------------------------------------------------------------------------
+
+ /**
+ * Default small icon path.
+ */
+ private static final String ICON_PATH =
"net/dpml/depot/prefs/images/item.gif";
+
+ /**
+ * Constant row identifier for the icon.
+ */
+ public static final int ICON = 0;
+
+ /**
+ * Constant row identifier for the name.
+ */
+ public static final int VALUE = 1;
+
+ /**
+ * Number of columns.
+ */
+ private static final int COLUMN_COUNT = 2;
+
+ /**
+ * Default small icon.
+ */
+ private static final Icon FEATURE_ICON =
+ IconHelper.createImageIcon(
+ LayoutRegistryTableModel.class.getClassLoader(), ICON_PATH,
"Features" );
+
+ private final LayoutRegistryManager m_manager;
+
+
//--------------------------------------------------------------------------
+ // constructor
+
//--------------------------------------------------------------------------
+
+ /**
+ * Creation of a new table model that presents children of the supplied
preference
+ * node as table entries.
+ *
+ * @param manager the registry configuration manager
+ */
+ public LayoutRegistryTableModel( LayoutRegistryManager manager )
+ {
+ super();
+ m_manager = manager;
+ manager.addLayoutRegistryListener( this );
+ }
+
+ protected void finalize()
+ {
+ try
+ {
+ m_manager.removeLayoutRegistryListener( this );
+ }
+ catch( Throwable e )
+ {
+ }
+ }
+
+
//--------------------------------------------------------------------------
+ // LayoutRegistryListener
+
//--------------------------------------------------------------------------
+
+ /**
+ * Notify all listeners of the addition of a layout registry model.
+ * @param event the layout registry event
+ */
+ public void layoutAdded( LayoutRegistryEvent event )
+ {
+ fireTableStructureChanged();
+ }
+
+ /**
+ * Notify all listeners of the removal of a layout model.
+ * @param event the layout registry event
+ */
+ public void layoutRemoved( LayoutRegistryEvent event )
+ {
+ fireTableStructureChanged();
+ }
+
+
//--------------------------------------------------------------------------
+ // NodeTableModel
+
//--------------------------------------------------------------------------
+
+ /**
+ * Returns the number of model columns.
+ * @return int the number of columns maintained by the model
+ */
+ public int getColumnCount()
+ {
+ return COLUMN_COUNT;
+ }
+
+ /**
+ * Returns the number of rows in the model. The value returned is
+ * equivilent to the number of elements in the list backing the model.
+ * @return int the number of rows maintained by the model
+ */
+ public int getRowCount()
+ {
+ try
+ {
+ return m_manager.getLayoutModels().length;
+ }
+ catch( Throwable e )
+ {
+ return 0;
+ }
+ }
+
+ /**
+ * Returns the feature object at the request column and row combination.
+ * If the col index is out of range the method returns the agent
corresponding
+ * to the row identifier.
+ * @param row the row index
+ * @param col the column index
+ * @return Object
+ */
+ public Object getValueAt( int row, int col )
+ {
+ Object result = "";
+ if( row > getRowCount() )
+ {
+ return result;
+ }
+
+ switch( col )
+ {
+ case ICON :
+ return FEATURE_ICON;
+ default:
+ return getResolverAtRow( row );
+ }
+ }
+
+ private String getResolverAtRow( int row )
+ {
+ try
+ {
+ return m_manager.getLayoutModels()[ row ].getID();
+ }
+ catch( Throwable e )
+ {
+ return "";
+ }
+ }
+}

Modified: development/main/depot/prefs/src/main/net/dpml/depot/prefs/Main.java
==============================================================================
--- development/main/depot/prefs/src/main/net/dpml/depot/prefs/Main.java
(original)
+++ development/main/depot/prefs/src/main/net/dpml/depot/prefs/Main.java
Mon May 30 10:02:12 2005
@@ -20,14 +20,14 @@

import java.net.URL;
import java.net.URLClassLoader;
-import java.util.logging.Logger;
-import java.util.logging.Level;
import java.util.prefs.Preferences;

import javax.swing.SwingUtilities;

import net.dpml.transit.Transit;
+import net.dpml.transit.adapter.LoggingAdapter;
import net.dpml.transit.manager.TransitManager;
+import net.dpml.transit.model.Logger;

/**
* CLI hander for the depot package.
@@ -41,7 +41,7 @@
throws Exception
{

- Logger logger = Logger.getLogger( "depot.prefs" );
+ final Logger logger = new LoggingAdapter();

//
// check if a prefs reset has been requested
@@ -65,7 +65,7 @@
}
catch( Throwable e )
{
- logger.log( Level.SEVERE, "preference reset failed", e );
+ logger.error( "preference reset failed", e );
}
}
}
@@ -89,20 +89,19 @@
new Runnable() {
public void run()
{
- setup();
+ setup( logger );
}
}
);
}

- private static void setup()
+ private static void setup( final Logger logger )
{
//
// Get the preferences node that will be used as the root node for
// the transit manager.
//

- Logger logger = Logger.getLogger( "depot.prefs" );
Preferences prefs = Preferences.userNodeForPackage( Transit.class );
TransitManager manager = null;


Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/PluginManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/PluginManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/PluginManagerPanel.java
Mon May 30 10:02:12 2005
@@ -403,7 +403,7 @@
{
Repository repository =
Transit.getInstance().getRepository();
Class cls = classloader.loadClass( classname );
- Object[] args = new Object[]{ parent };
+ Object[] args = new Object[]{ parent, m_manager };
return (Dialog) repository.instantiate( cls, args );
}
catch( ClassNotFoundException e )

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyFeaturesPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyFeaturesPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyFeaturesPanel.java
Mon May 30 10:02:12 2005
@@ -31,9 +31,9 @@
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.net.ContentHandler;
-import java.net.URI;
import java.net.PasswordAuthentication;
import java.net.URISyntaxException;
+import java.net.URI;
import java.net.URL;
import java.util.logging.Logger;
import java.util.logging.Level;
@@ -119,7 +119,7 @@
getHeader().addStackedEntry( label, "Proxy Server", padding );
}

- // add a text field containing the username and password
+ // add a text field containing the proxy sign-on credentials

{
JLabel label =

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryManagerPanel.java
Mon May 30 10:02:12 2005
@@ -50,7 +50,7 @@

import net.dpml.transit.Transit;
import net.dpml.transit.util.ExceptionHelper;
-import net.dpml.transit.content.ContentHandlerRegistry;
+import net.dpml.transit.content.ContentRegistry;
import net.dpml.transit.manager.RegistryManager;
import net.dpml.transit.manager.ContentManager;

@@ -175,7 +175,7 @@
final Dimension size = new Dimension( 400, 240 );
ClassicDialog dialog = ClassicDialog.createDialog( m_parent,
title, size );
PluginManagerPanel panel =
- new PluginManagerPanel( dialog, m_manager,
ContentHandlerRegistry.class );
+ new PluginManagerPanel( dialog, m_manager,
ContentRegistry.class );
dialog.getBody().add( panel );
dialog.setLocationRelativeTo( (Component) event.getSource()
);
dialog.setResizable( false );
@@ -245,7 +245,7 @@
}
else
{
- m_manager.addContentModel( type );
+ m_manager.newContentModel( type );
}
}
}

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryTableModel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryTableModel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryTableModel.java
Mon May 30 10:02:12 2005
@@ -70,7 +70,7 @@
* Creation of a new table model that presents children of the supplied
preference
* node as table entries.
*
- * @param prefs the preferences node that this model is displaying
+ * @param manager the registry configuration manager
*/
public RegistryTableModel( RegistryManager manager )
{

Modified: development/main/depot/station/build.xml
==============================================================================
--- development/main/depot/station/build.xml (original)
+++ development/main/depot/station/build.xml Mon May 30 10:02:12 2005
@@ -6,4 +6,25 @@

<transit:import uri="artifact:template:dpml/magic/standard"/>

+ <target name="build" depends="standard.build">
+ <rmic base="${basedir}/target/classes" includes="**/DepotStation.class"/>
+ </target>
+
+ <target name="install" depends="standard.install">
+ <echo>
+#----------------------------------------------------------------------------------
+# Updating DPML DATA ${dpml.data}/lib
+#----------------------------------------------------------------------------------
+ </echo>
+ <property name="lib" location="${dpml.data}/lib"/>
+ <mkdir dir="${lib}"/>
+ <copy toDir="${lib}" preservelastmodified="true" overwrite="true">
+ <fileset dir="${basedir}/target/deliverables/jars">
+ <include name="${project.filename}"/>
+ <include name="${project.filename}.md5"/>
+ <include name="${project.filename}.asc"/>
+ </fileset>
+ </copy>
+ </target>
+
</project>



  • svn commit: r2677 - in development/main/depot: console/src/main/net/dpml/depot/lang prefs/src/main/net/dpml/depot/prefs station, mcconnell, 05/29/2005

Archive powered by MHonArc 2.6.24.

Top of Page