Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Drag and Drop of .class files from Package Explorer



I already looked into this solution but D&D doesn't send a drag operation
changed event
to the source. So if we start in link mode and the user switches to copy
the source will not
notice until drag set data is called. So I am more in favor of enabling DnD
from Jars and
force the drag target to behave correctly.

Dirk


                                                                           
             Randy Hudson                                                  
             <hudsonr@xxxxxx.c                                             
             om>                                                        To 
             Sent by:                  jdt-ui-dev@xxxxxxxxxxx              
             jdt-ui-dev-admin@                                          cc 
             eclipse.org                                                   
                                                                   Subject 
                                       Re: [jdt-ui-dev] Drag and Drop of   
             10/03/2003 05:47          .class files from Package Explorer  
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             jdt-ui-dev@eclips                                             
                   e.org                                                   
                                                                           
                                                                           





This limitation has more negative effects than expected.  For example,
"focus on.." in the hierarchy view can be done with DND drop of a type.
But, not for Types in JARs.  GUI builders and other bean related editors
like JSP probably want DND enabled for types in JARs.

It seems like DRAG_LINK, or whatever it's called, should be enabled for
elements in JARs.  "Focus on.." should probably be a link operation, if it
isn't already.

-randy


                                                                           
   Dirk Baeumer                                                            
   <dirk_baeumer@xxxxxxxxxx>           To:        jdt-ui-dev@xxxxxxxxxxx   
   Sent by:                            cc:                                 
   jdt-ui-dev-admin@xxxxxxxxxx         Subject:        Re: [jdt-ui-dev]    
   g                           Drag and Drop of .class files from Package  
                               Explorer                                    
                                                                           
   10/03/2003 05:03 AM                                                     
   Please respond to                                                       
   jdt-ui-dev                                                              
                                                                           









Felix,

currently there is nothing you can do, except of filing a PR against
JDT/UI. The
package explorer doesn't support dragging elements out of a Jars.

Dirk




            "Felix L J Mayer"
            <felix.mayer@comc
            ast.net>                                                   To
            Sent by:                  <jdt-ui-dev@xxxxxxxxxxx>
            jdt-ui-dev-admin@                                          cc
            eclipse.org
                                                                  Subject
                                      [jdt-ui-dev] Drag and Drop of
            10/02/2003 07:17          .class files from Package Explorer
            PM


            Please respond to
            jdt-ui-dev@eclips
                  e.org






I know this is not a forum to ask questions, but I already tried the
newsgroups without success.
This is my last hope so please bear with me. Thanks!

I am working on a GEF application that supports drag and drop of Java
classes from the Package Explorer. With source code (.java files) this
works fine, but when I try to drag a compiled class (.class from a JAR
withtin a project) it seems that the drag doesn't even get initiated. It is
possibly, however, to open .class file within an Editor (e.g. with a
doubleclick).

Therefore my question: is it possibly to initiate a drag for a .class file
(my goal is to obtain an IType)? If not, could I get some hints as to how
this could be done?

_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-ui-dev




Back to the top