Update of /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv7289/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties
Modified Files:
Tag: squirrel_3_0_branch
I18NStrings.properties AliasPropertiesController.java
Added Files:
Tag: squirrel_3_0_branch
ColorPropertiesPanel.java ColorPropertiesController.java
Log Message:
Feature request #1656320 : Provide Background Color Configuration
--- NEW FILE: ColorPropertiesPanel.java ---
package net.sourceforge.squirrel_sql.client.gui.db.aliasproperties;
/*
* Copyright (C) 2009 Rob Manning
* man...@us...
*
* Based on initial work from Colin Bell
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JColorChooser;
import javax.swing.JLabel;
import javax.swing.JPanel;
import net.sourceforge.squirrel_sql.client.gui.db.SQLAliasColorProperties;
import net.sourceforge.squirrel_sql.fw.gui.MultipleLineLabel;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
import net.sourceforge.squirrel_sql.fw.util.Utilities;
/**
* This panel allows the user to review and maintain the color properties for an Alias. Background colors can
* be configured for an Alias, so that each time a session is created, certain component background colors can
* appear differently from sessions created using other Aliases. This allows the user to get visual clues from
* SQuirreL about the session that they are interacting with to avoid confusing production database sessions
* and development ones.
*/
public class ColorPropertiesPanel extends JPanel
{
private static final long serialVersionUID = 1L;
/** Internationalized strings for this class. */
private static final StringManager s_stringMgr =
StringManagerFactory.getStringManager(ColorPropertiesPanel.class);
// Toolbar
private JCheckBox toolbarBackgroundColorChk = new JCheckBox("");
private JButton toolbarBackgroundColorBtn = null;
private JLabel toolBarBackgroundLbl = null;
private JPanel toolbarBackgroundColorPnl = new JPanel();
private Color toolbarBackgroundColor = null;
private JCheckBox syncComponentBackgroundColorChk = null;
// Object Tree
private JCheckBox objectTreeBackgroundColorChk = new JCheckBox("");
private JButton objectTreeBackgroundColorBtn = null;
private JLabel objectTreeBackgroundLbl = null;
private JPanel objectTreeBackgroundColorPnl = new JPanel();
private Color objectTreeBackgroundColor = null;
// Status Bar
private JCheckBox statusBarBackgroundColorChk = new JCheckBox("");
private JButton statusBarBackgroundColorBtn = null;
private JLabel statusBarBackgroundLbl = null;
private JPanel statusBarBackgroundColorPnl = new JPanel();
private Color statusBarBackgroundColor = null;
public interface i18n
{
// i18n[ColorPropertiesPanel.backgroundColorLabel=Background Color]
String BACKGROUND_COLOR_LABEL = s_stringMgr.getString("ColorPropertiesPanel.backgroundColorLabel");
// i18n[ColorPropertiesPanel.instructions=These settings control the background colors...]
String INSTRUCTIONS = s_stringMgr.getString("ColorPropertiesPanel.instructions");
// i18n[ColorPropertiesPanel.objectTreeBackgroundColorChooserDialogTitle=Select Background Color for
// Object Tree]
String OBJECT_TREE_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE =
s_stringMgr.getString("ColorPropertiesPanel.objectTreeBackgroundColorChooserDialogTitle");
// i18n[ColorPropertiesPanel.statusBarBackgroundColorBtnLabel=Choose Status Bar Color]
String STATUS_BAR_BACKGROUND_COLOR_BUTTON_LABEL =
s_stringMgr.getString("ColorPropertiesPanel.statusBarBackgroundColorBtnLabel");
// i18n[ColorPropertiesPanel.toolbarBackgroundColorChooserDialogTitle=Select Background Color for
// Toolbar]
String TOOLBAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE =
s_stringMgr.getString("ColorPropertiesPanel.toolbarBackgroundColorChooserDialogTitle");
// i18n[ColorPropertiesPanel.toolbarBackgroundColorBtnLabel=Choose Toolbar Color]
String TOOLBAR_BACKGROUND_COLOR_BUTTON_LABEL =
s_stringMgr.getString("ColorPropertiesPanel.toolbarBackgroundColorBtnLabel");
// i18n[ColorPropertiesPanel.syncComponentBackgroundColorChkLabel=Use toolbar background color for all
// components]
String SYNC_COMPONENT_BACKGROUND_COLOR_CHK_LABEL =
s_stringMgr.getString("ColorPropertiesPanel.syncComponentBackgroundColorChkLabel");
// i18n[ColorPropertiesPanel.objectTreeBackgroundColorButtonLabel=Choose Object Tree Color]
String OBJECT_TREE_BACKGROUND_COLOR_BUTTON_LABEL =
s_stringMgr.getString("ColorPropertiesPanel.objectTreeBackgroundColorButtonLabel");
// i18n[ColorPropertiesPanel.statusBarBackgroundColorChooserDialogTitle=Select Background Color for
// Status Bar]
String STATUS_BAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE =
s_stringMgr.getString("ColorPropertiesPanel.statusBarBackgroundColorChooserDialogTitle");
}
private SQLAliasColorProperties _props = null;
public ColorPropertiesPanel(SQLAliasColorProperties props)
{
Utilities.checkNull("ColorPropertiesPanel.init", "props", props);
this._props = props;
createUserInterface();
}
/**
* Retrieve the database properties.
*
* @return the database properties.
*/
public SQLAliasColorProperties getSQLAliasColorProperties()
{
if (toolbarBackgroundColorChk.isSelected())
{
if (toolbarBackgroundColor != null)
{
_props.setOverrideToolbarBackgroundColor(true);
_props.setToolbarBackgroundColorRgbValue(toolbarBackgroundColor.getRGB());
}
}
else
{
_props.setOverrideToolbarBackgroundColor(false);
}
if (objectTreeBackgroundColorChk.isSelected())
{
if (objectTreeBackgroundColor != null)
{
_props.setOverrideObjectTreeBackgroundColor(true);
_props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB());
}
}
else
{
_props.setOverrideObjectTreeBackgroundColor(false);
}
if (statusBarBackgroundColorChk.isSelected())
{
if (statusBarBackgroundColor != null)
{
_props.setOverrideStatusBarBackgroundColor(true);
_props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB());
}
}
else
{
_props.setOverrideStatusBarBackgroundColor(false);
}
return _props;
}
private void createUserInterface()
{
setLayout(new GridBagLayout());
final GridBagConstraints gbc = new GridBagConstraints();
setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(5, 5, 5, 5);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 0;
gbc.weighty = 0;
// Instructions
gbc.gridwidth = GridBagConstraints.REMAINDER;
add(createInfoPanel(), gbc);
prepareNewRow(gbc);
addToolbarColorComponents(gbc);
prepareNewRow(gbc);
addSyncComponentColorsWithToolbarCheckBox(gbc);
prepareNewRow(gbc);
addObjectTreeColorComponents(gbc);
prepareNewRow(gbc);
addStatusBarColorComponents(gbc);
}
private void addSyncComponentColorsWithToolbarCheckBox(final GridBagConstraints gbc)
{
++gbc.gridx;
gbc.gridwidth = 2;
syncComponentBackgroundColorChk = new JCheckBox(i18n.SYNC_COMPONENT_BACKGROUND_COLOR_CHK_LABEL);
add(syncComponentBackgroundColorChk, gbc);
syncComponentBackgroundColorChk.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
if (syncComponentBackgroundColorChk.isSelected())
{
objectTreeBackgroundColorChk.setSelected(true);
objectTreeBackgroundColor = toolbarBackgroundColor;
objectTreeBackgroundColorBtn.setEnabled(true);
objectTreeBackgroundColorPnl.setBackground(toolbarBackgroundColor);
objectTreeBackgroundColorPnl.setEnabled(true);
objectTreeBackgroundLbl.setEnabled(true);
statusBarBackgroundColorChk.setSelected(true);
statusBarBackgroundColor = toolbarBackgroundColor;
statusBarBackgroundColorBtn.setEnabled(true);
statusBarBackgroundColorPnl.setBackground(toolbarBackgroundColor);
statusBarBackgroundColorPnl.setEnabled(true);
statusBarBackgroundLbl.setEnabled(true);
}
}
});
}
private void addStatusBarColorComponents(GridBagConstraints gbc)
{
// Object Tree Color checkbox
statusBarBackgroundColorChk.setSelected(_props.isOverrideStatusBarBackgroundColor());
add(statusBarBackgroundColorChk, gbc);
// Set object tree color button
++gbc.gridx;
statusBarBackgroundColorBtn = new JButton(i18n.STATUS_BAR_BACKGROUND_COLOR_BUTTON_LABEL);
add(statusBarBackgroundColorBtn, gbc);
// Set object tree color panel
++gbc.gridx;
gbc.anchor = GridBagConstraints.EAST;
gbc.fill = GridBagConstraints.HORIZONTAL;
statusBarBackgroundColorChk.setSelected(_props.isOverrideStatusBarBackgroundColor());
statusBarBackgroundColorBtn.setEnabled(_props.isOverrideObjectTreeBackgroundColor());
statusBarBackgroundLbl = new JLabel(i18n.BACKGROUND_COLOR_LABEL);
statusBarBackgroundLbl.setEnabled(_props.isOverrideStatusBarBackgroundColor());
statusBarBackgroundColorPnl.add(statusBarBackgroundLbl);
statusBarBackgroundColorPnl.setEnabled(_props.isOverrideStatusBarBackgroundColor());
if (_props.isOverrideStatusBarBackgroundColor())
{
statusBarBackgroundColor = new Color(_props.getStatusBarBackgroundColorRgbValue());
statusBarBackgroundColorPnl.setBackground(statusBarBackgroundColor);
}
add(statusBarBackgroundColorPnl, gbc);
statusBarBackgroundColorChk.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
if (statusBarBackgroundColorChk.isSelected())
{
statusBarBackgroundColorBtn.setEnabled(true);
statusBarBackgroundColorPnl.setEnabled(true);
statusBarBackgroundLbl.setEnabled(true);
}
else
{
statusBarBackgroundColorBtn.setEnabled(false);
statusBarBackgroundColorPnl.setEnabled(false);
statusBarBackgroundLbl.setEnabled(false);
}
}
});
statusBarBackgroundColorBtn.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
Color startColor = statusBarBackgroundColor == null ? Color.WHITE : statusBarBackgroundColor;
Color newColor =
JColorChooser.showDialog(null, i18n.STATUS_BAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE,
startColor);
if (newColor != null)
{
statusBarBackgroundColor = newColor;
statusBarBackgroundColorPnl.setBackground(newColor);
statusBarBackgroundColorPnl.validate();
}
}
});
}
private void prepareNewRow(final GridBagConstraints gbc)
{
gbc.gridx = 0;
++gbc.gridy;
gbc.anchor = GridBagConstraints.WEST;
gbc.gridwidth = 1;
}
private void addObjectTreeColorComponents(final GridBagConstraints gbc)
{
// Object Tree Color checkbox
objectTreeBackgroundColorChk.setSelected(_props.isOverrideObjectTreeBackgroundColor());
add(objectTreeBackgroundColorChk, gbc);
// Set object tree color button
++gbc.gridx;
objectTreeBackgroundColorBtn = new JButton(i18n.OBJECT_TREE_BACKGROUND_COLOR_BUTTON_LABEL);
add(objectTreeBackgroundColorBtn, gbc);
// Set object tree color panel
++gbc.gridx;
gbc.anchor = GridBagConstraints.EAST;
gbc.fill = GridBagConstraints.HORIZONTAL;
objectTreeBackgroundColorChk.setSelected(_props.isOverrideObjectTreeBackgroundColor());
objectTreeBackgroundColorBtn.setEnabled(_props.isOverrideObjectTreeBackgroundColor());
objectTreeBackgroundLbl = new JLabel(i18n.BACKGROUND_COLOR_LABEL);
objectTreeBackgroundColorPnl.add(objectTreeBackgroundLbl);
objectTreeBackgroundColorPnl.setEnabled(_props.isOverrideObjectTreeBackgroundColor());
objectTreeBackgroundLbl.setEnabled(_props.isOverrideObjectTreeBackgroundColor());
if (_props.isOverrideObjectTreeBackgroundColor())
{
objectTreeBackgroundColor = new Color(_props.getObjectTreeBackgroundColorRgbValue());
objectTreeBackgroundColorPnl.setBackground(objectTreeBackgroundColor);
}
add(objectTreeBackgroundColorPnl, gbc);
objectTreeBackgroundColorChk.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
if (objectTreeBackgroundColorChk.isSelected())
{
objectTreeBackgroundColorBtn.setEnabled(true);
objectTreeBackgroundColorPnl.setEnabled(true);
objectTreeBackgroundLbl.setEnabled(true);
}
else
{
objectTreeBackgroundColorBtn.setEnabled(false);
objectTreeBackgroundColorPnl.setEnabled(false);
objectTreeBackgroundLbl.setEnabled(false);
}
}
});
objectTreeBackgroundColorBtn.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
Color startColor = objectTreeBackgroundColor == null ? Color.WHITE : objectTreeBackgroundColor;
Color newColor =
JColorChooser.showDialog(null, i18n.OBJECT_TREE_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE,
startColor);
if (newColor != null)
{
objectTreeBackgroundColor = newColor;
objectTreeBackgroundColorPnl.setBackground(newColor);
objectTreeBackgroundColorPnl.validate();
}
}
});
}
private void addToolbarColorComponents(final GridBagConstraints gbc)
{
// Toolbar Color Checkbox
toolbarBackgroundColorChk.setSelected(_props.isOverrideToolbarBackgroundColor());
add(toolbarBackgroundColorChk, gbc);
// Set toolbar color button
++gbc.gridx;
toolbarBackgroundColorBtn = new JButton(i18n.TOOLBAR_BACKGROUND_COLOR_BUTTON_LABEL);
add(toolbarBackgroundColorBtn, gbc);
// Set toolbar color panel
++gbc.gridx;
gbc.anchor = GridBagConstraints.EAST;
gbc.fill = GridBagConstraints.HORIZONTAL;
toolbarBackgroundColorChk.setSelected(_props.isOverrideToolbarBackgroundColor());
toolbarBackgroundColorBtn.setEnabled(_props.isOverrideToolbarBackgroundColor());
toolBarBackgroundLbl = new JLabel(i18n.BACKGROUND_COLOR_LABEL);
toolbarBackgroundColorPnl.add(toolBarBackgroundLbl);
toolbarBackgroundColorPnl.setEnabled(_props.isOverrideToolbarBackgroundColor());
toolBarBackgroundLbl.setEnabled(_props.isOverrideToolbarBackgroundColor());
if (_props.isOverrideToolbarBackgroundColor())
{
toolbarBackgroundColor = new Color(_props.getToolbarBackgroundColorRgbValue());
toolbarBackgroundColorPnl.setBackground(toolbarBackgroundColor);
}
add(toolbarBackgroundColorPnl, gbc);
toolbarBackgroundColorChk.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
if (toolbarBackgroundColorChk.isSelected())
{
toolbarBackgroundColorBtn.setEnabled(true);
toolbarBackgroundColorPnl.setEnabled(true);
toolBarBackgroundLbl.setEnabled(true);
}
else
{
toolbarBackgroundColorBtn.setEnabled(false);
toolbarBackgroundColorPnl.setEnabled(false);
toolBarBackgroundLbl.setEnabled(false);
}
}
});
toolbarBackgroundColorBtn.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
Color startColor = toolbarBackgroundColor == null ? Color.WHITE : toolbarBackgroundColor;
Color newColor =
JColorChooser.showDialog(null, i18n.TOOLBAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE, startColor);
if (newColor != null)
{
toolbarBackgroundColor = newColor;
toolbarBackgroundColorPnl.setBackground(newColor);
toolbarBackgroundColorPnl.validate();
}
}
});
}
private Box createInfoPanel()
{
final Box pnl = new Box(BoxLayout.X_AXIS);
pnl.add(new MultipleLineLabel(i18n.INSTRUCTIONS));
return pnl;
}
}
Index: I18NStrings.properties
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/I18NStrings.properties,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -C2 -d -r1.8 -r1.8.4.1
*** I18NStrings.properties 8 Apr 2007 12:05:45 -0000 1.8
--- I18NStrings.properties 29 Nov 2009 01:30:58 -0000 1.8.4.1
***************
*** 1,7 ****
--- 1,29 ----
+ AddDriverPropertyDialog.addButtonLabel=Add
+ AddDriverPropertyDialog.invalidNameMessage=The driver property name must be provided
+ AddDriverPropertyDialog.invalidNameTitle=Invalid Name
+ AddDriverPropertyDialog.propertyDescriptionLabel=Property Description:
+ AddDriverPropertyDialog.propertyNameLabel=Property Name:
+ AddDriverPropertyDialog.propertyValueLabel=Property Value:
+
AliasPropertiesInternalFrame.ok=OK
AliasPropertiesInternalFrame.close=Close
+ ColorPropertiesController.hint=Set session colors for this Alias
+ ColorPropertiesController.title=Color Properties
+
+ ColorPropertiesPanel.backgroundColorLabel=Background Color
+ ColorPropertiesPanel.instructions=These settings control the background colors for various components in the \
+ sessions created from this alias. This can provide a visual clue for differentiating sessions so that, for \
+ example, production databases aren't mistaken for development databases. Select the checkbox on the left \
+ for each component background color to override.
+ ColorPropertiesPanel.objectTreeBackgroundColorButtonLabel=Choose Object Tree Color
+ ColorPropertiesPanel.objectTreeBackgroundColorChooserDialogTitle=Select Background Color for Object Tree
+ ColorPropertiesPanel.statusBarBackgroundColorBtnLabel=Choose Status Bar Color
+ ColorPropertiesPanel.statusBarBackgroundColorChooserDialogTitle=Select Background Color for Status Bar
+ ColorPropertiesPanel.syncComponentBackgroundColorChkLabel=Use toolbar background color for all components
+ ColorPropertiesPanel.toolbarBackgroundColorBtnLabel=Choose Toolbar Color
+ ColorPropertiesPanel.toolbarBackgroundColorChooserDialogTitle=Select Background Color for Toolbar
***************
*** 13,19 ****
DriverPropertiesController.Hint=Driver properties
-
DriverPropertiesPanel.instructions=For every driver property that you want to specify check the \"Specify\" checkbox and enter its value in the \"Value\" column. Normally you won't use the \"user\" and \"password\" properties as these will be setup from the \"user\" and \"password\" entered in the connection dialog.
DriverPropertiesTable.description=Description
DriverPropertiesTable.name=Name
--- 35,43 ----
DriverPropertiesController.Hint=Driver properties
DriverPropertiesPanel.instructions=For every driver property that you want to specify check the \"Specify\" checkbox and enter its value in the \"Value\" column. Normally you won't use the \"user\" and \"password\" properties as these will be setup from the \"user\" and \"password\" entered in the connection dialog.
+ DriverPropertiesPopupMenu.addPropertyLabel=Add Property
+ DriverPropertiesPopupMenu.removePropertyLabel=Remove Property
+
DriverPropertiesTable.description=Description
DriverPropertiesTable.name=Name
--- NEW FILE: ColorPropertiesController.java ---
package net.sourceforge.squirrel_sql.client.gui.db.aliasproperties;
/*
* Copyright (C) 2009 Rob Manning
* man...@us...
*
* Based on initial work from Colin Bell
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import java.awt.Component;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.db.ISQLAliasExt;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
/**
* This dialog allows the user to review and maintain background color overrides for an alias.
*/
public class ColorPropertiesController implements IAliasPropertiesPanelController
{
/**
* Internationalized strings for this class.
*/
private static final StringManager s_stringMgr =
StringManagerFactory.getStringManager(ColorPropertiesController.class);
private ColorPropertiesPanel _propsPnl;
private ISQLAliasExt _alias;
public static interface i18n {
// i18n[ColorPropertiesController.title=Color Properties]
String TITLE = s_stringMgr.getString("ColorPropertiesController.title");
// i18n[ColorPropertiesController.hint=Set session colors for this Alias]
String HINT = s_stringMgr.getString("ColorPropertiesController.hint");
}
public ColorPropertiesController(ISQLAliasExt alias, IApplication app)
{
_alias = alias;
_propsPnl = new ColorPropertiesPanel(alias.getColorProperties());
}
public Component getPanelComponent()
{
return _propsPnl;
}
public void applyChanges()
{
_alias.setColorProperties(_propsPnl.getSQLAliasColorProperties());
}
public String getTitle()
{
return i18n.TITLE;
}
public String getHint()
{
return i18n.HINT;
}
}
Index: AliasPropertiesController.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/AliasPropertiesController.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** AliasPropertiesController.java 25 Dec 2008 19:09:32 -0000 1.6
--- AliasPropertiesController.java 29 Nov 2009 01:30:58 -0000 1.6.2.1
***************
*** 1,18 ****
package net.sourceforge.squirrel_sql.client.gui.db.aliasproperties;
- import net.sourceforge.squirrel_sql.client.IApplication;
- import net.sourceforge.squirrel_sql.client.gui.db.aliasproperties.DriverPropertiesController;
- import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias;
- import net.sourceforge.squirrel_sql.client.gui.desktopcontainer.DialogWidget;
- import net.sourceforge.squirrel_sql.fw.gui.GUIUtils;
- import net.sourceforge.squirrel_sql.fw.id.IIdentifier;
-
- import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
- import java.util.HashMap;
import java.util.Arrays;
public class AliasPropertiesController
--- 1,19 ----
package net.sourceforge.squirrel_sql.client.gui.db.aliasproperties;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.Arrays;
+ import java.util.HashMap;
+
+ import javax.swing.AbstractAction;
+ import javax.swing.JComponent;
+ import javax.swing.KeyStroke;
+
+ import net.sourceforge.squirrel_sql.client.IApplication;
+ import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias;
+ import net.sourceforge.squirrel_sql.client.gui.desktopcontainer.DialogWidget;
+ import net.sourceforge.squirrel_sql.fw.id.IIdentifier;
public class AliasPropertiesController
***************
*** 94,98 ****
_iAliasPropertiesPanelControllers.add(new SchemaPropertiesController(_alias, _app));
_iAliasPropertiesPanelControllers.add(new DriverPropertiesController(_alias, _app));
!
IAliasPropertiesPanelController[] pluginAliasPropertiesPanelControllers =
_app.getPluginManager().getAliasPropertiesPanelControllers(_alias);
--- 95,100 ----
_iAliasPropertiesPanelControllers.add(new SchemaPropertiesController(_alias, _app));
_iAliasPropertiesPanelControllers.add(new DriverPropertiesController(_alias, _app));
! _iAliasPropertiesPanelControllers.add(new ColorPropertiesController(_alias, _app));
!
IAliasPropertiesPanelController[] pluginAliasPropertiesPanelControllers =
_app.getPluginManager().getAliasPropertiesPanelControllers(_alias);
|