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 25126 - Abbreviations not memorized for XML Editor
Summary: Abbreviations not memorized for XML Editor
Status: CLOSED DUPLICATE of bug 24366
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: _ lkramolis
URL:
Keywords:
Depends on: 24366
Blocks:
  Show dependency tree
 
Reported: 2002-06-25 11:12 UTC by pgodeau
Modified: 2005-03-09 04:26 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 pgodeau 2002-06-25 11:12:19 UTC
I tried to reconfigure the abbreviation for "en"
in the XML editor, because this is a very common
word in French.
But each time I restart NB this abbreviation
is still here :-(
Apparently this bug is only for XML editor
(not Java).
Comment 1 _ pkuzel 2002-06-25 19:58:43 UTC
I cannot reproduce in NetBeans 3.4 beta 2.
Comment 2 _ pkuzel 2002-06-28 21:44:18 UTC
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).
Comment 3 Miloslav Metelka 2002-07-10 12:11:27 UTC
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?
Comment 4 _ lkramolis 2002-07-10 15:55:24 UTC
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.
Comment 5 Jan Lahoda 2002-07-10 16:06:06 UTC
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).
Comment 6 _ lkramolis 2002-07-17 14:18:38 UTC
Mato explained me that it is necessary to have both (java and xml)
versions of abbreviation.
Comment 7 _ lkramolis 2002-07-17 14:59:00 UTC
This will be fixed by issue 24366 integration.

*** This issue has been marked as a duplicate of 24366 ***
Comment 8 Martin Schovanek 2003-03-13 14:26:36 UTC
VERIFIED
Comment 9 Quality Engineering 2003-07-02 08:38:08 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.