Revision: 1086
Author: ian_lewis
Date: 2006-07-28 18:44:34 -0700 (Fri, 28 Jul 2006)
ViewCVS: http://svn.sourceforge.net/jsxe/?rev=1086&view=rev
Log Message:
-----------
Adding Find next action
Added Paths:
-----------
trunk/sourceview/src/sourceview/action/EditFindNextAction.java
Added: trunk/sourceview/src/sourceview/action/EditFindNextAction.java
===================================================================
--- trunk/sourceview/src/sourceview/action/EditFindNextAction.java (rev 0)
+++ trunk/sourceview/src/sourceview/action/EditFindNextAction.java 2006-07-29 01:44:34 UTC (rev 1086)
@@ -0,0 +1,74 @@
+/*
+EditFindNextAction.java
+:tabSize=4:indentSize=4:noTabs=true:
+:folding=explicit:collapseFolds=1:
+
+Copyright (C) 2006 Ian Lewis (Ian...@me...)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+Optionally, you may find a copy of the GNU General Public License
+from http://www.fsf.org/copyleft/gpl.txt
+*/
+
+package sourceview.action;
+
+//{{{ imports
+
+import sourceview.*;
+
+//{{{ jsXe classes
+import net.sourceforge.jsxe.jsXe;
+import net.sourceforge.jsxe.LocalizedAction;
+import net.sourceforge.jsxe.gui.TabbedView;
+import net.sourceforge.jsxe.gui.Messages;
+import net.sourceforge.jsxe.gui.DocumentView;
+//}}}
+
+//{{{ AWT classes
+import java.awt.event.ActionEvent;
+//}}}
+
+//}}}
+
+/**
+ * This action that searches the file for the last value searched for using
+ * the find dialog.
+ * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>)
+ * @version $Id$
+ */
+
+public class EditFindNextAction extends LocalizedAction {
+
+ //{{{ EditFindNextAction constructor
+ public EditFindNextAction() {
+ super(SourceViewPlugin.PLUGIN_NAME+".findnext");
+ }//}}}
+
+ //{{{ getLabel()
+ public String getLabel() {
+ return Messages.getMessage("common.findnext");
+ }//}}}
+
+ //{{{ invoke()
+ public void invoke(TabbedView view, ActionEvent evt) {
+ DocumentView docView = view.getDocumentView();
+ if (docView instanceof SourceView) {
+ SourceView sourceView = (SourceView)docView;
+ SourceViewSearch search = new SourceViewSearch(sourceView);
+ search.findNext();
+ }
+ }//}}}
+
+}
Property changes on: trunk/sourceview/src/sourceview/action/EditFindNextAction.java
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|