LQ McDonald III

Greenhorn
+ Follow
since Aug 01, 2012
LQ likes ...
Eclipse IDE IntelliJ IDE Linux
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by LQ McDonald III

Kemal Sokolovic wrote:Sorry, I read the post to quickly and didn't notice you're looking just for an idea.



No problem. I appreciate the post and advice anyway.
5 years ago

Michael Dunn wrote:if it was Swing, you might be able to dispatchEvent(..) to the TreeViewer.
don't know if there's an equivalent in SWT (?)



If it was Swing it would be much easier, of that much I am certain but the dev environment requires SWT/Jface api.

I am not sure how relevant a code snippet(s) is as the solution is not reliant on any particular implementation. I am simply asking if there is a reasonable way to detect mouse events even when the mouse button is held down. I have explained what I have done so far and I do not see the value in prancing out a bunch of code that does not address the root issue, namely the question about whether mouse hover events can be forced to be handled even if the mouse button is held down.
5 years ago
Hey there folks,

So I am having an issue with a bit of code that I am working with and I thought I would stop banging my head against the screen long enough to petition the brilliant minds here at the ranch for some guidance.

I have a TreeViewer that is set up and working nicely inside an RCP View. Everything is working fine with that. I also have another view that contains a ListViewer. Also working fine. I have the List in the ListViewer as the DragSource and the Tree in my TreeViewer as my Drop Target. I also have a Mouse Hover Listener on the tree to change the selection when a node of the tree is hovered over. This also works as intended. The issue I am having is that when I grab an item from the list and drag it to the tree the mouse hover even does not get handled. It is obvious to me that this is because the mouse button is held down and mouse events can't trigger if the mouse button is held down but I am wondering if anyone has a work around or potentially clever solution to the problem? What i want to happen is when I grab something from the list and drag it to the tree I want the tree to change to the node I am hovered over and drop the object there.

I have tried several different potential solutions including focus listeners, mouse events, etc to no avail. I thought I would get a fresh perspective before I throw my computer out the window. I appreciate the time and energy of your responses and if you need further clarification please ask. Thanks!
5 years ago
You looking for open source or what?

There is Glob3 which is open source: Glob3

gvSig which is also open source: gvSig

uDig which is an Eclipse RCP GIS software solution, also open source: uDig

There is also ArcGIS wihich carries a hefty price tag but is a bit more robust and polished. ArcGIS

Pick your poison. I am sure there are a lot more but this should give you a starting point. Have fun!
5 years ago
I don't know exactly what you are speaking to here but I will suggest the book of books for java programmers. Effective Java by Joshua Bloch. I am sure it has been recommended a million times here but a million and one couldn't hurt if it get's another reader.

http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683/ref=sr_1_1?ie=UTF8&qid=1344101481&sr=8-1&keywords=effective+java
5 years ago
Well...it could be because java does not explicitly enforce thread scheduling in any specific manner and lacks a thread scheduler. Thread scheduling in Java is platform dependent and relies on your JVM implementation.
5 years ago
I have to say, I worked with this code and the DJ Native Swing API and I have the same issue. In fact, all their methods that are used to retrieve the name of the site, content, or url return null when used. Strange anomaly but I am curious about other peoples experience with it.
5 years ago
Why not just do:

5 years ago
Winston has the start of it. Until you fix the super/sub class structure you currently have it doesn't even make sense to diagnose the problem.
5 years ago
http://codekata.pragprog.com/

This might be helpful. Language agnostic codes problems to solve. Might be a bit more involved than you are looking for but it will certainly help if you can find the time.

5 years ago