Skip to Content.
Sympa Menu

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

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: r2681 - in development/main/depot: console/src/main/net/dpml/depot/lang prefs/src/main/net/dpml/depot/prefs
  • Date: Tue, 31 May 2005 00:43:07 -0400

Author: mcconnell AT dpml.net
Date: Tue May 31 00:43:07 2005
New Revision: 2681

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

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

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

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

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

development/main/depot/prefs/src/main/net/dpml/depot/prefs/RegistryManagerPanel.java
Log:
Attempting to improve startup performance but it feels like a doze of viagra
would not go astray.

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
Tue May 31 00:43:07 2005
@@ -41,14 +41,6 @@
// static utilities for setup of logging manager

//--------------------------------------------------------------------------

- // The following keys and static operations are needed to trigger the
loading
- // of a custom LogManager. The log manager is loader by requesting the
loading
- // of a class named under the LOG_MANAGER_KEY key. This will fail with
a
- // ClassNotFound but the LogManager impl checks for the class in the
context
- // classloader if and only if the first property request fails (which is
really
- // strange). We also include a custom logging configuration handler
declaration
- // for the setup and maintenance of the logging configuration.
-
static
{
System.setProperty( "java.util.logging.manager",
"net.dpml.depot.logging.LoggingManager" );
@@ -66,7 +58,7 @@
throws Exception
{
Logger logger = Logger.getLogger( "depot" );
- logger.info( "Depot (Build ID " + DPML.BUILD_ID + ")." );
+ logger.info( "Depot (Build ID: " + DPML.BUILD_ID + ")." );

//
// check if a prefs reset has been requested

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
Tue May 31 00:43:07 2005
@@ -89,7 +89,7 @@
// constructor
//--------------------------------------------------------------

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


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
Tue May 31 00:43:07 2005
@@ -82,39 +82,65 @@
private RegistryManagerPanel m_registryPanel;
private ProxyManagerPanel m_proxyPanel;

+ private final Window m_window;

- public DepotPreferencesPanel( Window window, TransitManager manager )
throws Exception
+ public DepotPreferencesPanel( Window window, final TransitManager
manager ) throws Exception
{
super( new BorderLayout() );

m_manager = manager;
+ m_window = window;

JLabel label =
IconHelper.createImageIconJLabel(
getClass().getClassLoader(), DPML_ICON_FILENAME, "", "DPML
Depot" );
label.setBorder( new EmptyBorder( 5, 0, 0, 0 ) );

- JTabbedPane tabbedPane = new JTabbedPane();
+ final JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setBorder( new EmptyBorder( 0, OFFSET, OFFSET, OFFSET ) );

//
// 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();
- m_layoutPanel = new LayoutRegistryManagerPanel( window, layouts );
- m_cachePanel = new CacheManagerPanel( window, cache, layouts );
- m_registryPanel = new RegistryManagerPanel( window, content );
- m_proxyPanel = new ProxyManagerPanel( window, proxy );
-
- tabbedPane.addTab( "Cache", m_cachePanel );
- tabbedPane.addTab( "Layout", m_layoutPanel );
- tabbedPane.addTab( "Content", m_registryPanel );
- tabbedPane.addTab( "Proxy", m_proxyPanel );
+
+ SwingUtilities.invokeLater(
+ new Runnable() {
+ public void run()
+ {
+ final CacheManager cache = manager.getCacheManager();
+ final LayoutRegistryManager layouts =
manager.getLayoutRegistryManager();
+ m_layoutPanel = new LayoutRegistryManagerPanel( m_window,
layouts );
+ m_cachePanel = new CacheManagerPanel( m_window, cache,
layouts );
+ tabbedPane.addTab( "Cache", m_cachePanel );
+ tabbedPane.addTab( "Layout", m_layoutPanel );
+ tabbedPane.revalidate();
+ }
+ }
+ );
+
+ SwingUtilities.invokeLater(
+ new Runnable() {
+ public void run()
+ {
+ final RegistryManager content = manager.getRegistryManager();
+ m_registryPanel = new RegistryManagerPanel( m_window, content
);
+ tabbedPane.addTab( "Content", m_registryPanel );
+ }
+ }
+ );
+
+ SwingUtilities.invokeLater(
+ new Runnable() {
+ public void run()
+ {
+ final ProxyManager proxy = manager.getProxyManager();
+ m_proxyPanel = new ProxyManagerPanel( m_window, proxy );
+ tabbedPane.addTab( "Proxy", m_proxyPanel );
+ }
+ }
+ );

//tabbedPane.addTab( "Logging", new JPanel() );
//tabbedPane.addTab( "Profiles", new JPanel() );

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/LayoutRegistryManagerPanel.java
Tue May 31 00:43:07 2005
@@ -80,7 +80,7 @@
// constructor
//--------------------------------------------------------------

- public LayoutRegistryManagerPanel( Window parent, LayoutRegistryManager
manager ) throws Exception
+ public LayoutRegistryManagerPanel( Window parent, LayoutRegistryManager
manager )
{
super();


Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ProxyManagerPanel.java
Tue May 31 00:43:07 2005
@@ -85,7 +85,7 @@
// constructor
//--------------------------------------------------------------

- public ProxyManagerPanel( Window parent, ProxyManager manager) throws
Exception
+ public ProxyManagerPanel( Window parent, ProxyManager manager )
{
super();


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
Tue May 31 00:43:07 2005
@@ -79,7 +79,7 @@
// constructor
//--------------------------------------------------------------

- public RegistryManagerPanel( Window parent, RegistryManager manager )
throws Exception
+ public RegistryManagerPanel( Window parent, RegistryManager manager )
{
super();




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

Archive powered by MHonArc 2.6.24.

Top of Page