[1.3b50] Show dialog when CTRL-dragging in from Library
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Thanks, I'll look at that. I hadn't pulled down the rplib code yet... Which explains why I couldn't find this.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Wow, I feel like a total newbie in Eclipse/Java. *sigh* I got the rplib/trunk pulled down, and I can edit the code. But I can't get the library to build/update in the maptools/trunk workspace.
Any help? I looked through the past "how to" and such, but I haven't found anything yet.
Any help? I looked through the past "how to" and such, but I haven't found anything yet.
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Tyren wrote:Wow, I feel like a total newbie in Eclipse/Java. *sigh* I got the rplib/trunk pulled down, and I can edit the code. But I can't get the library to build/update in the maptools/trunk workspace.
Any help? I looked through the past "how to" and such, but I haven't found anything yet.
I am I am not mistaken, you would need to edit the maptool project to reference the rplib project instead of the rplib's jarfile itself.
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Tried that, but it doesn't seem to want to actually BUILD the new rplib JAR file. So all I have is the old one.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Hmm, i've never tried to build the rplib -- sorry!
(Oh, wait a minute. Did you look for a build.xml in the rplib project? You can right-click and choose "Ant build...". There will likely be some errors, but as long as it gets as far as "generate-jar" you should be fine. Then look in the tmp folder under the rplib Workspace directory for the JAR file. That's what I did for my MapTool JAR because I haven't checked out the entire package either.)
(Oh, wait a minute. Did you look for a build.xml in the rplib project? You can right-click and choose "Ant build...". There will likely be some errors, but as long as it gets as far as "generate-jar" you should be fine. Then look in the tmp folder under the rplib Workspace directory for the JAR file. That's what I did for my MapTool JAR because I haven't checked out the entire package either.)
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Amazingly, I've managed to get it working, but now that my changes span across projects, I'm not 100% it is right.
I'd attach the patches here for you guys to review, but the system won't let me attach files that end in .PATCH or .TXT
Suggestions?
I'd attach the patches here for you guys to review, but the system won't let me attach files that end in .PATCH or .TXT
Suggestions?
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Trying with a zip file.
- Attachments
-
- dialogoverride.zip
- The changes to support the dialog override.
- (1.45 KiB) Downloaded 69 times
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Appears to be working here.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Cool. I'm not too sure of the process here. I could e-mail this to Trevor. But I'd like for a few people to "like" this fix before he takes it.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
I know that I would find it handy. 90% of the time I want a token to come in with the defaults but the other 10% of the time I need to change something. This makes it easier.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
You're going to make me try this on my Mac, aren't you?
Dinner is in a few minutes, but I'll apply the patch in a few hours and report back when I've done so. And I'll try it with the external mouse as well as the single-button touchpad. That should be interesting.
Dinner is in a few minutes, but I'll apply the patch in a few hours and report back when I've done so. And I'll try it with the external mouse as well as the single-button touchpad. That should be interesting.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Cool thanks. This just uses the standard DragAndDrop tools, I didn't do any fancy "keyboard" things. I just enabled the MOVE and COPY for the drag. And the default is move. So I assume on Mac that you have a key you can press to make it do the copy action. On PC it's CTRL. *shrug* I'm interested to see how this works on Mac too.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Its kinda complicated because every system has a -- some times very -- different way of dealing with Drag and Drop and it has to abstract them all, the following article describes it in more detail than I couldTyren wrote:So, it looks like the drop is always coming in as "COPY". I assume that when we "start" the drag/drop action we can set the action. But I can't seem to find where we do this. Any help?
http://www.javaworld.com/javaworld/jw-0 ... tml?page=1
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
Yeah, I used the built-in way of doing things. I think it'll be good.
Re: [1.3b50] Show dialog when CTRL-dragging in from Library
I believe its the mac key on Mac os X. On Linux it will depend how they did it, it may be control or shift and control...Tyren wrote:Cool thanks. This just uses the standard DragAndDrop tools, I didn't do any fancy "keyboard" things. I just enabled the MOVE and COPY for the drag. And the default is move. So I assume on Mac that you have a key you can press to make it do the copy action. On PC it's CTRL. *shrug* I'm interested to see how this works on Mac too.