1 19 20 package ca.mcgill.sable.soot.testing; 21 22 import org.eclipse.core.runtime.IAdaptable; 23 import org.eclipse.jface.dialogs.Dialog; 24 import org.eclipse.swt.widgets.*; 25 import org.eclipse.swt.*; 26 import org.eclipse.swt.layout.*; 27 28 29 30 38 public class TestingDialog extends Dialog { 39 protected IAdaptable input; 40 41 private Label text_label; 42 private Button jimple_button; 43 private Button grimp_button; 44 45 public TestingDialog(Shell parentShell, IAdaptable input) { 46 super(parentShell); 47 48 this.input = input; 49 } 50 51 protected Control createDialogArea(Composite parent) { 52 Composite composite = (Composite)super.createDialogArea(parent); 53 54 Layout layout = new RowLayout(); 55 composite.setLayout(layout); 56 text_label = new Label(composite, SWT.LEFT); 57 text_label.setText("Select Soot Output Type:"); 58 59 jimple_button = new Button(composite, SWT.RADIO); 60 61 62 return composite; 63 64 } 65 66 protected void okPressed() { 67 68 super.okPressed(); 69 70 } 71 72 } 73 | Popular Tags |