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: | Abbreviations not memorized for XML Editor | ||
---|---|---|---|
Product: | xml | Reporter: | pgodeau <pgodeau> |
Component: | Code | Assignee: | _ lkramolis <lkramolis> |
Status: | CLOSED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows 3.1/NT | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 24366 | ||
Bug Blocks: |
Description
pgodeau
2002-06-25 11:12:19 UTC
I cannot reproduce in NetBeans 3.4 beta 2. You are right (event in 3.4), All default abbreviations are allways added again. Anyway I still hope that it is editor job to merge it properly (e.g. let removed abbrevs are mapped to itself). Are the default abbreviations for the XML Editor specified through the xml file? If you look into the editor module sources in the layer.xml file there is <folder name="x-java"> <file name="Settings.settings" url="JavaOptions.settings"/> <folder name="Defaults"> <file name="abbreviations.xml" url="XMLs/DefaultAbbrevs.xml"/> <file name="macros.xml" url="XMLs/DefaultMacros.xml"/> <file name="keybindings.xml" url="XMLs/DefaultKeyBindings.xml"/> </folder> for the java abbreviations (the "text" and "Editors" parent folders specification is ommited here). Could you please check that? I tried it and it looks that <Defaults> does not work for Java too. Try to change XMLs/DefaultAbbrevs.xml and you will not see any change. Default abbreviations are still used from org.netbeans.editor.ext.java.JavaSettingsDefaults::getJavaAbbrevMap(). But it works if the abbreviations.xml file is directly in x-java (not under Defaults) folder. Hi, just user's view: I changed cn->continue abbreviation in Java editor to cn1->continue1 and restarted IDE, and it works as expected (the cn is not an abbreviation and cn1 is). Mato explained me that it is necessary to have both (java and xml) versions of abbreviation. This will be fixed by issue 24366 integration. *** This issue has been marked as a duplicate of 24366 *** VERIFIED Resolved for 3.4.x or earlier, no new info since then -> closing. |