create method for different multiname types

This commit is contained in:
honfika@gmail.com
2015-11-10 11:05:47 +01:00
parent f60e5c5f23
commit 7bdecd990a
16 changed files with 244 additions and 222 deletions

View File

@@ -787,7 +787,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
nskind = newTraitDialog.getNamespaceKind();
name = newTraitDialog.getTraitName();
isStatic = newTraitDialog.getStatic();
m = new Multiname(Multiname.QNAME, abc.constants.getStringId(name, true), abc.constants.getNamespaceId(nskind, "", 0, true), 0);
m = Multiname.createQName(false, abc.constants.getStringId(name, true), abc.constants.getNamespaceId(nskind, "", 0, true));
int mid = abc.constants.getMultinameId(m, false);
if (mid <= 0) {
break;