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.
Summary: | NoGo for plugin Formatted Text Copy | ||
---|---|---|---|
Product: | updatecenters | Reporter: | ent38 <ent38> |
Component: | Pluginportal | Assignee: | svanimpe |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ent38
2012-06-20 16:43:10 UTC
Hi, 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) Steven, can you please take a look at this dependency issue? Thanks! In order to get the highlights from the editor pane, I use the following code: <snip> 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); bag.addAllHighlights(bottom); bag.addAllHighlights(top); HighlightsSequence hs = bag.getHighlights(pane.getSelectionStart(), pane.getSelectionEnd()); </snip> 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 :) cannot install it on NB 7.2 RC1 Win7, Java 1.7.0, 64-bit. Requires another library to be installed. |