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: | sidebar on the right side of editor area | ||
---|---|---|---|
Product: | editor | Reporter: | Vladimir Voskresensky <vv159170> |
Component: | Painting & Printing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | issues |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Now on the left side
Preffered annotation on the right side |
Description
Vladimir Voskresensky
2009-12-15 14:26:12 UTC
Created attachment 92633 [details]
Now on the left side
Created attachment 92634 [details]
Preffered annotation on the right side
Oh, great. You have such support... almost :-) <attr name="location" stringvalue="East"/> should do a trick, but for now it is: java.lang.IllegalArgumentException: Unsupported side bar position, scrollable = true, position=East at org.netbeans.modules.editor.NbEditorUI.processSideBars(NbEditorUI.java:308) at org.netbeans.modules.editor.NbEditorUI.createExtComponent(NbEditorUI.java:240) at org.netbeans.editor.EditorUI.getExtComponent(EditorUI.java:860) at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:178) Well, yes it is unsupported, because the supported scrollable locations (west and north) are directly supported by JScrollPane. JScrollPane does not support custom components in east and south locations (scrollbars are there). Extending the JScrollPane to support east and south locations is non-trivial, AFAIK. The best option to explore, I can currently imagine, is to subclass ScrollPaneLayout, rewrite it to support the two additional locations (subclass of JScrollPane may also be needed, but is not sufficient, I think). As always, a tested patch greatly increases probability of an enhancement to be implemented. I would love to see this implemented... it gives much more flexibility to presenting annotation. There is often loads of whitespace on the right margin that could be put to better use. I am sure that the feature would be used by many if implemented It looks like the desired functionality is implemented in these two source files (external library): http://www.java2s.com/Open-Source/Java-Document/Swing-Library/jide-common/com/jidesoft/swing/JideScrollPane.java.htm http://www.java2s.com/Open-Source/Java-Document/Swing-Library/jide-common/com/jidesoft/swing/JideScrollPaneLayout.java.htm This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |