PageRenderTime 74ms CodeModel.GetById 70ms app.highlight 2ms RepoModel.GetById 1ms 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
 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 
23package console;
24
25import projectviewer.config.OptionsService;
26import projectviewer.vpt.VPTProject;
27import org.gjt.sp.jedit.OptionPane;
28import org.gjt.sp.jedit.OptionGroup;
29
30/**
31 * @author Damien Radtke
32 * class ProjectCommandOptionsService
33 * OptionsService instance for providing configurable project commands
34 */
35public class ProjectCommandOptionsService implements OptionsService {
36	/**
37     * This method should return the option pane to be shown. As with
38     * regular jEdit option panes, the label to be shown in the dialog
39     * should be defined by the "option.[pane_name].label" property.
40     *
41     * @param   proj    The project that will be edited.
42     *
43     * @return An OptionPane instance, or null for no option pane.
44     */
45     public OptionPane getOptionPane(VPTProject proj) {
46          return new ProjectCommandOptionPane(proj);   
47     }
48
49
50    /**
51     * This should return an OptionGroup to be shown. As with regular
52     * jEdit option groups, the label to be shown in the dialog
53     * should be defined by the "option.[group_name].label" property.
54     *
55     * @param   proj    The project that will be edited.
56     *
57     * @return null for no option group.
58     */
59     public OptionGroup getOptionGroup(VPTProject proj) {
60          return null;   
61     }
62}