1 19 20 package org.netbeans.modules.options.general; 21 22 import javax.swing.Icon ; 23 import javax.swing.ImageIcon ; 24 import javax.swing.JComponent ; 25 import org.netbeans.spi.options.OptionsCategory; 26 import org.netbeans.spi.options.OptionsPanelController; 27 import org.openide.util.NbBundle; 28 import org.openide.util.Utilities; 29 30 31 37 38 public final class GeneralOptions extends OptionsCategory { 39 40 private static String loc (String key) { 41 return NbBundle.getMessage (GeneralOptionsPanel.class, key); 42 } 43 44 45 private static Icon icon; 46 47 public Icon getIcon () { 48 if (icon == null) 49 icon = new ImageIcon ( 50 Utilities.loadImage 51 ("org/netbeans/modules/options/resources/generalOptions.png") 52 ); 53 return icon; 54 } 55 56 public String getCategoryName () { 57 return loc ("CTL_General_Options"); 58 } 59 60 public String getTitle () { 61 return loc ("CTL_General_Options_Title"); 62 } 63 64 public String getDescription () { 65 return loc ("CTL_General_Options_Description"); 66 } 67 68 public OptionsPanelController create () { 69 return new GeneralOptionsPanelController (); 70 } 71 } 72 | Popular Tags |