From: <chr...@us...> - 2006-12-10 21:52:55
|
Revision: 1044 http://svn.sourceforge.net/gridarta/?rev=1044&view=rev Author: christianhujer Date: 2006-12-10 13:52:55 -0800 (Sun, 10 Dec 2006) Log Message: ----------- Removed unused variable. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java Modified: trunk/crossfire/src/cfeditor/gui/ArchComboBox.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2006-12-10 21:16:07 UTC (rev 1043) +++ trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2006-12-10 21:52:55 UTC (rev 1044) @@ -281,8 +281,6 @@ private String currentFilter = ""; - private ArrayList<GameObject[]> subFilters = new ArrayList<GameObject[]>(); - private static final long serialVersionUID = 1L; public ArchComboBoxModel() { @@ -292,7 +290,6 @@ return o1.getArchetypeName().toLowerCase().compareTo(o2.getArchetypeName().toLowerCase()); } }); - subFilters.add(archList); } public Object getSelectedItem() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2006-12-14 21:32:50
|
Revision: 1062 http://svn.sourceforge.net/gridarta/?rev=1062&view=rev Author: akirschbaum Date: 2006-12-14 13:32:45 -0800 (Thu, 14 Dec 2006) Log Message: ----------- Remove unused import statement. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java Modified: trunk/crossfire/src/cfeditor/gui/ArchComboBox.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2006-12-14 21:31:37 UTC (rev 1061) +++ trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2006-12-14 21:32:45 UTC (rev 1062) @@ -20,7 +20,6 @@ import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; -import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import javax.swing.AbstractListModel; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-02-06 21:48:01
|
Revision: 1850 http://svn.sourceforge.net/gridarta/?rev=1850&view=rev Author: christianhujer Date: 2007-02-06 13:48:00 -0800 (Tue, 06 Feb 2007) Log Message: ----------- Turned obviously constant field into a real constant. Note: This field needs further investigation. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java Modified: trunk/crossfire/src/cfeditor/gui/ArchComboBox.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-02-06 21:43:57 UTC (rev 1849) +++ trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-02-06 21:48:00 UTC (rev 1850) @@ -290,7 +290,8 @@ private final Archetype[] archList; /*the current list*/ - private final String currentFilter = ""; + // FIXME: This constant looks pretty pointless. + private static final String CURRENT_FILTER = ""; private static final long serialVersionUID = 1L; @@ -320,12 +321,12 @@ } public void setFilter(final String filter) { - if (filter.startsWith(currentFilter)) { + if (filter.startsWith(CURRENT_FILTER)) { narrowFilter(filter); - } else if (currentFilter.startsWith(filter)) { + } else if (CURRENT_FILTER.startsWith(filter)) { enlargeFilter(filter); } else { - final int p = getCommonPrefix(currentFilter, filter); + final int p = getCommonPrefix(CURRENT_FILTER, filter); enlargeFilter(filter.substring(0, p)); narrowFilter(filter); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2007-04-03 18:10:10
|
Revision: 2114 http://svn.sourceforge.net/gridarta/?rev=2114&view=rev Author: akirschbaum Date: 2007-04-03 11:10:09 -0700 (Tue, 03 Apr 2007) Log Message: ----------- Make inner class private. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java Modified: trunk/crossfire/src/cfeditor/gui/ArchComboBox.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-04-03 18:04:14 UTC (rev 2113) +++ trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-04-03 18:10:09 UTC (rev 2114) @@ -381,7 +381,7 @@ } // class ArchComboBoxModel - class MyCellRenderer extends DefaultListCellRenderer { + private class MyCellRenderer extends DefaultListCellRenderer { public static final String SIZE_TESTER = "**Sizetester**"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2007-04-03 18:27:42
|
Revision: 2115 http://svn.sourceforge.net/gridarta/?rev=2115&view=rev Author: akirschbaum Date: 2007-04-03 11:27:33 -0700 (Tue, 03 Apr 2007) Log Message: ----------- Make variable final. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java Modified: trunk/crossfire/src/cfeditor/gui/ArchComboBox.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-04-03 18:10:09 UTC (rev 2114) +++ trunk/crossfire/src/cfeditor/gui/ArchComboBox.java 2007-04-03 18:27:33 UTC (rev 2115) @@ -82,14 +82,13 @@ setModel(archComboBoxModel); setEditable(true); setEditor(editor); - Dimension d = getPreferredSize(); + final Dimension d = getPreferredSize(); if (log.isDebugEnabled()) { log.debug("Preferred size: " + d); } setPreferredSize(new Dimension(d.width, editor.getEditorComponent().getPreferredSize().height)); - d = getPreferredSize(); if (log.isDebugEnabled()) { - log.debug("NEW Preferred size: " + d); + log.debug("NEW Preferred size: " + getPreferredSize()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |