public virtual void addExport(DefineTag def) { System.Object tempObject; tempObject = exports[def.name]; exports[def.name] = def; System.Object old = tempObject; if (old != null) { exportDefs.Remove(old); } exportDefs.Add(def); }
public virtual void addSymbolClass(System.String className, DefineTag symbol) { DefineTag tag = (DefineTag)symbolClass.class2tag[className]; // FIXME: error below should be possible... need to figure out why it is happening when running 'ant frameworks' //if (tag != null && ! tag.equals(symbol)) //{ // throw new IllegalStateException("Attempted to define SymbolClass for " + className + " as both " + // symbol + " and " + tag); //} this.symbolClass.class2tag[className] = symbol; }
public virtual void addExport(DefineTag def) { System.Object tempObject; tempObject = exports[def.name]; exports[def.name] = def; System.Object old = tempObject; if (old != null) { exportDefs.Remove(old); } exportDefs.Add(def); }
public virtual void addSymbolClass(System.String className, DefineTag symbol) { DefineTag tag = (DefineTag) symbolClass.class2tag[className]; // FIXME: error below should be possible... need to figure out why it is happening when running 'ant frameworks' //if (tag != null && ! tag.equals(symbol)) //{ // throw new IllegalStateException("Attempted to define SymbolClass for " + className + " as both " + // symbol + " and " + tag); //} this.symbolClass.class2tag[className] = symbol; }
/// <summary> Add an id to the dictionary of characters, tracking what the player /// would do anyway. The player will ignore the new definition if another /// one with the same ID already exists. /// /// </summary> /// <param name="id"> /// </param> /// <param name="tag"> /// </param> /// <throws> SAXParseException </throws> private void createCharacter(int id, DefineTag tag) { try { dict.add(id, tag); } catch (System.ArgumentException e) { // player will ignore dups, so print a warning //UPGRADE_TODO: Constructor 'org.xml.sax.SAXParseException.SAXParseException' was converted to 'System.Xml.XmlException' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_orgxmlsaxSAXParseExceptionSAXParseException_javalangString_orgxmlsaxLocator_javalangException'" //UPGRADE_TODO: Class 'org.xml.sax.SAXParseException' was converted to 'System.xml.XmlException' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073'" //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Throwable.getMessage' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'" error(new System.Xml.XmlException(e.Message, e)); } }