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 27852 - ExtEdSettings.getLibdir not very smart
Summary: ExtEdSettings.getLibdir not very smart
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: externaleditor (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ gordonp
URL:
Keywords: ARCH
Depends on: 28683
Blocks: 27151
  Show dependency tree
 
Reported: 2002-10-07 15:28 UTC by Jesse Glick
Modified: 2003-07-10 18:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-10-07 15:28:24 UTC
I installed externaleditor.nbm v. 1.0 from the
Alpha update center, and accepted the default
option to install it into the NB user directory.
Under External Editor Settings, however, the lib
dir showed as "cannot find...". Looking at
ExtEdSettings, findElispDir neglects to consider
netbeans.user and only checks netbeans.home.
netbeans.user should be tried first, followed by
netbeans.home if nothing is found there.

Also the 'libdir' property should be of type File,
not String: I tried to set the lib directory
manually but found that clicking on "..." gave me
a string entry box rather than the expected
filechooser. Check

http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/explorer/doc-files/api.html#core_editors_custom_parameters

for instructions on how to make the File property
editor in fact accept only directories with a
netbeans.el file beneath them, which would be nicest.
Comment 1 _ gordonp 2002-10-07 18:13:50 UTC
S1S Eval: Jesse's requests are reasonable.
Comment 2 Jan Chalupa 2002-10-27 17:44:05 UTC
[S1S-EVAL]
Comment 3 Jesse Glick 2002-11-11 22:28:33 UTC
Sorry, but this is actually important, please fix it. Also check
${netbeans.dirs}: use StringTokenizer with File.pathSeparator as the
delimiter and check all encountered directory names.
Comment 4 Jesse Glick 2002-11-12 18:06:39 UTC
Issue #28683 suggests a more general solution.
Comment 5 _ gordonp 2003-07-10 17:23:15 UTC
I fixed this some time ago to use InstalledFileLocator.
I just loaded nb3.5 and the externaleditor from
autoupdate to my userdir and verified the fix.