This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Drag and Drop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Drag and Drop" Watch "Drag and Drop" New topic

Drag and Drop

mick lynch

Joined: Aug 17, 2008
Posts: 23
Can you drag and drop objects with Eclipse and NetBeans like you can in VIS Studio ? More interested in Eclipse.
Andre Uhres

Joined: Nov 23, 2008
Posts: 23
Yes we can
Rob Spoor

Joined: Oct 27, 2005
Posts: 20048

Moving to IDEs

How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14915

Drag and drop what kind of objects? Can you explain in more detail what you mean?

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Keith Flo
Ranch Hand

Joined: Nov 29, 2005
Posts: 128

Specifically ... In the Eclipse editor ...

neither in the Java, XML or text eidtors ... simple drag and drop of text does not work ... [maybe I missed something .. but on windows I use CTRL-C : (cut) and CTRL-X: (paste)] this is ok for a line or two but for blocks of text (say moving a method) it stinks ... IMHO

Is there's away to use drag & drop in the Eclipse text/Java editor? If Eclipse doesn't support that feature, is it planned for a future release?

SCJP 5.0 (preparing for SCWCD)
Peter Johnson

Joined: May 14, 2008
Posts: 5852

It depends on which editor you are using. With Eclipse 3.5, drag-and-drop works with these editors:

  • Java editor
  • Ant editor
  • Properties file editor

  • It does not work with:

  • XML editor
  • JSP editor

  • The above lists are not exhaustive, they reflect only the editors I checked off-hand.

    JBoss In Action
    Keith Flo
    Ranch Hand

    Joined: Nov 29, 2005
    Posts: 128


    Thanks! I'll try again ... the Java editor is my main concern ...

    I agree. Here's the link:
    subject: Drag and Drop
    It's not a secret anymore!