Package java.awt.dnd

Examples of java.awt.dnd.DropTargetContext.dropComplete()


              data = DnDSupportUtility.textURIListToFileList((String)t.getTransferData(DnDSupportUtility.URI_LIST_FLAVOR));
            }
            if(data!=null){
              executeDrop(data);
            }
            context.dropComplete(true);
        }      
        catch (Exception ex) {
            log.error(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Error: "), ex);
       
    }
View Full Code Here


                }           
                ISQLPanelAPI api =
                    _session.getSQLPanelAPIOfActiveSessionWindow();
                api.fileOpen(fileToOpen);
            }           
            context.dropComplete(true);
        } catch (Exception e) {
            s_log.error("drop: Unexpected exception "+e.getMessage(),e);
        }

    }
View Full Code Here

    }

    // We know drag is coming from tree so just get selection:
    String typeName = annotationFeaturesViewer.getSelection();
    edit.addRow(typeName);
    targetContext.dropComplete(true);
  }
}
View Full Code Here

                catch (Exception e)
                {
                    e.printStackTrace ();
                }
                // signal the drop was successful
                context.dropComplete (accept);
            }
            else
                event.rejectDrop();
        }
        catch (IOException exception)
View Full Code Here

            if( o instanceof File ) {
                fireFileDropped( (File)o );
            }
          }
        }
        context.dropComplete(true);
      }
      catch (InvalidDnDOperationException e1) {
        e1.printStackTrace();
      }
      catch (UnsupportedFlavorException e1) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.