From: <no...@so...> - 2000-12-23 03:15:22
|
Bug #126696, was updated on 2000-Dec-22 19:15 Here is a current snapshot of the bug. Project: jEdit Category: editor core Status: Open Resolution: None Bug Group: normal bug Priority: 5 Submitted by: jgellene Assigned to : nobody Summary: ToolBarOptionPane.ToolBarAddDialog -- Choose icon button Details: See following post from jedit-users: FROM: sneakemail.comDATE: 12/22/2000 00:00:00SUBJECT: [ jEdit-users ] Toolbar Button with Icon Hi I tried to add a "Close Buffer" button to the toolbar. But when I tried to choose a custom icon (by selecting the "Load icon from file" radio button and clicking on the "No icon selected" button in "Utilities | Global Options | Toolbar | Add...". So what is the right procedure to add a button with custom icon to the toolbar? I'm sorry if this is was discussed before but I can't find the answer in the archive. Miles D. Leadlem --------------------------------------------------- Problem is in VFSBrowser constructor. which is passed null for View parameter, then calls view.getBuffer() around line 154. Replace the call and the next few lines with the following: String name = null; int index = -1; if(view != null) { name = view.getBuffer().getName(); index = name.lastIndexOf('.'); } For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=126696&group_id=588 |