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 28 public class HTMLIndentEngineBeanInfo extends FormatterIndentEngineBeanInfo { 29 30 private BeanDescriptor beanDescriptor; 31 32 public BeanDescriptor getBeanDescriptor () { 33 if (beanDescriptor == null) { 34 beanDescriptor = new BeanDescriptor (getBeanClass()); 35 beanDescriptor.setDisplayName(getString("LAB_HtmlIndentEngine")); 36 beanDescriptor.setShortDescription(getString("HINT_HtmlIndentEngine")); 37 beanDescriptor.setValue("global", Boolean.TRUE); } 39 return beanDescriptor; 40 } 41 42 protected Class getBeanClass() { 43 return HTMLIndentEngine.class; 44 } 45 46 protected String getString(String key) { 47 try { 48 return NbBundle.getMessage(HTMLIndentEngineBeanInfo.class,key); 49 } catch (MissingResourceException e) { 50 return super.getString(key); 51 } 52 } 53 54 } 55 56 | Popular Tags |