This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214530 - NoGo for plugin Formatted Text Copy
Summary: NoGo for plugin Formatted Text Copy
Status: NEW
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: svanimpe
Depends on:
Reported: 2012-06-20 16:43 UTC by ent38
Modified: 2012-07-04 20:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2012-06-20 16:43:10 UTC
Cannot install on NB 7.2Beta and latest Dev Build
Comment 1 ent38 2012-06-20 16:45:03 UTC

On NetBeans 7.2 Beta and the latest Dev Build (201206200001), I encounter this message on install :

Some plugins require plugin Editor Library 2 to be installed.
The plugin Editor Library 2 is requested in implementation version 25.  The following plugin is affected:       Formatted Text Copy

Fresh NB install.
Product Version: NetBeans IDE Dev (Build 201206200001)
Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03
System: Windows XP version 5.1 running on x86; Cp1252; fr_FR (nb)
Comment 2 Jiri Kovalsky 2012-06-25 10:10:48 UTC
Steven, can you please take a look at this dependency issue? Thanks!
Comment 3 svanimpe 2012-06-25 12:07:27 UTC
In order to get the highlights from the editor pane, I use the following code:


HighlightsSequence bottom = HighlightingManager.getInstance(pane).getBottomHighlights().getHighlights(pane.getSelectionStart(), pane.getSelectionEnd());
HighlightsSequence top = HighlightingManager.getInstance(pane).getTopHighlights().getHighlights(pane.getSelectionStart(), pane.getSelectionEnd());
OffsetsBag bag = new OffsetsBag(pane.getDocument(), true);

HighlightsSequence hs = bag.getHighlights(pane.getSelectionStart(), pane.getSelectionEnd());


The problem lies with the class HighlightingManager. I don't know of any other way to get the highlights I need to preverse the formatting of the text.

PS: I just made this plugin in a day or two, based on an existing one, with no prior experience in NetBeans development. I believe this should really be a standard feature in NetBeans, as it is in Eclipse. The NetBeans team can probably do this a lot better than I did :)
Comment 4 carlosqt 2012-07-04 20:57:53 UTC
cannot install it on NB 7.2 RC1 
Win7, Java 1.7.0, 64-bit. 
Requires another library to be installed.