corner imagecorner image
IDEPlatformPluginsDocs & SupportCommunityPartners

Java Text Copy Paste Module - plugin detail

Helps copy and paste text from and to Java source code by converting the text back and fourth between Java source and the original text format such as SQL, XML, or HTML. It ties into the system clipboard, so all one has to do is copy text in their favorite SQL or XML editor then use the "Java Text Copy Paste Module" specific actions to transform the code. Code can also be highlighted in the Java editor and copied using the "Java Text Copy Paste Module" specific actions to transform it back into the original text format for pasting into their favorite utility editor. Works great with SQL and XML editors.

n/a
Plugin owner: wadechandler
Website: http://contrib.netbeans.org/source/browse/contrib/wadechandler_projects/JavaTextCopyPasteModule/
Added: 2007-06-03
Last updated: 2008-04-30
NetBeans Versions: 6.0, 6.1
License: CDDL
Category: Utilities
Size: 0.01 MB
Downloaded: 4,145 times
Rating:
 4.18, by 2 users


Download plugin

Verifications for NetBeans versions

6.0 verification PASSED See verification details
6.1 verification PASSED See verification details

Introduction

Helps copy and paste text from and to Java source code. This module works well with SQL or HTML or XML which needs to be embedded in Java source code or needs to be extracted from Java source code. Look for the "Java Text Copy and Paste" context menu inside Java source files. There are no default hot keys for the functionality. I suggest playing around with the different actions to get a feel for how they work. + signs are pre-pended at the beginning of lines of source to make hand editing of generated code easier.

This module allows source code to be selected then formatted back into the text format it was before converted into Java source. It also allows one to select XML, HTML, or SQL in their favorite tool (as text) and then paste into the NetBeans Java editor where it is automatically formatted as Java source code. I find I use it all the time and comes in very handy.

Version 1.1 added a new way to copy the text from the editor which keeps newlines in the selected text yet removes any newlines fromJ the actual Java sources.

Version 1.2 adds tested support for NetBeans 6.0 and corrects a bug which deals with concurrent access of the edited document. The bug has not shown any issues yet, but possibly could as concurrent access could have unknown results.

Version 1.3 fixes an issue dealing with the context menu sorting and NetBeans 6.0.


What's new in this version

The latest version now works well with NB 6.0. Before there were some dependencies which are not available in NB 6.0. I have highlighted the revisions from version to version in the plugins long description.

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

User Comments

  

This should be part of NB IDE

As I also prefer the + sign on the front I would love to see this functionality being added to come with the IDE.
And as JavaFX does not support multiline strings this module will useful in that environment, too.
Posted by giorgio42 on Dec 12, 2008
  

6.5 Plugin status and plus sign issue

I will be updating to 6.5 soon or at least testing it in 6.5.

With the plus sign issue, I handle this mostly by going into the formatting preferences under Tools|Options|Editor|Formatting (tab)|Language Java|Category Wrapping|Binary Operators set to if long. That at least makes it bearable. The reason for the + on the front was originally intended to allow things to be removed if needed without having to cursor around and access two lines. I'll play around with it and see what I can do.
Posted by wadechandler on Nov 23, 2008
  

Plus sign on the left is formatted away by Netbeans

The plugin uses plus signs on the left of each new line when pasting into Netbeans.
Netbeans does not understand this and creates a single line when using Source-Format.
I know that it is arguable where the signs should be placed, but I would prefer to let Netbeans have its way.
Can this be configured somehow in the plugin?
Posted by dschulten on Nov 23, 2008
  

Any 6.5 Plugin

Will a 6.5 plugin be available soon?
Posted by desmond_kirrane on Sep 24, 2008
  

I have verified this plugin works in NB 6.1

This is just an update to let everyone know. I have made sure the module works in NB 6.1. I am using it myself.
Posted by wadechandler on Apr 29, 2008
  

Now works for 6.0

The module should work in NB 6.0. I had to drop some dependencies and cleaned it up a little. I also fixed one issue I saw where I had forgot to lock the document before modifying it. This is mentioned in the Version 1.2 section of the long module description.
Posted by wadechandler on Jul 27, 2007
  

cannot install on 6.0

works great on 5.5.1

however, I cannot install it on 6.0, error below
I am using the base IDE installation, july-21-07 build

Plugin Java Text Copy Paste Module cannot match its dependencies:
module javax.jmi.model/1 > 1.7.22
module javax.jmi.reflect/1 > 1.7.22
module org.netbeans.api.mdr/1 > 1.4.22
module org.netbeans.jmi.javamodel/2 > 1.21.22
module org.netbeans.modules.java/1 > 1.25.22.2.2.2
module org.netbeans.modules.javacore/1 > 1.18.22.2.2
module org.openide.src > 1.8.22
Posted by sid21177 on Jul 23, 2007