1 19 20 package org.netbeans.modules.editor.html; 21 22 import java.beans.BeanDescriptor ; 23 import java.util.MissingResourceException ; 24 import org.netbeans.modules.editor.FormatterIndentEngineBeanInfo; 25 import org.openide.util.NbBundle; 26 27 32 33 public class LineWrapIndentEngineBeanInfo extends FormatterIndentEngineBeanInfo { 34 35 private BeanDescriptor beanDescriptor; 36 37 public BeanDescriptor getBeanDescriptor () { 38 if (beanDescriptor == null) { 39 beanDescriptor = new BeanDescriptor (getBeanClass()); 40 beanDescriptor.setDisplayName(getString("LAB_LineWrapIndentEngine")); 41 beanDescriptor.setShortDescription(getString("HINT_LineWrapIndentEngine")); 42 beanDescriptor.setValue("global", Boolean.TRUE); } 44 return beanDescriptor; 45 } 46 47 protected Class getBeanClass() { 48 return LineWrapIndentEngine.class; 49 } 50 51 protected String getString(String key) { 52 try { 53 return NbBundle.getMessage(LineWrapIndentEngineBeanInfo.class,key); 54 } catch (MissingResourceException e) { 55 return super.getString(key); 56 } 57 } 58 59 } 60 61 | Popular Tags |