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