/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
- /*
- * ProjectCommandOptionsService.java
- * :tabSize=8:indentSize=8:noTabs=false:
- * :folding=explicit:collapseFolds=1:
- *
- * Copyright (C) 2010 Damien Radtke
- *
- * 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 console;
- import projectviewer.config.OptionsService;
- import projectviewer.vpt.VPTProject;
- import org.gjt.sp.jedit.OptionPane;
- import org.gjt.sp.jedit.OptionGroup;
- /**
- * @author Damien Radtke
- * class ProjectCommandOptionsService
- * OptionsService instance for providing configurable project commands
- */
- public class ProjectCommandOptionsService implements OptionsService {
- /**
- * This method should return the option pane to be shown. As with
- * regular jEdit option panes, the label to be shown in the dialog
- * should be defined by the "option.[pane_name].label" property.
- *
- * @param proj The project that will be edited.
- *
- * @return An OptionPane instance, or null for no option pane.
- */
- public OptionPane getOptionPane(VPTProject proj) {
- return new ProjectCommandOptionPane(proj);
- }
- /**
- * This should return an OptionGroup to be shown. As with regular
- * jEdit option groups, the label to be shown in the dialog
- * should be defined by the "option.[group_name].label" property.
- *
- * @param proj The project that will be edited.
- *
- * @return null for no option group.
- */
- public OptionGroup getOptionGroup(VPTProject proj) {
- return null;
- }
- }