00001 package edu.ksu.cis.bandera.pdgslicer.dependency;
00002
00003 import java.awt.*;
00004 import java.awt.dnd.*;
00005 import java.awt.datatransfer.*;
00006
00007 import java.util.Hashtable;
00008 import java.util.List;
00009 import java.util.Iterator;
00010
00011 import java.io.*;
00012 import java.io.IOException;
00013 import edu.ksu.cis.bandera.pdgslicer.datastructure.*;
00014
00015
00016
00017
00018
00019 public class DraggableVariablesList extends DraggableList {
00020
00021
00022
00023 public DraggableVariablesList() {
00024 super();
00025 }
00026
00027
00028
00029
00030
00031 public void dragGestureRecognized(DragGestureEvent event) {
00032 SliceVariable selected = (SliceVariable) getSelectedValue();
00033 if (selected != null) {
00034 currentDraggingListNode = new TransferableSliceVariable(selected);
00035 dragSource.startDrag(event, DragSource.DefaultCopyDrop, currentDraggingListNode, this);
00036 } else {
00037 System.out.println("nothing was selected");
00038 }
00039 }
00040 }