1 11 package org.eclipse.debug.internal.ui.preferences; 12 13 14 import org.eclipse.jface.preference.BooleanFieldEditor; 15 import org.eclipse.swt.widgets.Button; 16 import org.eclipse.swt.widgets.Composite; 17 18 22 public class BooleanFieldEditor2 extends BooleanFieldEditor { 23 24 private Button fChangeControl; 25 26 29 public BooleanFieldEditor2( 30 String name, 31 String labelText, 32 int style, 33 Composite parent) { 34 super(name, labelText, style, parent); 35 } 36 37 40 public Button getChangeControl(Composite parent) { 41 if (fChangeControl == null) { 42 fChangeControl = super.getChangeControl(parent); 43 } 44 return fChangeControl; 45 } 46 47 48 } 49 50 | Popular Tags |