dzsessona / QuickOpener-NetBeans

Sometimes while programming in NetBeans you want to explore a particular file that you are editing on the file system browser, or maybe launch a command in a terminal to do something with it.
52 stars 41 forks source link

Support favorites nodes #30

Closed markiewb closed 8 years ago

markiewb commented 11 years ago

Currently it is not possible to open a console for the selected root-node in the favorites window. The action is not enabled.

EXPECTED: Support datashadow Taken from my own plugin:

    private FileObject getFileObjectWithShadowSupport(DataObject dataObject) {
        if (dataObject instanceof DataShadow) {
            DataShadow dataShadow = (DataShadow) dataObject;
            return dataShadow.getOriginal().getPrimaryFile();
        }
        return dataObject.getPrimaryFile();
    }
dzsessona commented 11 years ago

Hi markiewb. Your code works fine, but there is a problem: the action is enabled with the cookie DataObject. At the moment i believe you can enable disable the action choosing one of:

-) Project -) Open cookie -) EditCookie -) EditorCookie -) DataObject

So the action in that case would be disabled. One thing i have done though is the following: you can open favourite root folders by using the "open terminal (or filesystem) in" ... action. I know there are a few more clicks but I think it could work, Here is a screenshot of what i have done, tell me what you think. Or if you know how to write a custom action enabler....

projects

markiewb commented 11 years ago

Or if you know how to write a custom action enabler....

Alternative a) Use a CookieAction

Alternative b) Extend from AbstractAction

I know this will be some refactoring within your code, but afterwards it is more flexible then. I hope that will help you.

markiewb commented 11 years ago

Do you need any support?

dzsessona commented 11 years ago

Hi markieweb, thank you! Well, if you want, i cannot find not even 5 minutes to work on it. Hopefully next week i will not be so busy.

markiewb commented 11 years ago

@kinkadzs : Any news here?

markiewb commented 10 years ago

@kinkadzs : How about merging my pull request? Did you managed to review the patch? A new version for the plugin center would be very nice.

dzsessona commented 10 years ago

@markiewb i did review it but still for 7.3 friday 25 october will be done for 7.4 and will publish the plugin! :-)

markiewb commented 10 years ago

@kinkadzs Thank you!

dzsessona commented 10 years ago

working on it now....

dzsessona commented 10 years ago

@markiewb hi, i have just uploaded the 7.4 version, I merged your pull request but the root of favorites nodes still have the actions disabled... do you mind having a quick look at it? Now i should be able to work on this plugin a bit more btw.... And thanks, I mentioned you on netbeans center.

markiewb commented 10 years ago

@kinkadzs I will have a look within the next days. IIRC my patched worked times ago. I will figure it out and provide a new pull request if neccessary

dzsessona commented 10 years ago

@markiewb That's great! Thanks

markiewb commented 10 years ago

@kinkadzs : Please review https://github.com/kinkadzs/QuickOpener-NetBeans/issues/30#ref-commit-44f55d2 The actions now work for favorite root nodes too, but I now the toolbar icons are gone. Can you figure that out?

dzsessona commented 10 years ago

cool, will check that on the weekend.

markiewb commented 8 years ago

Fixed in 1.1.0

It was easier than I originally thought