NetBeans Cheat Sheets - plugin detail

View code templates and keybindings

NetBeans Plugin - NetBeans Cheat Sheets
Plugin owner: geertjan
Website: blogs.oracle.com/geertjan
Added: 2013-07-07
License: CDDL
Category: Editing
Downloaded: 1,776 times
Rating:
 4.63, by 5 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.01 MB   Last Update: 2014-12-13

What's new in this version

2.0: Adds a drop-down in the Code Templates window so you can select HTML or Java, etc, depending on which of them are available.

4.0: Several fixes, described here: Bug Fixes and Enhancements for NetBeans Cheat Sheets

7.0: Code sensitivity can be disabled and custom code templates are automatically shown in the Code Templates window.

8.0: SQL included and error when deleting code templates fixed.

9.0: Description column shown in Code Templates window, which can be removed after right-clicking in the table header. Bug fixed related to duplicate entries appearing when a code template is changed. The cells in the table are now not editable anymore, which never made sense in the first place since the Options window is where you modify the templates.



Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.01 MB   Last Update: 2013-07-07

What's new in this version

Keybindings loaded on demand.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

Two new windows are provided, for viewing code templates and keybindings while coding in the NetBeans editor.

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

User Comments

  

Works fine for me in 8.0.2

Can you drop me a mail at geertjan dot wielenga at oracle dot com? Let's figure out together what's going wrong. (E.g., do a restart, remove the user directory, maybe, etc.)
Posted by geertjan on Dec 05, 2014
  

It doesn't work after 8.0.2 update

So, title says it all. The plugin show up with blank content and netbeans notify me with one exception:
[code]
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:703)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:674)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1534)
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1429)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.security.AccessController.doPrivileged(AccessController.java:713)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1428)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:646)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1300)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1267)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:263)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1164)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
at org.openide.xml.XMLUtil.parse(XMLUtil.java:365)
at org.netbeans.cheats.KeyBindingsTopComponent$KeyBindingsChildFactory.createKeys(KeyBindingsTopComponent.java:65)
at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:209)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
[/code]
Posted by gilbertoca on Dec 05, 2014
  

Just restart the IDE

Restart the IDE and you'll see your custom code templates.
Posted by geertjan on Nov 01, 2013
  

Custom code templates

It would be much more useful if it was able to also show custom code templates (defined by users)
Posted by mcinp on Nov 01, 2013
  

Custom keyboard layout

Code templates works fine but key bindings doesn't work:

java.lang.NullPointerException
at org.netbeans.printtemplates.KeyBindingsViewer$KeyBindingChildFactory.createKeys(KeyBindingsViewer.java:120)
at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:209)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Posted by wellic on Jul 11, 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