Code Monkey home page Code Monkey logo

quickopener-netbeans's Introduction


This project is DEAD and NOT SUPPORTED anymore by its former developer.

Please fork it and create a new plugin from it. I can guide you through the process (as time allows), but I won't write code, accept pull-requests nor put updates to the NetBeans plugins center.

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.

Plugin toolbar

This plugins brings to your NetBeans six action, three of them always available and three of them available when the selected node has a file assiociated with it. In particular:

When the selection has a valid file:

  • Open the default OS shell on the location of the file (or its folder) selected. icon 
  • Open the file system browser on the location of the file (or its folder) selected. icon 
  • Copy to the clipboard the path of the file selected. icon 

Always enabled:

  • Launch a shell command (with parameters, customizable on preferences) icon 
  • FileSystem browser on any location (favorites, customizable on preferences) icon 
  • Open a shell on any location (favorites, customizable on preferences) icon 

Updates

1.2.0:

  • [Feature 86]: Support Mate-terminal and Caja-/Space-file manager via configurator (Ubuntu Mate) (PR by javatlacati)
  • [Task 84]: Fix line-endings and update to JDK7 (PR by javatlacati)

1.1.0:

  • [Feature 66]: Refactor run custom dialog: simplify, add keyboard-only support
  • [Feature 33]: Support for project folder replacement variable ${projectFolder}/${mainProjectFolder}
  • [Feature 67]: More patterns - see details
  • [Feature 30]: Support favorites nodes
  • [Feature 64]: Support lookups with java.io.File
  • [Bugfix 65]: Missing mnemonics in dialogs and options
  • [Bugfix 69]: "Launch custom command..." should be available if there is no selected file
  • [Bugfix 77]: Fix GUI detection for Ubuntu 16.04

1.0.4:

  • [Bugfix 63]: File manager opens twice (KDE)
  • [Bugfix 62]: java.lang.NoSuchMethodError: java.lang.Process.waitFor running NB @ JDK7

1.0.3:

  • [Task 56]: Provide a 8.1 version for the plugin center
  • [Task 60]: Include new version of oscommands
  • [Task 61]: Convert to maven-project for better maintainence
  • [Bugfix 51]: [Windows] Open in FileManager should select the file/dir
  • [Bugfix 49]: [Linux] Crash in options when running "LinuxUnknown" and KDE not detected

The project is hosted on github, click here to report a bug or make a suggestion... Enjoy, Diego+Benno.

quickopener-netbeans's People

Contributors

dzsessona avatar javatlacati avatar markiewb avatar tychobrailleur avatar yanosh-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quickopener-netbeans's Issues

on linux only the path action is working

on linux (ubuntu + gnome) the plugin installs correctly but only the path copier is working. this suggests that is easy to get the file but not the os command to be passed to Desktop class.

Open in file explorer does not work under KDE

Under KDE when trying to open a folder in the file explorer it's trying to use konqueror which is no longer KDE's default file manager. In fact most distros no longer even include konqueror.

It should be trying to open "dolphin" as that is currently the default file manager under KDE.

Can not activate in Netbeans 7.4RC2

Netbeans 7.4RC2 (OS Independent PHP version) reports an issue when I try to activate the plugin:

Activation failed: Not all requested modules can be enabled: [StandardModule:me.dsnet.quickopener jarFile: /home/styu/.netbeans/7.4rc2/modules/me-dsnet-quickopener.jar]

[Windows new feature] Open in shell with admin permissions

Hello,

it'd be great if there is a Open in terminal with administrative permissions menu item on Ms Windows. It'd open a cmd with admin rights, so developers could perform administrative level stuff in opened file directory.

Thanks

Add and action to run default command

Add an action (hidden but with shortcut) like alt + 7 to be able to run the default command. Also add a way to set a command as default. The command can contain parameter automatically replaced like ${currentFile} but not the ones like ${param1}.

Add a new variable ${projectFolder}

Some actions require the path for the executed command to be the project root path. As an example, I would like to be able а terminal with the current working directory to the project root path (for example for git).

Popup Entries Too Wordy

Would be great if the following changes were made:

Copy path in the clipboard -> Copy Path
Open in the default OS Terminal -> Open In Terminal
Open in the default OS file system browser -> Open In File Manager

Opening terminal on file does not work @Win7/NB7.2b1

Opening terminal on file does not work.

STEPS:

  • Select a java-sourcenode in the project view
  • execute "open in terminal"

ACTUAL: the path in the terminal is the bin-directory of the NetBeans installation
EXPECTED: the path in the terminal is the path of the selected file behind the node


Product Version: NetBeans IDE 7.2 Beta (Build 201205031832)
Java: 1.6.0_30; Java HotSpot(TM) 64-Bit Server VM 20.5-b03
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\Bender\AppData\Roaming\NetBeans\7.2beta
Cache directory: C:\Users\Bender\AppData\Local\NetBeans\Cache\7.2beta

Support favorites nodes

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();
    }

error when working directory has spaces in it

in windows, a custom shell is set in tools->options->quickopener like this:
"c:\Program Files (x86)\Git\bin\sh.exe" --login -i

It works fine, unless the working directory has a space in it:
C:\Users\admin\Google Drive\working_directory

then there is a failure

the following edit would perhaps solve the problem of working directory with spaces in the name:
old:
fullCommand = String.format("cmd /c start /D %s "%s" %s", workingDir, shellTitle, customShell);
new:
fullCommand = String.format("cmd /c start /D "%s" "%s" %s", workingDir, shellTitle, customShell);

I would prefer that someone ( @markiewb ?? ) who is better familiar with this code to test the solution if possible

much thanks!

Netbeans Dev/Nightly

Quickopener is the module I am using the most, unfortunately it is not supported anymore by the latest dev. release. I would like to say that I love to see this project to be continued.

Launch custom commands directly from Menu Item or Dropdown

Currently it takes 3 to 4 mouse-clicks to Launch a Custom command (via the Launch Custom command)

I use these command very often to launch Cygwin and Sublime etc...

It would be a nice enhancement to allow launching a Custom command via a single mouse click or maybe a separate context menu option to launch each Custom command.

Also it would be good if I could disable the Confirm dialog "You are about to launch command... Are you sure?"

java.lang.IndexOutOfBoundsException when clicking on any empty table in the plugin

Rework all the tables in the options/custom dialogs. When there is no entry and you click on the empty table there will be an IOOBE. You're missing a range check, i guess.

java.lang.IndexOutOfBoundsException: Invalid index
    at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:514)
    at me.dsnet.quickopener.prefs.PlacesPanel.jTable2MouseClicked(PlacesPanel.java:233)
    at me.dsnet.quickopener.prefs.PlacesPanel.access$300(PlacesPanel.java:20)
    at me.dsnet.quickopener.prefs.PlacesPanel$4.mouseClicked(PlacesPanel.java:122)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
    at java.awt.Component.processMouseEvent(Component.java:6508)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)

Terminal won't open properly if project is in folder with special characters

Hi,
There is a problem with action associated to Open in the default OS terminal (Alt+1) button.

Background
Operating system: Windows 7 64bit
One of my projects is under the folder which has ampersand in the name.

Action 1
Pressing Open in the default OS terminal (Alt+1) button with file/folder selected in Projects panel;
Or
Pressing Open in the default OS terminal (Alt+1) button while editing file in the editor;

Result for Action 1
Terminal with shell opens with the following error:

The system cannot find the path specified.

Expected result for Action 1
Shell Terminal should open with file’s current drive and folder.

Workaround
Create custom action with command which wraps the folder name in double quotes:

cmd /c start cd /D "${currentFolder}"

and launch it using Launch custom command option.

I can not change Alt+1 shortkey

I want to assign Alt+1 to another action in NetBeans but when i change the shortkey the Alt+1 was disabled, although i can change Alt+2 and Alt+3 and assign them to other NetBeans action.
can anyone help me?
is this a bug?
before installing this plugin everything was fine.
I am working on Ubuntu 12.04 and NetBeans 7.2

thanks.

Pb with Alt-1 and Alt-2 buttons/shortcuts on 12.12

As ent78 reported:

Hi,
I have a problem with the two first buttons : "Open in the default OS terminal" (or Alt-1) and "Open in the OS file system browser" (or Alt-2).
I select a file or a folder (or a class / package in the Projects view), but I always get the following error message :

"There are no files associated with the current selection."

Nothing relevant in the logs.
Tested on NetBeans 7.2.1 with JDK6u37 and JDKu9. Fresh installs and profiles.

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_09; Java HotSpot(TM) Client VM 23.5-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Java__prefs__\7.2.0_jdk7_userdir
Cache directory: C:\Java__prefs__\7.2.0_jdk7_cachedir

Any idea ?
Other functionalities work fine.

Thx.

Terminal won't open properly if project is on different drive than Netbeans

Hi,
There is a problem with action associated to Open in the default OS terminal (Alt+1) button.

Background
Operating system: Windows 7 64bit
I have Netbeans (v. 7.2) installed on C: drive. All my Netbeans projects are on D: drive.

Action 1
Pressing Open in the default OS terminal (Alt+1) button with file/folder selected in Projects panel;
or
Pressing Open in the default OS terminal (Alt+1) button while editing file in the editor;

Result for Action 1
The current path shown in Terminal is Netbeans’ installation folder. I need issue drive change command

C:\Program Files (x86)\NetBeans 7.2>d:

in order to get to the folder where selected/edited file resides.

Expected result for Action 1
Shell Terminal should open with selected/edited file’s current drive and folder.

Workaround
Create custom action with command:

cmd /c start cd /D "${currentFolder}"

and launch it using Launch custom command option.

Please fix the bug which is causing the wrong behaviour described in Result for Action 1.

EDIT:
I did test with the version you created for issue #3.
The shell command issued by the plugin doesn't have the /D switch (as per workaround).
Also I think that was the cause of issue #3 and other similar issues related with this project.

Cheers,
QN

Provide a 8.1 version for the plugin center

Hi,
this is really one of my favorite plugins, thanks for developing it.
I started to use NB 8.1 could you kindly update it for this new NB version?
I really miss it.
Thanks and best regards,

Support for project folder replacement variable

Currently there's support for the following replacement variables:

${currentFile}
${currentFolder}
${relativeFile}
${relativeFolder} 

I'm missing the project root folder. For the shell script I'm executing I need to know the project's root path and it is pretty difficult to figure out from the existing replacement variables, if not impossible.

Therefore I'm suggesting a new replacement variable:

${currentProjectFolder}

I don't know if it makes sense to have a relative version of that variable as well ?

Right click option?

Would it be possible to have a right click option to open a file browser/shell? I tend to close all the toolbars to save space.

Support project nodes

Currently it is not possible to open a console/file browser for the selected project-node in the project TC. The action is not enabled.

EXPECTED: Support project nodes

The following code to determine the project directory is taken from my plugin @ http://code.google.com/p/show-path-in-title-netbeans-module/source/browse/src/de/markiewb/netbeans/plugin/showpathintitle/PathUtil.java

    private String getProjectDirectory(final FileObject primaryFile) {
        try {
            Project project = ProjectUtils.getInformation(FileOwnerQuery.getOwner(primaryFile)).getProject();
            return getProjectDirectory(project);
        } catch (Exception e) {
            //ignore the exception
            return null;
        }
    }


    private String getProjectDirectory(final Project project) {
        try {
            FileObject projectDirectory = project.getProjectDirectory();
            return projectDirectory.getPath();
        } catch (Exception e) {
            //ignore the exception
            return null;
        }
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.