| 1 19 package org.netbeans.modules.j2ee.sun.ide.editors; 20 21 import java.util.ResourceBundle ; 22 import org.netbeans.modules.j2ee.sun.ide.editors.*; 23 24 public class IsolationLevelEditor extends BooleanEditor { 25 26 private boolean isRuntime = false; 27 28 ResourceBundle bundle = ResourceBundle.getBundle("org/netbeans/modules/j2ee/sun/ide/editors/Bundle"); 29 30 public String [] choices = { 31 "read-uncommitted", "read-committed", "repeatable-read", "serializable", bundle.getString("LBL_driver_default"), }; 37 38 public String [] choicesRuntime = { 39 "read-uncommitted", "read-committed", "repeatable-read", "serializable", }; 44 45 public IsolationLevelEditor() { 46 curr_Sel = null; 47 } 48 49 public IsolationLevelEditor(boolean isRT) { 50 curr_Sel = null; 51 this.isRuntime = isRT; 52 } 53 54 public String [] getTags () { 55 if(this.isRuntime) 56 return choicesRuntime; 57 else 58 return choices; 59 } 60 61 public boolean supportsEditingTaggedValues () { 62 return false; 63 } 64 } 65 66 67 | Popular Tags |