[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Drag and drop feedbacks insertBefore and insertAfter not working on table?
|
Sorry, it is not implemented for Table (only Tree). The javadoc is bogus.
I didn't see a bug report requesting this capability but there should be
one.
Jochen Strunk <strunk@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
01/07/2004 10:07 AM
Please respond to
platform-swt-dev
To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Drag and drop feedbacks insertBefore and insertAfter
not working on table?
I've been unsuccessfully trying to show an insert mark when dragging to
a table. The following works for DND.FEEDBACK_SELECT but when using
DND.FEEDBACK_INSERT_BEFORE or DND.FEEDBACK_INSERT_AFTER the selection
feedback disappears, but no insert marks are shown:
DropTarget target = new DropTarget(table, operations);
target.setTransfer(types);
DropTargetAdapter listener = new DropTargetAdapter() {
public void dragOver(DropTargetEvent event) {
event.feedback = DND.FEEDBACK_SELECT;
}
};
DND Javadoc states the before/after feedbacks applies to tables and
trees. I found an earlier post in a newsgroup
(http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg04628.html)
that says this feature is only implemented for trees. Is this still
correct? If yes, will this be implemented or does anybody know an
alternative way to show insertion marks with table drag and drop? Thanks!
Jochen
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev