/plugins/MacroManager/tags/MacroManager_1_3/macroManager/MacroManagerPlugin.java
# · Java · 75 lines · 30 code · 13 blank · 32 comment · 0 complexity · b05ac09c1e7305bc4a9f5e024e6a7962 MD5 · raw file
- /*
- * MacroManagerPlugin.java
- * Copyright (C) 2002 Carmine Lucarelli
- *
- * 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 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.
- */
- package macroManager;
- import java.awt.event.*;
- import java.util.*;
- import javax.swing.JOptionPane;
- import common.gui.PopupList;
- import macroManager.popup.*;
- import org.gjt.sp.jedit.*;
- import org.gjt.sp.util.Log;
- /**
- * Description of the Class
- */
- public class MacroManagerPlugin extends EditPlugin
- {
- /**
- * Description of the Method
- *
- *@param view Description of the Parameter
- */
- public static void showPopup(final View view)
- {
- FileSelectionListener listener = new MacroSelectionListener(view);
- FindFileWindow ffw = new FindFileWindow();
- ffw.addFileSelectionListener(listener);
- ffw.showWindow();
- }
- /**
- * Listens for import selection from popup import window.
- */
- private static class MacroSelectionListener implements FileSelectionListener
- {
- private View mView;
- /**
- * Constructor for the MacroSelectionListener object
- */
- public MacroSelectionListener(View view)
- {
- mView = view;
- }
- public void fileSelected(EditAction editAction)
- {
- editAction.invoke(mView);
- }
- }
- }