KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ca > mcgill > sable > soot > testing > TestingDialog


1 /* Soot - a J*va Optimization Framework
2  * Copyright (C) 2003 Jennifer Lhotak
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */

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 /**
31  * @author jlhotak
32  *
33  * To change this generated comment edit the template variable "typecomment":
34  * Window>Preferences>Java>Templates.
35  * To enable and disable the creation of type comments go to
36  * Window>Preferences>Java>Code Generation.
37  */

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