exbin / bined-netbeans-plugin

Hex viewer/editor plugin for NetBeans platform
https://bined.exbin.org/netbeans-plugin
Apache License 2.0
5 stars 1 forks source link

Files on enter/double click opens in hex view (.sh, .h, .c) #3

Closed Chris2011 closed 8 years ago

Chris2011 commented 8 years ago

The problem is the same as for an other hexeditor plugin, but atm I don't know which one. The problem is, when you double click a file or hit enter on a file which fileending is .sh, .c, .h and I think .cpp too, then the hexview opens which was not expected. The problem is, that the "Open as Hex" action is the first action and not "open" anymore.

hajdam commented 8 years ago

This seems to be issue with index-based positioning in menus in NetBeans. I'm not sure what proper solution should look like. I tried to tweak the number up. Please test current build http://deltahex.exbin.org/download.php?org-exbin-deltahex-netbeans.nbm

Chris2011 commented 8 years ago

Unfortunately it is still there :( you can create a file like test.sh or test.c or test.h to test it by your own. Open as hex action is still the first item.

hajdam commented 8 years ago

It seems, that it behaves differently if module is activated later after NetBeans started. I tried C++ project this time, so maybe it will work for you now. Not sure what it will do for other types of files thou...

Chris2011 commented 8 years ago

So what is the solution? I don't get is yet, sry.

hajdam commented 8 years ago

What I meant there is, that I created new build and put it in under the same link, so you can try it. It might behave better in some cases. Please try if it will fix at least some of your issues.

Chris2011 commented 8 years ago

Tested it and it is still not working :/. .c .h or *.sh

hajdam commented 8 years ago

Well, not sure what I can do about that... Can you try re-initialization of plugin?

If it will not help, some additional information about your environment/configuration might be useful. Or if you have any idea what could I try, let me know. Seems like you have more experiences with NetBeans plugins anyway...

Chris2011 commented 8 years ago

Possible to set the position to 1000 or 1500 or so? Then it will be more above in the context menu but, who cares? But sure, maybe on the weekend I will delete it and install it again.

hajdam commented 8 years ago

Please let me know, if version I released today fixed this issue for you. http://deltahex.exbin.org/download.php?org-exbin-deltahex-netbeans-0.1.2.nbm

Chris2011 commented 8 years ago

Great work. Thx. Works as expected. :)