ca.mcgill.sable.soot.testing.TestingDialog.java Source code

Java tutorial

Introduction

Here is the source code for ca.mcgill.sable.soot.testing.TestingDialog.java

Source

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

package ca.mcgill.sable.soot.testing;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.*;
import org.eclipse.swt.layout.*;

/**
 * @author jlhotak
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public class TestingDialog extends Dialog {
    protected IAdaptable input;

    private Label text_label;
    private Button jimple_button;
    private Button grimp_button;

    public TestingDialog(Shell parentShell, IAdaptable input) {
        super(parentShell);

        this.input = input;
    }

    protected Control createDialogArea(Composite parent) {
        Composite composite = (Composite) super.createDialogArea(parent);

        Layout layout = new RowLayout();
        composite.setLayout(layout);
        text_label = new Label(composite, SWT.LEFT);
        text_label.setText("Select Soot Output Type:");

        jimple_button = new Button(composite, SWT.RADIO);

        return composite;

    }

    protected void okPressed() {

        super.okPressed();

    }

}