netbeanslab / nb-sort-line-tools Goto Github PK
View Code? Open in Web Editor NEWNetBeans plugin which adds a toolbar with texteditor operations for sorting
Home Page: http://plugins.netbeans.org/plugin/45925
NetBeans plugin which adds a toolbar with texteditor operations for sorting
Home Page: http://plugins.netbeans.org/plugin/45925
I know this plugin is designed to sort "lines".
But sometimes you have switch/case and for a better overview, the cases are better organized if sorted.
I don't know if this could/should be integrated, but it would be a nice enhancement.
The difference is, cases are followed by code:
case 'xxx':
code...
[break]
case 'yyy':
code...
[break]
I assume that is to complicated, but it would ease some day work :)
"Case sensitive" and "Remove Duplicate Lines" don't work even if the toggle button is enabled.
Plugin doesn't install when NB is run on JDK 14+:
The validation of downloaded plugins cannot be completed, cause: NBM .../update/download/org-netbeans-modules-linetools.nbm needs unpack200 to process following entries:
netbeans/modules/docs/org-netbeans-modules-linetools.jar.pack.gz
netbeans/modules/org-netbeans-modules-linetools.jar.pack.gz
I think it should be repackaged.
Performance issue.
Replace EditorCookie.getOpenedPanes with NbDocument.findRecentEditorPane.
Hi @markiewb ,
Could you please transfer this to https://github.com/netbeanslabo if you develop this no longer?
Thanks.
I was download module (from https://github.com/netbeanslab/nb-sort-line-tools/releases/download/1.23/org-netbeans-modules-linetools-1.23.nbm) and tried to install it. But I has got the error:
Installation completed unsuccessfully
Click Finish to quit the NetBeans IDE installer and try to restart IDE.
The Plugin Installer found problem timeout of loading Sort Line
Tools[org.netbeans.modules.linetools/1.23] while install the following plugins:
Sort Line Tools
version of my software:
Product Version: Apache NetBeans IDE 12.0
Java: 14.0.2; Java HotSpot(TM) 64-Bit Server VM 14.0.2+12-46
Runtime: Java(TM) SE Runtime Environment 14.0.2+12-46
System: Linux version 4.15.0-161-generic running on amd64; UTF-8; en_US (nb)
User directory: ~/.netbeans/12.0
Cache directory: ~/.cache/netbeans/12.0
version of my operation system:
Ubuntu 18.04.6 LTS
OS-type: 64-bit
Would it be possible to sort some non-English words please?
I can't send any pull request but this should work into LineOperations.java:
import java.text.Collator;
import java.util.Locale;
// line 149
Comparator<String> comparator = null;
Collator collator = null;
if (descending) {
if (matchCase) {
comparator = REVERSE_STRING_COMPARATOR;
} else {
comparator = REVERSE_STRING_COMPARATOR_CASE_INSENSITIVE;
}
} else {
if (matchCase) {
Locale locale = new Locale("fr_FR");
collator = Collator.getInstance(locale);
} else {
comparator = String.CASE_INSENSITIVE_ORDER;
}
}
if (isRemoveDuplicateLines()) {
SortedSet<String> uniqifySet = new TreeSet<String>(matchCase ? null : String.CASE_INSENSITIVE_ORDER);
uniqifySet.addAll(Arrays.asList(linesText));
linesText = uniqifySet.toArray(new String[0]);
}
if (comparator == null) {
Arrays.sort(linesText, collator);
} else {
Arrays.sort(linesText, comparator);
}
The plug-in loading check cannot be completed. Reason: NBM
C:\Users\koren\AppData\Roaming\NetBeans\14\update\download\org-netbeans-modules-linetools.nbm needs unpack200 to process following entries:
netbeans/modules/docs/org-netbeans-modules-linetools.jar.pack.gz
netbeans/modules/org-netbeans-modules-linetools.jar.pack.gz
I like this plugin, but since netbeans was moved to apache, the plugin is not available through the "official" catalog. It would be great if this can be added:
Plugin-Portal
It is hard to believe such a feature is not integrated in that editor.
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.
Hi,
Im using Netbeans IDE 12.2 and trying to install this plugin,
Can you please update it, so it will install on 12.2
Getting this error.
org-netbeans-modules-linetools.nbm needs unpack200 to process following entries:
netbeans/modules/docs/org-netbeans-modules-linetools.jar.pack.gz
netbeans/modules/org-netbeans-modules-linetools.jar.pack.gz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.