PageRenderTime 45ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/Console/console/ProjectCommandOptionsService.java

#
Java | 62 lines | 13 code | 5 blank | 44 comment | 0 complexity | 22f6838cd0009c3013a0453f2a42c8dc MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * ProjectCommandOptionsService.java
  3. * :tabSize=8:indentSize=8:noTabs=false:
  4. * :folding=explicit:collapseFolds=1:
  5. *
  6. * Copyright (C) 2010 Damien Radtke
  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 console;
  23. import projectviewer.config.OptionsService;
  24. import projectviewer.vpt.VPTProject;
  25. import org.gjt.sp.jedit.OptionPane;
  26. import org.gjt.sp.jedit.OptionGroup;
  27. /**
  28. * @author Damien Radtke
  29. * class ProjectCommandOptionsService
  30. * OptionsService instance for providing configurable project commands
  31. */
  32. public class ProjectCommandOptionsService implements OptionsService {
  33. /**
  34. * This method should return the option pane to be shown. As with
  35. * regular jEdit option panes, the label to be shown in the dialog
  36. * should be defined by the "option.[pane_name].label" property.
  37. *
  38. * @param proj The project that will be edited.
  39. *
  40. * @return An OptionPane instance, or null for no option pane.
  41. */
  42. public OptionPane getOptionPane(VPTProject proj) {
  43. return new ProjectCommandOptionPane(proj);
  44. }
  45. /**
  46. * This should return an OptionGroup to be shown. As with regular
  47. * jEdit option groups, the label to be shown in the dialog
  48. * should be defined by the "option.[group_name].label" property.
  49. *
  50. * @param proj The project that will be edited.
  51. *
  52. * @return null for no option group.
  53. */
  54. public OptionGroup getOptionGroup(VPTProject proj) {
  55. return null;
  56. }
  57. }