1 19 20 package org.netbeans.modules.i18n.form; 21 22 import org.netbeans.modules.form.FormPropertyEditorManager; 23 import org.netbeans.modules.i18n.I18nSupport; 24 import org.openide.modules.ModuleInstall; 25 26 32 public class I18nFormCrossModule extends ModuleInstall { 33 34 35 public void restored() { 36 registerFormPropertyEditor(); 37 } 38 39 40 private void registerFormPropertyEditor() { 41 Class newEditorClass = FormI18nStringEditor.class; 42 Class newEditorClassInteger = FormI18nIntegerEditor.class; 43 Class newEditorClassMnemonic = FormI18nMnemonicEditor.class; 44 45 FormPropertyEditorManager.registerEditor (String .class, newEditorClass); 47 FormPropertyEditorManager.registerEditor (int.class, newEditorClassInteger); 48 FormPropertyEditorManager.registerEditor (int.class, newEditorClassMnemonic); 49 } 50 51 } 52 | Popular Tags |