From: Sune S. <sun...@us...> - 2006-02-19 03:20:54
|
Update of /cvsroot/jedit/plugins/SuperAbbrevs/superabbrevs/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12707/superabbrevs/gui Modified Files: Tag: jedit_42-stable012 AbbrevsOptionPane.java Log Message: Update to the new template engine Index: AbbrevsOptionPane.java =================================================================== RCS file: /cvsroot/jedit/plugins/SuperAbbrevs/superabbrevs/gui/AbbrevsOptionPane.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -d -r1.5 -r1.5.2.1 --- AbbrevsOptionPane.java 16 Jan 2006 10:50:29 -0000 1.5 +++ AbbrevsOptionPane.java 19 Feb 2006 03:20:47 -0000 1.5.2.1 @@ -57,18 +57,6 @@ { setLayout(new BorderLayout()); - JPanel showDialogPanel = new JPanel(); - - showDialogCheckBox = new JCheckBox(jEdit.getProperty("SuperAbbrevs.abbrev.showDialogIfNotExists")); - - String showDialog = jEdit.getProperty("SuperAbbrevs.abbrev.showDialog"); - showDialog = (showDialog==null)?"false":showDialog; - showDialogCheckBox.setSelected(showDialog.equals("true")); - - showDialogPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); - showDialogPanel.add(showDialogCheckBox); - - JPanel abbrevsSetPanel = new JPanel(); JLabel label = new JLabel(jEdit.getProperty("options.abbrevs.set")); label.setBorder(new EmptyBorder(0,0,0,12)); @@ -104,12 +92,7 @@ abbrevsSetPanel.add(setsComboBox); - JPanel topPanel = new JPanel(); - topPanel.setLayout(new GridLayout(2,1)); - topPanel.add(showDialogPanel); - topPanel.add(abbrevsSetPanel); - - add(BorderLayout.NORTH,topPanel); + add(BorderLayout.NORTH,abbrevsSetPanel); abbrevsTable = new JTable((AbbrevsModel)modeAbbrevs.get("global")); abbrevsTable.getColumnModel().getColumn(1).setCellRenderer( @@ -122,6 +105,7 @@ abbrevsTable.getSelectionModel().setSelectionMode( ListSelectionModel.SINGLE_SELECTION); abbrevsTable.addMouseListener(new TableMouseHandler()); + Dimension d = abbrevsTable.getPreferredSize(); d.height = Math.min(d.height,200); JScrollPane scroller = new JScrollPane(abbrevsTable); @@ -176,9 +160,6 @@ SuperAbbrevs.saveAbbrevs((String)keys.nextElement(), ((AbbrevsModel)values.nextElement()).toHashtable()); } - - String showDialog = showDialogCheckBox.isSelected()?"true":"false"; - jEdit.setProperty("SuperAbbrevs.abbrev.showDialog",showDialog); } //}}} //{{{ Private members @@ -192,7 +173,6 @@ private JButton edit; private JButton remove; private JButton importAbbrevs; - private JCheckBox showDialogCheckBox; private View view; //}}} @@ -274,7 +254,6 @@ } - //}}} private void importAbbrevs(String mode) { //get the superAbbrevs hashtable for the specific mode |