View Javadoc

1   /*
2    * JBCS - A JBuilder Plugin for Checkstyle
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU General Public License
6    * as published by the Free Software Foundation; either version 2
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, write to the Free Software
16   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17   *
18   * Copyright © 2003
19   * Henri Tremblay
20   */
21  package com.henri.jbcs.gui;
22  
23  import com.borland.primetime.properties.PropertyGroup;
24  import com.borland.primetime.properties.PropertyPageFactory;
25  
26  /***
27   * Checkstyle group that will appear in JBuilder Preferences
28   * @author Henri Tremblay
29   * @version $Revision: 1.2 $ $Date: 2004/04/06 22:53:26 $
30   */
31  public class CSPropertyGroup implements PropertyGroup
32  {
33     public CSPropertyGroup() {
34     }
35  
36     public void initializeProperties() {
37     }
38  
39     public PropertyPageFactory getPageFactory(Object topic) {
40  
41        // Only show something on global screen
42        if (topic == null) {
43           return new CSPropertyPageFactory();
44        }
45        return null;
46     }
47  }