Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 19 20 package org.netbeans.modules.editor; 21 22 import java.beans.BeanDescriptor ; 23 import org.netbeans.editor.LocaleSupport; 24 25 30 31 public class SimpleIndentEngineBeanInfo extends FormatterIndentEngineBeanInfo { 32 33 private BeanDescriptor beanDescriptor; 34 35 public SimpleIndentEngineBeanInfo() { 36 } 37 38 public BeanDescriptor getBeanDescriptor () { 39 if (beanDescriptor == null) { 40 beanDescriptor = new BeanDescriptor (getBeanClass()); 41 beanDescriptor.setDisplayName(getString("LAB_SimpleIndentEngine")); 42 beanDescriptor.setShortDescription(getString("HINT_SimpleIndentEngine")); 43 beanDescriptor.setValue("global", Boolean.TRUE); } 45 return beanDescriptor; 46 } 47 48 protected Class getBeanClass() { 49 return SimpleIndentEngine.class; 50 } 51 52 protected String getString(String key) { 53 String retVal = LocaleSupport.getString(key); 54 if( retVal == null ) { 55 retVal = super.getString(key); 56 } 57 return retVal; 58 } 59 60 } 61 62
| Popular Tags
|