/plugins/ProjectViewer/tags/pv_2_1_3_4/pvdebug/DummyOptionPane.java

# · Java · 63 lines · 19 code · 11 blank · 33 comment · 0 complexity · 4dd71c6a3792562194ee2723f0128f40 MD5 · raw file

  1. /*
  2. * :tabSize=4:indentSize=4:noTabs=false:
  3. * :folding=explicit:collapseFolds=1:
  4. *
  5. * ContextOptionPane.java - Context menu options panel
  6. * Copyright (C) 2000, 2001 Slava Pestov
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. */
  22. package pvdebug;
  23. //{{{ Imports
  24. import java.awt.BorderLayout;
  25. import javax.swing.JLabel;
  26. import org.gjt.sp.util.Log;
  27. import org.gjt.sp.jedit.AbstractOptionPane;
  28. //}}}
  29. /**
  30. * An option pane to be used for debugging purposes.
  31. *
  32. * @author Marcelo Vanzin
  33. * @version $Id: DummyOptionPane.java 6275 2004-08-21 22:33:34Z vanza $
  34. */
  35. public class DummyOptionPane extends AbstractOptionPane {
  36. //{{{ +DummyOptionPane(String) : <init>
  37. public DummyOptionPane(String name) {
  38. super(name);
  39. }
  40. //}}}
  41. //{{{ #_init() : void
  42. protected void _init()
  43. {
  44. setLayout(new BorderLayout());
  45. JLabel caption = new JLabel("Dummy option pane");
  46. add(BorderLayout.CENTER,caption);
  47. } //}}}
  48. //{{{ #_save() : void
  49. protected void _save() {
  50. Log.log(Log.ERROR, this, "Dummy save");
  51. } //}}}
  52. }