From: <kp...@us...> - 2010-10-31 09:50:04
|
Revision: 18904 http://jedit.svn.sourceforge.net/jedit/?rev=18904&view=rev Author: kpouer Date: 2010-10-31 09:49:58 +0000 (Sun, 31 Oct 2010) Log Message: ----------- fixed index change on the fly Modified Paths: -------------- plugins/RFCReader/trunk/src/gatchan/jedit/rfcreader/RFCListPanel.java Modified: plugins/RFCReader/trunk/src/gatchan/jedit/rfcreader/RFCListPanel.java =================================================================== --- plugins/RFCReader/trunk/src/gatchan/jedit/rfcreader/RFCListPanel.java 2010-10-31 09:47:53 UTC (rev 18903) +++ plugins/RFCReader/trunk/src/gatchan/jedit/rfcreader/RFCListPanel.java 2010-10-31 09:49:58 UTC (rev 18904) @@ -39,8 +39,8 @@ { private JList list; private HistoryTextField searchField; - private RFCIndex index; private RFCListModel model; + private RFCReaderPlugin plugin; public RFCListPanel() { @@ -65,8 +65,7 @@ }); - RFCReaderPlugin plugin = (RFCReaderPlugin) jEdit.getPlugin("gatchan.jedit.rfcreader.RFCReaderPlugin"); - index = plugin.getIndex(); + plugin = (RFCReaderPlugin) jEdit.getPlugin("gatchan.jedit.rfcreader.RFCReaderPlugin"); model = new RFCListModel(plugin.rfcList); list = new JList(model); @@ -98,7 +97,7 @@ model.reset(); else { - List<RFC> rfcs = index.search(s); + List<RFC> rfcs = plugin.getIndex().search(s); model.setData(rfcs); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |