Sort line tools - plugin detail

Adds a toolbar with texteditor operations like sorting

NetBeans Plugin - Sort line tools
Plugin owner: markiewb
Website: https://github.com/markiewb/nb-sort-line-tools
Added: 2013-01-07
License: CDDL
Category: Editing
Downloaded: 5,002 times
Rating:
 4.43, by 11 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.06 MB   Last Update: 2016-09-30

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Upload for 8.2

Verifications for NetBeans versions

8.2 verification PASSED See verification details
Download plugin   Download size: 0.06 MB   Last Update: 2015-08-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Upload for NB8.1

Verifications for NetBeans versions

8.1 verification PASSED See verification details
Download plugin   Download size: 0.06 MB   Last Update: 2014-01-27

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Upload for 8.0

Verifications for NetBeans versions

8.0 verification PASSED See verification details
Download plugin   Download size: 0.06 MB   Last Update: 2013-09-14

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Updates in 1.21:

  • Issue #1: Performance issue (use NbDocument.findRecentEditorPane)
  • Issue #2: Remove warnings while building
  • Issue #3: Convert layer-based action registration to annotation-based approach


Verifications for NetBeans versions

7.4 verification PASSED See verification details


Introduction

Support following operations in text editors:
  1. Sort lines spanned by selection in ascending/descending (in-)case-sensitive order
  2. Remove duplicate lines while sorting.

You can also assign shortcuts to these actions.

(This plugin is based on the "Line Tools" plugin from sandipchitale @ http://plugins.netbeans.org/plugin/3857/line-tools. It is mainly a repackaging to be compatible with NetBeans 7.x. All features except sorting were disabled. No bugs were fixed or features added. Original sourcecode can be found at http://hg.netbeans.org/main/contrib/file/tip/linetools. License remains CDDL - http://www.netbeans.org/cddl-gplv2.html. Compatible to NetBeans 7.0 and higher. )

btn_donate_SM.gif

[ You have to be logged in to be able to comment. ]

User Comments

  

Cool plugin - Context menu integration would be nice

Nice plugin! It would be really cool to have that functionality in a context menu. So that you can do a right click when you selected a portion of text and then sort it.
Posted by bennyn on May 07, 2014
  

Brilliant!

Need by default!
Posted by mevsme on Mar 26, 2013
  

Core feature

It's great to sort CSS rules alphabetically, and other little things.
Very good.
Posted by vicente.bissoli on Jan 25, 2013
  

Should be part of NetBeans by default

This is an excellent plug-in. It saves you from copy your text to an external editor for sorting file contents.

I use it to sort labels in my messages files.
Posted by big_al on Jan 25, 2013
  

Netbeans needs it

It's my top rated feature request in netbeans.
Would be nice if someone keeps improving it.

Thank you.
Posted by vicente.bissoli on Jan 19, 2013
  

filter command buttons throw exceptions if left empty




After installing the plug in it installs 7 new buttons on the tool bar.
2 of those buttons are Filter and Filter to Output Window. If you click any of both a dialog window appear asking for entering a "Filter Command", if you leave it blank and press OK button the attached 2 exceptions are thrown.

java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
Caused: java.io.IOException: Cannot run program "": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at org.netbeans.modules.linetools.actions.FilterProcess.exec(FilterProcess.java:80)
[catch] at org.netbeans.modules.linetools.actions.LineOperations.filter(LineOperations.java:288)
at org.netbeans.modules.linetools.actions.Filter.doLineOperation(Filter.java:54)
at org.netbeans.modules.linetools.actions.AbstractLineAction.performAction(AbstractLineAction.java:66)
at org.openide.util.actions.NodeAction.performAction(NodeAction.java:295)
at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:129)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:126)
at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:283)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
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:4492)
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:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
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:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
==>


java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
Caused: java.io.IOException: Cannot run program "": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at org.netbeans.modules.linetools.actions.FilterProcess.exec(FilterProcess.java:80)
[catch] at org.netbeans.modules.linetools.actions.LineOperations.filterOutput(LineOperations.java:374)
at org.netbeans.modules.linetools.actions.FilterOutput.doLineOperation(FilterOutput.java:54)
at org.netbeans.modules.linetools.actions.AbstractLineAction.performAction(AbstractLineAction.java:66)
at org.openide.util.actions.NodeAction.performAction(NodeAction.java:295)
at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:129)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:126)
at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:283)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
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:4492)
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:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
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:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
==>
Posted by carlosqt on Jan 10, 2013
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo