Eclipse : edit code using drag & drop ?

R

Roedy Green

When eclipse does a 'sort methods alphabetically' how does it
decide which comments to move with each of the methods?

I propose to solve this problem with a SCID by having hidden metadata
that attached each comment to a particular token, or group.

See http://mindprod.com/projects/scid.html

That won't help you for now.

In the meantime we should make up some conventions about which line a
comment belongs to - the one before or after.

What you can do in the meantime to make it obvious is use lots of
whitespace.
 
M

Michael N. Christoff

Some of the responses in this thread have been exceedingly poor in my
opinion. Patrick asked a VERY simple question, and got a bunch of
irrelevant and/or computer-geek-machismo style responses. How about
_answering the question that was asked_? For example: "check out plugin X,
it adds this capability". Try skipping all the irrelevant and completely
absurd comments about how refactoring and the _particular method one uses to
copy/paste_ are somehow related.
Had you ever considered that D'n'D is a concept
more in tune with children's paint programs than
an OO computer language?

Have you considered that this is a juvenile and pointless response to a
perfectly valid question?
Rather than D'n'D you should think 'refactor', as
reused code seems to beg the question as to whether
the code should be in a utility class.

So you're saying refactoring eliminates all acceptable uses of copying and
pasting? If not, then this means that using right-click/copy/paste... is
also 'childish' since it and DnD-copy are _functionally identical_. The
only difference has to do with personal preference and the particular steps
taken to accomplish the task. Refactoring has absolutely nothing to do with
it.

And Patrick is right about DnD-copy being a standard feature in almost any
text editor these days. I can't remember (excluding Eclipse) the last time
I used one without that capability.



l8r, Mike N. Christoff
 
L

Liz

Pls provide address to refund your money.


Michael N. Christoff said:
Some of the responses in this thread have been exceedingly poor in my
opinion. Patrick asked a VERY simple question, and got a bunch of
irrelevant and/or computer-geek-machismo style responses. How about
_answering the question that was asked_? For example: "check out plugin X,
it adds this capability". Try skipping all the irrelevant and completely
absurd comments about how refactoring and the _particular method one uses to
copy/paste_ are somehow related.


Have you considered that this is a juvenile and pointless response to a
perfectly valid question?


So you're saying refactoring eliminates all acceptable uses of copying and
pasting? If not, then this means that using right-click/copy/paste... is
also 'childish' since it and DnD-copy are _functionally identical_. The
only difference has to do with personal preference and the particular steps
taken to accomplish the task. Refactoring has absolutely nothing to do with
it.

And Patrick is right about DnD-copy being a standard feature in almost any
text editor these days. I can't remember (excluding Eclipse) the last time
I used one without that capability.



l8r, Mike N. Christoff
 
A

Alexander Kirchhof

(e-mail address removed) wrote in message
Hello Patrick,

I'm very amused by this keyboard-artist's discussion (I'm an old
mouse-pusher too), but I've found a maybe not complete but helpfull
keyboard ersatz for mouse drag-and-drop (what I would be very happy
about too):

You can select text an move it with Alt + Arrow-up/-down or copy-move
it with Alt + Cmd + Arrow-up/-down.

Pleaes excuse my bad denglish

Alexander
 
Joined
Dec 26, 2007
Messages
1
Reaction score
0
Hope this help

You can use myeclipse instead... there is a feature in the preference that enables by default DND... but you must re-associate whatever files extension you want to work on to the text editor. Hope this help.
 
Joined
Sep 28, 2009
Messages
1
Reaction score
0
Michael N. Christoff said:
"Andrew Thompson"
>
> >> use right mouse button

> >
> > That is, in my opinion, not as handy/efficient
> > as just selecting and then dragging it.

>[/color]

Some of the responses in this thread have been exceedingly poor in my
opinion. Patrick asked a VERY simple question, and got a bunch of
irrelevant and/or computer-geek-machismo style responses. How about
_answering the question that was asked_? For example: "check out plugin X,
it adds this capability". Try skipping all the irrelevant and completely
absurd comments about how refactoring and the _particular method one uses to
copy/paste_ are somehow related.

> Had you ever considered that D'n'D is a concept
> more in tune with children's paint programs than
> an OO computer language?


Have you considered that this is a juvenile and pointless response to a
perfectly valid question?

> Rather than D'n'D you should think 'refactor', as
> reused code seems to beg the question as to whether
> the code should be in a utility class.


So you're saying refactoring eliminates all acceptable uses of copying and
pasting? If not, then this means that using right-click/copy/paste... is
also 'childish' since it and DnD-copy are _functionally identical_. The
only difference has to do with personal preference and the particular steps
taken to accomplish the task. Refactoring has absolutely nothing to do with
it.

And Patrick is right about DnD-copy being a standard feature in almost any
text editor these days. I can't remember (excluding Eclipse) the last time
I used one without that capability.



l8r, Mike N. Christoff


I completely agree here, this is about a productivity feature that has no reason not to be present in a code editor with a reputation such as eclipse. the childish and "my way or the high way" responses given here are one of the reasons that open source cant compete with the likes of editors such as visual studio..

Pls provide address to refund your money.

this is the open source attitude? to me this is just one more reason to use visual studio.

visual studio, dreamweaver, metapad, firefox, msn, netbeans, msword.. these are just a few programs i have running at the moment all of which support drag and drop text. there is no reason eclipse cant be at par with these programs in such a simple area.
 
Joined
Sep 28, 2009
Messages
1
Reaction score
0
Hello to all

I'm almost amused myself by turning your discution loop for anything.

The question was simple: is there a way to drag text and paste it better WITHOUT USING THE CLIPBOARD.

The reason is simple: to drag avoid losing what you've put on the clipboard during a previous copy / paste.

it may perhaps be futile for you but I see that you have never used other IDE than Eclipse .

This little trick can save you considerable time, whatever you say.

In short, I too am looking for this little gem. I had found this was a time and I can not get it back to my chagrin ...

Between Patricks we understand ...
 
Joined
Oct 27, 2009
Messages
1
Reaction score
0
This discussion is so old, but I had to sign up just to say... that it is all about productivity and preference. I know many keyboard shortcuts and I do love using them, but having used the drag & drop text feature in so many other editors has allowed me to enjoy its benefits. IMHO, if I can move text simply and intuitively by dragging the mouse, then I am going to do it every time.

To those that gave Patrick the lectures earlier...
Help people with your responses; don't exemplify the close-minded attitude that in-truth handicaps the brilliance that you hold in such high regard.
 
Joined
Nov 30, 2009
Messages
1
Reaction score
0
It's a bug...

As far as I can tell there's an outstanding bug that relates to this issue of DnD text not working in eclipse - hence the new(ish) activity on this thread.

Since you've got this far, please vote (bugs.eclipse.org/bugs/show_bug.cgi?id=260922) for it's speedy correction!

A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top