private JTextField fileName;
static private Log logger = LogFactory.getLog(dragdrop_list_test.DraggableDroppableList.class);
+ @SuppressWarnings({ "rawtypes", "unchecked" })
public dragdrop_list_test(String startPath)
{
super("dragdrop_test");
// Create the list and put it in a scroll pane
list = new DraggableDroppableList();
- DefaultListModel listModel = (DefaultListModel) list.getModel();
+ DefaultListModel listModel = (DefaultListModel) list.getModel();
list.setCellRenderer(new CustomCellRenderer());
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setSelectedIndex(0);
return hashtable;
}
- public class DraggableDroppableList extends JList implements IDragonDropDataProvider
+ @SuppressWarnings("rawtypes")
+ public class DraggableDroppableList extends JList implements IDragonDropDataProvider
{
+ @SuppressWarnings("unchecked")
public DraggableDroppableList()
{
setModel(new DefaultListModel());
}
}
- public class CustomCellRenderer implements ListCellRenderer
+ @SuppressWarnings("rawtypes")
+ public class CustomCellRenderer implements ListCellRenderer
{
DefaultListCellRenderer listCellRenderer = new DefaultListCellRenderer();
#ifdef __WIN32__
return GetModuleHandle(to_unicode_temp(library_file_name));
#else
-//hmmm: there really isn't this concept on OSes that i'm aware of.
if (library_file_name.t()) return NIL; else return NIL;
#endif
}
astring version_checker::module_name(const void *module_handle)
{
#ifdef __UNIX__
-//hmmm: implement module name for linux if that makes sense.
if (module_handle) {}
return application_configuration::application_name();
#elif defined(__WIN32__)