bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
boolean match(CharIndexed input, REMatch mymatch) { if (num >= mymatch.start.length) return false; if (num >= mymatch.end.length) return false; int b,e; b = mymatch.start[num]; e = mymatch.end[num]; if ((b==-1)||(e==-1)) return false; // this shouldn't happen, but... int origin = mymatch.index; for (int i=b; i<e; i++) { char c1 = input.charAt(mymatch.index+i-b); char c2 = input.charAt(i); if (c1 != c2) { if (insens) { if (c1 != Character.toLowerCase(c2) && c1 != Character.toUpperCase(c2)) { return false; } } else { return false; } } } mymatch.index += e-b; boolean result = next(input, mymatch); if (result) mymatch.empty = (mymatch.index == origin); return result; }
|
boolean match(CharIndexed input, REMatch mymatch) { if (num >= mymatch.start.length) return false; if (num >= mymatch.end.length) return false; int b,e; b = mymatch.start[num]; e = mymatch.end[num]; if ((b==-1)||(e==-1)) return false; // this shouldn't happen, but... int origin = mymatch.index; for (int i=b; i<e; i++) { char c1 = input.charAt(mymatch.index+i-b); char c2 = input.charAt(i); if (c1 != c2) { if (insens) { if (c1 != Character.toLowerCase(c2) && c1 != Character.toUpperCase(c2)) { return false; } } else { return false; } } } mymatch.index += e-b; boolean result = next(input, mymatch); if (result) mymatch.empty = (mymatch.index == origin); return result; }
| 9,092
|
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); String release = "0"; String version = ".5"; String subVer= ".2b"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestFocusEnabled(false); sessionPane.setDoubleBuffered(true); this.getContentPane().add(sessionPane, BorderLayout.CENTER); sessionPane.addChangeListener(this); centerFrame(); }
|
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); String release = "0"; String version = ".5"; String subVer= ".3 RC1"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestFocusEnabled(false); sessionPane.setDoubleBuffered(true); this.getContentPane().add(sessionPane, BorderLayout.CENTER); sessionPane.addChangeListener(this); centerFrame(); }
| 9,094
|
private Currency () { }
|
private Currency() { }
| 9,096
|
public String getCurrencyCode () { return currencyCode; }
|
public String getCurrencyCode() { return currencyCode; }
| 9,097
|
public int getDefaultFractionDigits () { NumberFormat currency = NumberFormat.getCurrencyInstance (locale); return currency.getMaximumFractionDigits(); }
|
public int getDefaultFractionDigits() { NumberFormat currency = NumberFormat.getCurrencyInstance (locale); return currency.getMaximumFractionDigits(); }
| 9,098
|
public int getDefaultFractionDigits () { NumberFormat currency = NumberFormat.getCurrencyInstance (locale); return currency.getMaximumFractionDigits(); }
|
public int getDefaultFractionDigits () { NumberFormat currency = NumberFormat.getCurrencyInstance (locale); return currency.getMaximumFractionDigits(); }
| 9,099
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
|
public static Currency getInstance(Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
| 9,100
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
| 9,101
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency(locale); /* * If the currency code is null, then creation failed * and we return null. */ code = newCurrency.getCurrencyCode(); if (code == null) { return null; } else { /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
| 9,102
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ cache.put(locale, newCurrency); } /* Return the instance */ return newCurrency; }
|
public static Currency getInstance (Locale locale) { /** * The new instance must be the only available instance * for the currency it supports. We ensure this happens, * while maintaining a suitable performance level, by * creating the appropriate object on the first call to * this method, and returning the cached instance on * later calls. */ Currency newCurrency; /* Attempt to get the currency from the cache */ newCurrency = (Currency) cache.get(locale); if (newCurrency == null) { /* Create the currency for this locale */ newCurrency = new Currency (locale); /* Cache it */ countryMap.put(country, code); cache.put(code, newCurrency); } } else { newCurrency = (Currency) cache.get(code); } /* Return the instance */ return newCurrency; }
| 9,103
|
public String getSymbol() { try { /* What does this return if there is no mapping? */ return res.getString ("currencySymbol"); } catch (Exception _) { return null; } }
|
public String getSymbol() { try { /* What does this return if there is no mapping? */ return res.getString ("currencySymbol"); } catch (Exception _) { return null; } }
| 9,104
|
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // Translate tag.. return if succesful. if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; // Just add the attributes in <code>a</code>. if (a != null) charAttr.addAttribute(t, a.copyAttributes()); }
|
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // Translate tag.. return if succesful. if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; // Just add the attributes in <code>a</code>. if (a != null) charAttr.addAttribute(t, a.copyAttributes()); }
| 9,105
|
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // Translate tag.. return if succesful. if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; // Just add the attributes in <code>a</code>. if (a != null) charAttr.addAttribute(t, a.copyAttributes()); }
|
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // Translate tag.. return if succesful. if(CharacterAttributeTranslator.translateTag(charAttr, t, a)) return; // Just add the attributes in <code>a</code>. charAttr.addAttribute(t, a.copyAttributes()); }
| 9,106
|
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); // TODO: Figure out why we must always insert this single character // (otherwise the element does not appear). Either fix or add explaining // comment or at least report a normal bug. DefaultStyledDocument.ElementSpec spec; spec = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.ContentType, new char[] {' '}, 0, 1 ); parseBuffer.add(spec); }
|
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); // TODO: Figure out why we must always insert this single character // (otherwise the element does not appear). Either fix or add explaining // comment or at least report a normal bug. DefaultStyledDocument.ElementSpec spec; spec = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.ContentType, new char[] {' '}, 0, 1 ); parseBuffer.add(spec); }
| 9,107
|
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); // TODO: Figure out why we must always insert this single character // (otherwise the element does not appear). Either fix or add explaining // comment or at least report a normal bug. DefaultStyledDocument.ElementSpec spec; spec = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.ContentType, new char[] {' '}, 0, 1 ); parseBuffer.add(spec); }
|
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); // TODO: Figure out why we must always insert this single character // (otherwise the element does not appear). Either fix or add explaining // comment or at least report a normal bug. DefaultStyledDocument.ElementSpec spec; spec = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.ContentType, new char[] {' ', ' '}, 0, 2 ); parseBuffer.add(spec); }
| 9,108
|
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get(parseBuffer.size() - 1); if (prev.getType() == DefaultStyledDocument.ElementSpec.StartTagType) { AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet attributes = ctx.getEmptySet(); attributes = ctx.addAttribute(attributes, StyleConstants.NameAttribute, HTML.Tag.CONTENT); element = new DefaultStyledDocument.ElementSpec(attributes, DefaultStyledDocument.ElementSpec.ContentType, new char[0], 0, 0); parseBuffer.add(element); } // If the previous tag is content and the parent is p-implied, then // we must also close the p-implied. else if (parseStack.peek() == HTML.Tag.IMPLIED) { element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); if (parseStack.size() > 0) parseStack.pop(); } element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); if (parseStack.size() > 0) parseStack.pop(); }
|
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get(parseBuffer.size() - 1); if (prev.getType() == DefaultStyledDocument.ElementSpec.StartTagType) { AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet attributes = ctx.getEmptySet(); attributes = ctx.addAttribute(attributes, StyleConstants.NameAttribute, HTML.Tag.CONTENT); element = new DefaultStyledDocument.ElementSpec(attributes, DefaultStyledDocument.ElementSpec.ContentType, new char[0], 0, 0); parseBuffer.add(element); } // If the previous tag is content and the parent is p-implied, then // we must also close the p-implied. else if (parseStack.peek() == HTML.Tag.IMPLIED) { element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); if (parseStack.size() > 0) parseStack.pop(); } element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); if (parseStack.size() > 0) parseStack.pop(); }
| 9,109
|
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is content and the parent is p-implied, then // we must also close the p-implied. if (parseStack.size() > 0 && parseStack.peek() == HTML.Tag.IMPLIED) { element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); parseStack.pop(); } parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffer(); }
|
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is content and the parent is p-implied, then // we must also close the p-implied. if (parseStack.size() > 0 && parseStack.peek() == HTML.Tag.IMPLIED) { element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); parseStack.pop(); } parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(copy, DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffer(); }
| 9,110
|
public void handleComment(char[] data, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, new SimpleAttributeSet()); action.end (HTML.Tag.COMMENT); } }
|
public void handleComment(char[] data, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, new SimpleAttributeSet()); action.end (HTML.Tag.COMMENT); } }
| 9,111
|
public void handleComment(char[] data, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, new SimpleAttributeSet()); action.end (HTML.Tag.COMMENT); } }
|
public void handleComment(char[] data, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, new SimpleAttributeSet()); action.end (HTML.Tag.COMMENT); } }
| 9,112
|
public void handleEndOfLineString(String eol) throws NotImplementedException { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); }
|
public void handleEndOfLineString(String eol) { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); }
| 9,113
|
public void handleEndTag(HTML.Tag t, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; // If this is the </html> tag we need to stop calling the Actions if (t == HTML.Tag.HTML) endHTMLEncountered = true; TagAction action = (TagAction) tagToAction.get(t); if (action != null) action.end(t); }
|
public void handleEndTag(HTML.Tag t, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; // If this is the </html> tag we need to stop calling the Actions if (t == HTML.Tag.HTML) endHTMLEncountered = true; TagAction action = (TagAction) tagToAction.get(t); if (action != null) action.end(t); }
| 9,114
|
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get (t); if (action != null) { action.start(t, a); action.end(t); } }
|
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get (t); if (action != null) { action.start(t, a); action.end(t); } }
| 9,116
|
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get (t); if (action != null) { action.start(t, a); action.end(t); } }
|
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; if (shouldInsert()) { TagAction action = (TagAction) tagToAction.get(t); if (action != null) { action.start(t, a); action.end(t); } }
| 9,117
|
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(t); if (action != null) action.start(t, a); }
|
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos) { // Don't call the Action if we've already seen </html>. if (endHTMLEncountered) return; TagAction action = (TagAction) tagToAction.get(t); if (action != null) action.start(t, a); }
| 9,119
|
void initTags() { tagToAction = new HashMap(72); CharacterAction characterAction = new CharacterAction(); HiddenAction hiddenAction = new HiddenAction(); AreaAction areaAction = new AreaAction(); BaseAction baseAction = new BaseAction(); BlockAction blockAction = new BlockAction(); SpecialAction specialAction = new SpecialAction(); ParagraphAction paragraphAction = new ParagraphAction(); HeadAction headAction = new HeadAction(); FormAction formAction = new FormAction(); IsindexAction isindexAction = new IsindexAction(); LinkAction linkAction = new LinkAction(); MapAction mapAction = new MapAction(); PreAction preAction = new PreAction(); MetaAction metaAction = new MetaAction(); StyleAction styleAction = new StyleAction(); TitleAction titleAction = new TitleAction(); tagToAction.put(HTML.Tag.A, characterAction); tagToAction.put(HTML.Tag.ADDRESS, characterAction); tagToAction.put(HTML.Tag.APPLET, hiddenAction); tagToAction.put(HTML.Tag.AREA, areaAction); tagToAction.put(HTML.Tag.B, characterAction); tagToAction.put(HTML.Tag.BASE, baseAction); tagToAction.put(HTML.Tag.BASEFONT, characterAction); tagToAction.put(HTML.Tag.BIG, characterAction); tagToAction.put(HTML.Tag.BLOCKQUOTE, blockAction); tagToAction.put(HTML.Tag.BODY, blockAction); tagToAction.put(HTML.Tag.BR, specialAction); tagToAction.put(HTML.Tag.CAPTION, blockAction); tagToAction.put(HTML.Tag.CENTER, blockAction); tagToAction.put(HTML.Tag.CITE, characterAction); tagToAction.put(HTML.Tag.CODE, characterAction); tagToAction.put(HTML.Tag.DD, blockAction); tagToAction.put(HTML.Tag.DFN, characterAction); tagToAction.put(HTML.Tag.DIR, blockAction); tagToAction.put(HTML.Tag.DIV, blockAction); tagToAction.put(HTML.Tag.DL, blockAction); tagToAction.put(HTML.Tag.DT, paragraphAction); tagToAction.put(HTML.Tag.EM, characterAction); tagToAction.put(HTML.Tag.FONT, characterAction); tagToAction.put(HTML.Tag.FORM, blockAction); tagToAction.put(HTML.Tag.FRAME, specialAction); tagToAction.put(HTML.Tag.FRAMESET, blockAction); tagToAction.put(HTML.Tag.H1, paragraphAction); tagToAction.put(HTML.Tag.H2, paragraphAction); tagToAction.put(HTML.Tag.H3, paragraphAction); tagToAction.put(HTML.Tag.H4, paragraphAction); tagToAction.put(HTML.Tag.H5, paragraphAction); tagToAction.put(HTML.Tag.H6, paragraphAction); tagToAction.put(HTML.Tag.HEAD, headAction); tagToAction.put(HTML.Tag.HR, specialAction); tagToAction.put(HTML.Tag.HTML, blockAction); tagToAction.put(HTML.Tag.I, characterAction); tagToAction.put(HTML.Tag.IMG, specialAction); tagToAction.put(HTML.Tag.INPUT, formAction); tagToAction.put(HTML.Tag.ISINDEX, isindexAction); tagToAction.put(HTML.Tag.KBD, characterAction); tagToAction.put(HTML.Tag.LI, blockAction); tagToAction.put(HTML.Tag.LINK, linkAction); tagToAction.put(HTML.Tag.MAP, mapAction); tagToAction.put(HTML.Tag.MENU, blockAction); tagToAction.put(HTML.Tag.META, metaAction); tagToAction.put(HTML.Tag.NOFRAMES, blockAction); tagToAction.put(HTML.Tag.OBJECT, specialAction); tagToAction.put(HTML.Tag.OL, blockAction); tagToAction.put(HTML.Tag.OPTION, formAction); tagToAction.put(HTML.Tag.P, paragraphAction); tagToAction.put(HTML.Tag.PARAM, hiddenAction); tagToAction.put(HTML.Tag.PRE, preAction); tagToAction.put(HTML.Tag.SAMP, characterAction); tagToAction.put(HTML.Tag.SCRIPT, hiddenAction); tagToAction.put(HTML.Tag.SELECT, formAction); tagToAction.put(HTML.Tag.SMALL, characterAction); tagToAction.put(HTML.Tag.STRIKE, characterAction); tagToAction.put(HTML.Tag.S, characterAction); tagToAction.put(HTML.Tag.STRONG, characterAction); tagToAction.put(HTML.Tag.STYLE, styleAction); tagToAction.put(HTML.Tag.SUB, characterAction); tagToAction.put(HTML.Tag.SUP, characterAction); tagToAction.put(HTML.Tag.TABLE, blockAction); tagToAction.put(HTML.Tag.TD, blockAction); tagToAction.put(HTML.Tag.TEXTAREA, formAction); tagToAction.put(HTML.Tag.TH, blockAction); tagToAction.put(HTML.Tag.TITLE, titleAction); tagToAction.put(HTML.Tag.TR, blockAction); tagToAction.put(HTML.Tag.TT, characterAction); tagToAction.put(HTML.Tag.U, characterAction); tagToAction.put(HTML.Tag.UL, blockAction); tagToAction.put(HTML.Tag.VAR, characterAction); }
|
ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); voidConvertAction convertAction = new ConvertAction(); initTags()ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); {ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); HashMap(72);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); CharacterActionConvertAction convertAction = new ConvertAction(); characterActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); CharacterAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); HiddenActionConvertAction convertAction = new ConvertAction(); hiddenActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); HiddenAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); AreaActionConvertAction convertAction = new ConvertAction(); areaActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); AreaAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); BaseActionConvertAction convertAction = new ConvertAction(); baseActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); BaseAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); BlockActionConvertAction convertAction = new ConvertAction(); blockActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); BlockAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); SpecialActionConvertAction convertAction = new ConvertAction(); specialActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); SpecialAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ParagraphActionConvertAction convertAction = new ConvertAction(); paragraphActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); ParagraphAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); HeadActionConvertAction convertAction = new ConvertAction(); headActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); HeadAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); FormActionConvertAction convertAction = new ConvertAction(); formActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); FormAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); IsindexActionConvertAction convertAction = new ConvertAction(); isindexActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); IsindexAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); LinkActionConvertAction convertAction = new ConvertAction(); linkActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); LinkAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); MapActionConvertAction convertAction = new ConvertAction(); mapActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); MapAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); PreActionConvertAction convertAction = new ConvertAction(); preActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); PreAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); MetaActionConvertAction convertAction = new ConvertAction(); metaActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); MetaAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); StyleActionConvertAction convertAction = new ConvertAction(); styleActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); StyleAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); TitleActionConvertAction convertAction = new ConvertAction(); titleActionConvertAction convertAction = new ConvertAction(); =ConvertAction convertAction = new ConvertAction(); newConvertAction convertAction = new ConvertAction(); TitleAction();ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.A,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.ADDRESS,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.APPLET,ConvertAction convertAction = new ConvertAction(); hiddenAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.AREA,ConvertAction convertAction = new ConvertAction(); areaAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.B,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BASE,ConvertAction convertAction = new ConvertAction(); baseAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BASEFONT,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BIG,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BLOCKQUOTE,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BODY,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.BR,ConvertAction convertAction = new ConvertAction(); specialAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.CAPTION,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.CENTER,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.CITE,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.CODE,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DD,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DFN,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DIR,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DIV,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DL,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.DT,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.EM,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.FONT,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.FORM,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.FRAME,ConvertAction convertAction = new ConvertAction(); specialAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.FRAMESET,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H1,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H2,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H3,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H4,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H5,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.H6,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.HEAD,ConvertAction convertAction = new ConvertAction(); headAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.HR,ConvertAction convertAction = new ConvertAction(); specialAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.HTML,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.I,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.IMG,ConvertAction convertAction = new ConvertAction(); specialAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.INPUT,ConvertAction convertAction = new ConvertAction(); formAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.ISINDEX,ConvertAction convertAction = new ConvertAction(); isindexAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.KBD,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.LI,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.LINK,ConvertAction convertAction = new ConvertAction(); linkAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.MAP,ConvertAction convertAction = new ConvertAction(); mapAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.MENU,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.META,ConvertAction convertAction = new ConvertAction(); metaAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.NOFRAMES,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.OBJECT,ConvertAction convertAction = new ConvertAction(); specialAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.OL,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.OPTION,ConvertAction convertAction = new ConvertAction(); formAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.P,ConvertAction convertAction = new ConvertAction(); paragraphAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.PARAM,ConvertAction convertAction = new ConvertAction(); hiddenAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.PRE,ConvertAction convertAction = new ConvertAction(); preAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SAMP,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SCRIPT,ConvertAction convertAction = new ConvertAction(); hiddenAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SELECT,ConvertAction convertAction = new ConvertAction(); formAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SMALL,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.STRIKE,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.S,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.STRONG,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.STYLE,ConvertAction convertAction = new ConvertAction(); styleAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SUB,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.SUP,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TABLE,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TD,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TEXTAREA,ConvertAction convertAction = new ConvertAction(); formAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TH,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TITLE,ConvertAction convertAction = new ConvertAction(); titleAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TR,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.TT,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.U,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.UL,ConvertAction convertAction = new ConvertAction(); blockAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); tagToAction.put(HTML.Tag.VAR,ConvertAction convertAction = new ConvertAction(); characterAction);ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); ConvertAction convertAction = new ConvertAction(); }
| 9,121
|
void initTags() { tagToAction = new HashMap(72); CharacterAction characterAction = new CharacterAction(); HiddenAction hiddenAction = new HiddenAction(); AreaAction areaAction = new AreaAction(); BaseAction baseAction = new BaseAction(); BlockAction blockAction = new BlockAction(); SpecialAction specialAction = new SpecialAction(); ParagraphAction paragraphAction = new ParagraphAction(); HeadAction headAction = new HeadAction(); FormAction formAction = new FormAction(); IsindexAction isindexAction = new IsindexAction(); LinkAction linkAction = new LinkAction(); MapAction mapAction = new MapAction(); PreAction preAction = new PreAction(); MetaAction metaAction = new MetaAction(); StyleAction styleAction = new StyleAction(); TitleAction titleAction = new TitleAction(); tagToAction.put(HTML.Tag.A, characterAction); tagToAction.put(HTML.Tag.ADDRESS, characterAction); tagToAction.put(HTML.Tag.APPLET, hiddenAction); tagToAction.put(HTML.Tag.AREA, areaAction); tagToAction.put(HTML.Tag.B, characterAction); tagToAction.put(HTML.Tag.BASE, baseAction); tagToAction.put(HTML.Tag.BASEFONT, characterAction); tagToAction.put(HTML.Tag.BIG, characterAction); tagToAction.put(HTML.Tag.BLOCKQUOTE, blockAction); tagToAction.put(HTML.Tag.BODY, blockAction); tagToAction.put(HTML.Tag.BR, specialAction); tagToAction.put(HTML.Tag.CAPTION, blockAction); tagToAction.put(HTML.Tag.CENTER, blockAction); tagToAction.put(HTML.Tag.CITE, characterAction); tagToAction.put(HTML.Tag.CODE, characterAction); tagToAction.put(HTML.Tag.DD, blockAction); tagToAction.put(HTML.Tag.DFN, characterAction); tagToAction.put(HTML.Tag.DIR, blockAction); tagToAction.put(HTML.Tag.DIV, blockAction); tagToAction.put(HTML.Tag.DL, blockAction); tagToAction.put(HTML.Tag.DT, paragraphAction); tagToAction.put(HTML.Tag.EM, characterAction); tagToAction.put(HTML.Tag.FONT, characterAction); tagToAction.put(HTML.Tag.FORM, blockAction); tagToAction.put(HTML.Tag.FRAME, specialAction); tagToAction.put(HTML.Tag.FRAMESET, blockAction); tagToAction.put(HTML.Tag.H1, paragraphAction); tagToAction.put(HTML.Tag.H2, paragraphAction); tagToAction.put(HTML.Tag.H3, paragraphAction); tagToAction.put(HTML.Tag.H4, paragraphAction); tagToAction.put(HTML.Tag.H5, paragraphAction); tagToAction.put(HTML.Tag.H6, paragraphAction); tagToAction.put(HTML.Tag.HEAD, headAction); tagToAction.put(HTML.Tag.HR, specialAction); tagToAction.put(HTML.Tag.HTML, blockAction); tagToAction.put(HTML.Tag.I, characterAction); tagToAction.put(HTML.Tag.IMG, specialAction); tagToAction.put(HTML.Tag.INPUT, formAction); tagToAction.put(HTML.Tag.ISINDEX, isindexAction); tagToAction.put(HTML.Tag.KBD, characterAction); tagToAction.put(HTML.Tag.LI, blockAction); tagToAction.put(HTML.Tag.LINK, linkAction); tagToAction.put(HTML.Tag.MAP, mapAction); tagToAction.put(HTML.Tag.MENU, blockAction); tagToAction.put(HTML.Tag.META, metaAction); tagToAction.put(HTML.Tag.NOFRAMES, blockAction); tagToAction.put(HTML.Tag.OBJECT, specialAction); tagToAction.put(HTML.Tag.OL, blockAction); tagToAction.put(HTML.Tag.OPTION, formAction); tagToAction.put(HTML.Tag.P, paragraphAction); tagToAction.put(HTML.Tag.PARAM, hiddenAction); tagToAction.put(HTML.Tag.PRE, preAction); tagToAction.put(HTML.Tag.SAMP, characterAction); tagToAction.put(HTML.Tag.SCRIPT, hiddenAction); tagToAction.put(HTML.Tag.SELECT, formAction); tagToAction.put(HTML.Tag.SMALL, characterAction); tagToAction.put(HTML.Tag.STRIKE, characterAction); tagToAction.put(HTML.Tag.S, characterAction); tagToAction.put(HTML.Tag.STRONG, characterAction); tagToAction.put(HTML.Tag.STYLE, styleAction); tagToAction.put(HTML.Tag.SUB, characterAction); tagToAction.put(HTML.Tag.SUP, characterAction); tagToAction.put(HTML.Tag.TABLE, blockAction); tagToAction.put(HTML.Tag.TD, blockAction); tagToAction.put(HTML.Tag.TEXTAREA, formAction); tagToAction.put(HTML.Tag.TH, blockAction); tagToAction.put(HTML.Tag.TITLE, titleAction); tagToAction.put(HTML.Tag.TR, blockAction); tagToAction.put(HTML.Tag.TT, characterAction); tagToAction.put(HTML.Tag.U, characterAction); tagToAction.put(HTML.Tag.UL, blockAction); tagToAction.put(HTML.Tag.VAR, characterAction); }
|
void initTags() { tagToAction = new HashMap(72); CharacterAction characterAction = new CharacterAction(); HiddenAction hiddenAction = new HiddenAction(); AreaAction areaAction = new AreaAction(); BaseAction baseAction = new BaseAction(); BlockAction blockAction = new BlockAction(); SpecialAction specialAction = new SpecialAction(); ParagraphAction paragraphAction = new ParagraphAction(); HeadAction headAction = new HeadAction(); FormAction formAction = new FormAction(); IsindexAction isindexAction = new IsindexAction(); LinkAction linkAction = new LinkAction(); MapAction mapAction = new MapAction(); PreAction preAction = new PreAction(); MetaAction metaAction = new MetaAction(); StyleAction styleAction = new StyleAction(); TitleAction titleAction = new TitleAction(); tagToAction.put(HTML.Tag.A, characterAction); tagToAction.put(HTML.Tag.ADDRESS, characterAction); tagToAction.put(HTML.Tag.APPLET, hiddenAction); tagToAction.put(HTML.Tag.AREA, areaAction); tagToAction.put(HTML.Tag.B, characterAction); tagToAction.put(HTML.Tag.BASE, baseAction); tagToAction.put(HTML.Tag.BASEFONT, characterAction); tagToAction.put(HTML.Tag.BIG, characterAction); tagToAction.put(HTML.Tag.BLOCKQUOTE, blockAction); tagToAction.put(HTML.Tag.BODY, blockAction); tagToAction.put(HTML.Tag.BR, specialAction); tagToAction.put(HTML.Tag.CAPTION, blockAction); tagToAction.put(HTML.Tag.CENTER, blockAction); tagToAction.put(HTML.Tag.CITE, characterAction); tagToAction.put(HTML.Tag.CODE, characterAction); tagToAction.put(HTML.Tag.DD, blockAction); tagToAction.put(HTML.Tag.DFN, characterAction); tagToAction.put(HTML.Tag.DIR, blockAction); tagToAction.put(HTML.Tag.DIV, blockAction); tagToAction.put(HTML.Tag.DL, blockAction); tagToAction.put(HTML.Tag.DT, paragraphAction); tagToAction.put(HTML.Tag.EM, characterAction); tagToAction.put(HTML.Tag.FONT, convertAction); tagToAction.put(HTML.Tag.FORM, blockAction); tagToAction.put(HTML.Tag.FRAME, specialAction); tagToAction.put(HTML.Tag.FRAMESET, blockAction); tagToAction.put(HTML.Tag.H1, paragraphAction); tagToAction.put(HTML.Tag.H2, paragraphAction); tagToAction.put(HTML.Tag.H3, paragraphAction); tagToAction.put(HTML.Tag.H4, paragraphAction); tagToAction.put(HTML.Tag.H5, paragraphAction); tagToAction.put(HTML.Tag.H6, paragraphAction); tagToAction.put(HTML.Tag.HEAD, headAction); tagToAction.put(HTML.Tag.HR, specialAction); tagToAction.put(HTML.Tag.HTML, blockAction); tagToAction.put(HTML.Tag.I, characterAction); tagToAction.put(HTML.Tag.IMG, specialAction); tagToAction.put(HTML.Tag.INPUT, formAction); tagToAction.put(HTML.Tag.ISINDEX, isindexAction); tagToAction.put(HTML.Tag.KBD, characterAction); tagToAction.put(HTML.Tag.LI, blockAction); tagToAction.put(HTML.Tag.LINK, linkAction); tagToAction.put(HTML.Tag.MAP, mapAction); tagToAction.put(HTML.Tag.MENU, blockAction); tagToAction.put(HTML.Tag.META, metaAction); tagToAction.put(HTML.Tag.NOFRAMES, blockAction); tagToAction.put(HTML.Tag.OBJECT, specialAction); tagToAction.put(HTML.Tag.OL, blockAction); tagToAction.put(HTML.Tag.OPTION, formAction); tagToAction.put(HTML.Tag.P, paragraphAction); tagToAction.put(HTML.Tag.PARAM, hiddenAction); tagToAction.put(HTML.Tag.PRE, preAction); tagToAction.put(HTML.Tag.SAMP, characterAction); tagToAction.put(HTML.Tag.SCRIPT, hiddenAction); tagToAction.put(HTML.Tag.SELECT, formAction); tagToAction.put(HTML.Tag.SMALL, characterAction); tagToAction.put(HTML.Tag.STRIKE, characterAction); tagToAction.put(HTML.Tag.S, characterAction); tagToAction.put(HTML.Tag.STRONG, characterAction); tagToAction.put(HTML.Tag.STYLE, styleAction); tagToAction.put(HTML.Tag.SUB, characterAction); tagToAction.put(HTML.Tag.SUP, characterAction); tagToAction.put(HTML.Tag.TABLE, blockAction); tagToAction.put(HTML.Tag.TD, blockAction); tagToAction.put(HTML.Tag.TEXTAREA, formAction); tagToAction.put(HTML.Tag.TH, blockAction); tagToAction.put(HTML.Tag.TITLE, titleAction); tagToAction.put(HTML.Tag.TR, blockAction); tagToAction.put(HTML.Tag.TT, characterAction); tagToAction.put(HTML.Tag.U, characterAction); tagToAction.put(HTML.Tag.UL, blockAction); tagToAction.put(HTML.Tag.VAR, characterAction); }
| 9,122
|
public HTMLDocument() { this(null); }
|
public HTMLDocument() { this(new GapContent(BUFFER_SIZE_DEFAULT), new StyleSheet()); }
| 9,123
|
public StyleSheet getStyleSheet() { return styleSheet; }
|
public StyleSheet getStyleSheet() { return (StyleSheet) getAttributeContext(); }
| 9,124
|
public void insertAfterEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterEnd not implemented"); }
|
public void insertAfterEnd(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterEnd not implemented"); }
| 9,125
|
public void insertAfterEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterEnd not implemented"); }
|
public void insertAfterEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterEnd not implemented"); }
| 9,126
|
public void insertAfterStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterStart not implemented"); }
|
public void insertAfterStart(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterStart not implemented"); }
| 9,127
|
public void insertAfterStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterStart not implemented"); }
|
public void insertAfterStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterStart not implemented"); }
| 9,128
|
public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeEnd not implemented"); }
|
public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeEnd not implemented"); }
| 9,129
|
public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeEnd not implemented"); }
|
public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeEnd not implemented"); }
| 9,130
|
public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not implemented"); }
|
public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not implemented"); }
| 9,131
|
public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not implemented"); }
|
public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not implemented"); }
| 9,132
|
public void setBase(URL u) { baseURL = u; styleSheet.setBase(u); }
|
public void setBase(URL u) { baseURL = u; getStyleSheet().setBase(u); }
| 9,133
|
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setInnerHTML not implemented"); }
|
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setInnerHTML not implemented"); }
| 9,134
|
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setInnerHTML not implemented"); }
|
public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setInnerHTML not implemented"); }
| 9,135
|
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setOuterHTML not implemented"); }
|
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setOuterHTML not implemented"); }
| 9,136
|
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setOuterHTML not implemented"); }
|
public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setOuterHTML not implemented"); }
| 9,137
|
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
|
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
| 9,142
|
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
|
getFrames(){ //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);}
| 9,143
|
static public void main(String[] args) { if (isSpecified("-MDI",args)) useMDIFrames = true; if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances if (isSpecified("-d",args)) { strapper = new BootStrapper(); strapper.start(); } } else { System.exit(0); } } My5250 m = new My5250(); if (strapper != null) strapper.addBootListener(m); if (args.length > 0) { if (isSpecified("-width",args) || isSpecified("-height",args)) { int width = m.frame1.getWidth(); int height = m.frame1.getHeight(); if (isSpecified("-width",args)) { width = Integer.parseInt(m.getParm("-width",args)); } if (isSpecified("-height",args)) { height = Integer.parseInt(m.getParm("-height",args)); } m.frame1.setSize(width,height); m.frame1.centerFrame(); } /** * @todo this crap needs to be rewritten it is a mess */ if (args[0].startsWith("-")) { // check if a session parameter is specified on the command line if (isSpecified("-s",args)) { String sd = getParm("-s",args); if (sessions.containsKey(sd)) { sessions.setProperty("emul.default",sd); } else { args = null; } } // check if a locale parameter is specified on the command line if (isSpecified("-L",args)) { Locale.setDefault(parseLocal(getParm("-L",args))); LangTool.init(); if (args[0].startsWith("-")) { m.sessionArgs = null; } else { m.frame1.setVisible(true); LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); if (isSpecified("-s",args)) m.sessionArgs = args; else m.sessionArgs = null; } } else { LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); m.sessionArgs = null; } if (m.sessionArgs != null) { // BEGIN // 2001/09/19 natural computing MR Vector os400_sessions = new Vector(); Vector session_params = new Vector(); for (int x = 0; x < args.length; x++) { if (args[x].equals("-s")) { x++; if (args[x] != null && sessions.containsKey(args[x])) { os400_sessions.addElement(args[x]); }else{ x--; session_params.addElement(args[x]); } }else{ session_params.addElement(args[x]); } } for (int x = 0; x < session_params.size(); x++) m.sessionArgs[x] = session_params.elementAt(x).toString(); m.startNewSession(); for (int x = 1; x < os400_sessions.size(); x++ ) { String sel = os400_sessions.elementAt(x).toString(); if (!m.frame1.isVisible()) m.frame1.setVisible(true); m.sessionArgs = new String[NUM_PARMS]; m.parseArgs(sessions.getProperty(sel),m.sessionArgs); m.newSession(sel,m.sessionArgs); } // 2001/09/19 natural computing MR // END } else { m.startNewSession(); } }
|
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances if (isSpecified("-d",args)) { strapper = new BootStrapper(); strapper.start(); } } else { System.exit(0); } } My5250 m = new My5250(); if (strapper != null) strapper.addBootListener(m); if (args.length > 0) { if (isSpecified("-width",args) || isSpecified("-height",args)) { int width = m.frame1.getWidth(); int height = m.frame1.getHeight(); if (isSpecified("-width",args)) { width = Integer.parseInt(m.getParm("-width",args)); } if (isSpecified("-height",args)) { height = Integer.parseInt(m.getParm("-height",args)); } m.frame1.setSize(width,height); m.frame1.centerFrame(); } /** * @todo this crap needs to be rewritten it is a mess */ if (args[0].startsWith("-")) { // check if a session parameter is specified on the command line if (isSpecified("-s",args)) { String sd = getParm("-s",args); if (sessions.containsKey(sd)) { sessions.setProperty("emul.default",sd); } else { args = null; } } // check if a locale parameter is specified on the command line if (isSpecified("-L",args)) { Locale.setDefault(parseLocal(getParm("-L",args))); LangTool.init(); if (args[0].startsWith("-")) { m.sessionArgs = null; } else { m.frame1.setVisible(true); LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); if (isSpecified("-s",args)) m.sessionArgs = args; else m.sessionArgs = null; } } else { LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); m.sessionArgs = null; } if (m.sessionArgs != null) { // BEGIN // 2001/09/19 natural computing MR Vector os400_sessions = new Vector(); Vector session_params = new Vector(); for (int x = 0; x < args.length; x++) { if (args[x].equals("-s")) { x++; if (args[x] != null && sessions.containsKey(args[x])) { os400_sessions.addElement(args[x]); }else{ x--; session_params.addElement(args[x]); } }else{ session_params.addElement(args[x]); } } for (int x = 0; x < session_params.size(); x++) m.sessionArgs[x] = session_params.elementAt(x).toString(); m.startNewSession(); for (int x = 1; x < os400_sessions.size(); x++ ) { String sel = os400_sessions.elementAt(x).toString(); if (!m.frame1.isVisible()) m.frame1.setVisible(true); m.sessionArgs = new String[NUM_PARMS]; m.parseArgs(sessions.getProperty(sel),m.sessionArgs); m.newSession(sel,m.sessionArgs); } // 2001/09/19 natural computing MR // END } else { m.startNewSession(); } }
| 9,146
|
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { // Try to find a JDesktopPane. JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); // If we don't have a JDesktopPane, we try to find a JLayeredPane. if (toUse == null) toUse = JLayeredPane.getLayeredPaneAbove(parentComponent); // If this still fails, we throw a RuntimeException. if (toUse == null) throw new RuntimeException ("parentComponent does not have a valid parent"); JInternalFrame frame = new JInternalFrame(title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; frame.setContentPane(this); frame.setClosable(true); toUse.add(frame); frame.setLayer(JLayeredPane.MODAL_LAYER); frame.pack(); frame.setVisible(true); return frame; }
|
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { // Try to find a JDesktopPane. JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); // If we don't have a JDesktopPane, we try to find a JLayeredPane. if (toUse == null) toUse = JLayeredPane.getLayeredPaneAbove(parentComponent); // If this still fails, we throw a RuntimeException. if (toUse == null) throw new RuntimeException ("parentComponent does not have a valid parent"); JInternalFrame frame = new JInternalFrame(title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; frame.setContentPane(this); frame.setClosable(true); toUse.add(frame); frame.setLayer(JLayeredPane.MODAL_LAYER); frame.pack(); frame.setVisible(true); return frame; }
| 9,148
|
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { // Try to find a JDesktopPane. JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); // If we don't have a JDesktopPane, we try to find a JLayeredPane. if (toUse == null) toUse = JLayeredPane.getLayeredPaneAbove(parentComponent); // If this still fails, we throw a RuntimeException. if (toUse == null) throw new RuntimeException ("parentComponent does not have a valid parent"); JInternalFrame frame = new JInternalFrame(title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; frame.setContentPane(this); frame.setClosable(true); toUse.add(frame); frame.setLayer(JLayeredPane.MODAL_LAYER); frame.pack(); frame.setVisible(true); return frame; }
|
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { // Try to find a JDesktopPane. JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); // If we don't have a JDesktopPane, we try to find a JLayeredPane. if (toUse == null) toUse = JLayeredPane.getLayeredPaneAbove(parentComponent); // If this still fails, we throw a RuntimeException. if (toUse == null) throw new RuntimeException ("parentComponent does not have a valid parent"); JInternalFrame frame = new JInternalFrame(title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; frame.setContentPane(this); frame.setClosable(true); toUse.add(frame); frame.setLayer(JLayeredPane.MODAL_LAYER); frame.pack(); frame.setVisible(true); return frame; }
| 9,149
|
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; }
|
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; }
| 9,150
|
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; }
|
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; }
| 9,151
|
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { return (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class, parentComponent); }
|
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { return (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class, parentComponent); }
| 9,152
|
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { return (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class, parentComponent); }
|
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { return (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class, parentComponent); }
| 9,153
|
public Object getInputValue() { return inputValue; }
|
public Object getInputValue() { return inputValue; }
| 9,154
|
protected String paramString() { return "JOptionPane"; }
|
protected String paramString() { return "JOptionPane"; }
| 9,155
|
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon old = icon; icon = newIcon; firePropertyChange(ICON_PROPERTY, old, icon); } }
|
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon old = icon; icon = newIcon; firePropertyChange(ICON_PROPERTY, old, icon); } }
| 9,156
|
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon old = icon; icon = newIcon; firePropertyChange(ICON_PROPERTY, old, icon); } }
|
public void setIcon(Icon newIcon) { if (icon != newIcon) { Icon old = icon; icon = newIcon; firePropertyChange(ICON_PROPERTY, old, icon); } }
| 9,157
|
public void setInitialSelectionValue(Object newValue) { if (initialSelectionValue != newValue) { Object old = initialSelectionValue; initialSelectionValue = newValue; firePropertyChange(INITIAL_SELECTION_VALUE_PROPERTY, old, initialSelectionValue); } }
|
public void setInitialSelectionValue(Object newValue) { if (initialSelectionValue != newValue) { Object old = initialSelectionValue; initialSelectionValue = newValue; firePropertyChange(INITIAL_SELECTION_VALUE_PROPERTY, old, initialSelectionValue); } }
| 9,158
|
public void setInitialSelectionValue(Object newValue) { if (initialSelectionValue != newValue) { Object old = initialSelectionValue; initialSelectionValue = newValue; firePropertyChange(INITIAL_SELECTION_VALUE_PROPERTY, old, initialSelectionValue); } }
|
public void setInitialSelectionValue(Object newValue) { if (initialSelectionValue != newValue) { Object old = initialSelectionValue; initialSelectionValue = newValue; firePropertyChange(INITIAL_SELECTION_VALUE_PROPERTY, old, initialSelectionValue); } }
| 9,159
|
public void setInitialValue(Object newValue) { if (initialValue != newValue) { Object old = initialValue; initialValue = newValue; firePropertyChange(INITIAL_VALUE_PROPERTY, old, initialValue); } }
|
public void setInitialValue(Object newValue) { if (initialValue != newValue) { Object old = initialValue; initialValue = newValue; firePropertyChange(INITIAL_VALUE_PROPERTY, old, initialValue); } }
| 9,160
|
public void setInitialValue(Object newValue) { if (initialValue != newValue) { Object old = initialValue; initialValue = newValue; firePropertyChange(INITIAL_VALUE_PROPERTY, old, initialValue); } }
|
public void setInitialValue(Object newValue) { if (initialValue != newValue) { Object old = initialValue; initialValue = newValue; firePropertyChange(INITIAL_VALUE_PROPERTY, old, initialValue); } }
| 9,161
|
public void setMessageType(int newType) { if (! validMessageType(newType)) throw new IllegalArgumentException("Message Type not legal value."); if (newType != messageType) { int old = messageType; messageType = newType; firePropertyChange(MESSAGE_TYPE_PROPERTY, old, messageType); } }
|
public void setMessageType(int newType) { if (! validMessageType(newType)) throw new IllegalArgumentException("Message Type not legal value."); if (newType != messageType) { int old = messageType; messageType = newType; firePropertyChange(MESSAGE_TYPE_PROPERTY, old, messageType); } }
| 9,162
|
public void setMessageType(int newType) { if (! validMessageType(newType)) throw new IllegalArgumentException("Message Type not legal value."); if (newType != messageType) { int old = messageType; messageType = newType; firePropertyChange(MESSAGE_TYPE_PROPERTY, old, messageType); } }
|
public void setMessageType(int newType) { if (! validMessageType(newType)) throw new IllegalArgumentException("Message Type not legal value."); if (newType != messageType) { int old = messageType; messageType = newType; firePropertyChange(MESSAGE_TYPE_PROPERTY, old, messageType); } }
| 9,163
|
public void setWantsInput(boolean newValue) { if (wantsInput != newValue) { boolean old = wantsInput; wantsInput = newValue; firePropertyChange(WANTS_INPUT_PROPERTY, old, wantsInput); } }
|
public void setWantsInput(boolean newValue) { if (wantsInput != newValue) { boolean old = wantsInput; wantsInput = newValue; firePropertyChange(WANTS_INPUT_PROPERTY, old, wantsInput); } }
| 9,164
|
public Throwable getCause() { return cause; }
|
public Throwable getCause() { return cause; }
| 9,165
|
public Throwable getException() { return cause; }
|
public Throwable getException() { return cause; }
| 9,166
|
public String getLocationAsString() { if (locator == null) { return null; } String publicId = locator.getPublicId(); String systemId = locator.getSystemId(); int lineNumber = locator.getLineNumber(); int columnNumber = locator.getColumnNumber(); StringBuffer buffer = new StringBuffer (); if (publicId != null) { buffer.append ("publicId="); buffer.append (publicId); } if (systemId != null) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("systemId="); buffer.append (systemId); } if (lineNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("lineNumber="); buffer.append (lineNumber); } if (columnNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("columnNumber="); buffer.append (columnNumber); } return buffer.toString(); }
|
public String getLocationAsString() { if (locator == null) { return null; } String publicId = locator.getPublicId(); String systemId = locator.getSystemId(); int lineNumber = locator.getLineNumber(); int columnNumber = locator.getColumnNumber(); StringBuffer buffer = new StringBuffer (); if (publicId != null) { buffer.append ("publicId="); buffer.append (publicId); } if (systemId != null) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("systemId="); buffer.append (systemId); } if (lineNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("lineNumber="); buffer.append (lineNumber); } if (columnNumber != -1) { if (buffer.length() > 0) { buffer.append(' '); } buffer.append ("columnNumber="); buffer.append (columnNumber); } return buffer.toString(); }
| 9,167
|
public SourceLocator getLocator() { return locator; }
|
public SourceLocator getLocator() { return locator; }
| 9,168
|
public String getMessageAndLocation() { return (locator == null) ? getMessage() : getMessage() + ": " + getLocationAsString(); }
|
public String getMessageAndLocation() { return (locator == null) ? getMessage() : getMessage() + ": " + getLocationAsString(); }
| 9,169
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
|
public Throwable initCause(Throwable cause) { if (this.containedException != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
| 9,170
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
| 9,171
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
| 9,172
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
|
public Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException(); } if (cause == this) { throw new IllegalArgumentException(); } this.cause = cause; return this; }
| 9,173
|
public void setLocator(SourceLocator location) { locator = location; }
|
public void setLocator(SourceLocator location) { locator = location; }
| 9,174
|
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); System.out.println(" sent heartbeat to " + ses.getSessionName()); } } catch (Exception ex) { System.out.println(ex.getMessage()); } } }
|
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); log.info(" sent heartbeat to " + ses.getSessionName()); } } catch (Exception ex) { System.out.println(ex.getMessage()); } } }
| 9,175
|
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); System.out.println(" sent heartbeat to " + ses.getSessionName()); } } catch (Exception ex) { System.out.println(ex.getMessage()); } } }
|
public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); System.out.println(" sent heartbeat to " + ses.getSessionName()); } } catch (Exception ex) { log.warn(ex.getMessage()); } } }
| 9,176
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
| 9,177
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
| 9,178
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
| 9,179
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
| 9,180
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
|
void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } }
| 9,181
|
void setPool(LinkedHashMap p) { pool = p; }
|
void setPool(Pool p) { pool = p; }
| 9,182
|
public String setEncoding (String strEncoding) { if (!Utility.isValidEncoding(strEncoding)) { Log.error("not valid encoding. 'set' request ingored. returning null"); return null; } return (String) ((XMLAttribute) attribHash.get("encoding")).setAttribValue(strEncoding); }
|
public String setEncoding (String strEncoding) { if (!Utility.isValidIOEncoding(strEncoding)) { Log.error("not valid encoding. 'set' request ingored. returning null"); return null; } return (String) ((XMLAttribute) attribHash.get("encoding")).setAttribValue(strEncoding); }
| 9,183
|
public AccessibleContext getAccessibleContext() { return null; }
|
public AccessibleContext getAccessibleContext() { return null; }
| 9,184
|
public String getUIClassID() { return "CheckBoxUI"; }
|
public String getUIClassID() { return "CheckBoxUI"; }
| 9,185
|
protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; }
|
protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; }
| 9,186
|
protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; }
|
protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; }
| 9,187
|
public void _read(InputStream input) { value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) { value [ i ] = input.read_wstring(); } typecode.setLength(value.length); }
|
public void _read(InputStream input) { value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) { value [ i ] = input.read_string(); } typecode.setLength(value.length); }
| 9,188
|
public void _write(OutputStream output) { output.write_long(value.length); for (int i = 0; i < value.length; i++) { output.write_wstring(value [ i ]); } }
|
public void _write(OutputStream output) { output.write_long(value.length); for (int i = 0; i < value.length; i++) { output.write_string(value [ i ]); } }
| 9,189
|
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); connect(device.getHost()); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
|
public FTPFileSystem(final FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); connect(device.getHost()); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
| 9,191
|
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); connect(device.getHost()); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
|
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); setRemoteHost(device.getHost()); setTimeout(300000); AccessController.doPrivileged( new PrivilegedAction(){ public Object run() { try{ connect(); return null; }catch(Exception e){ throw new RuntimeException(e); } } }); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
| 9,192
|
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); connect(device.getHost()); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
|
public FTPFileSystem(FTPFSDevice device) { this.device = device; device.addListener(new DeviceListener() { public void deviceStarted(Device device) { //empty } public void deviceStop(Device device) { try { close(); } catch(IOException x){ x.printStackTrace(); } } }); try{// setRemoteHost(device.getHost());// setTimeout(300000);// connect(); connect(device.getHost()); login(device.getUser(),device.getPassword()); thread = new Thread(new Runnable(){ public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } } },"ftpfs_keepalive"); thread.start(); //FTPFile f = new FTPFile("/", "/", 0, true, new Date(0)); FTPFile f = new FTPFile(); f.setName(printWorkingDirectory()); root = new FTPFSDirectory(this, f); closed = false; }catch(Exception e){ throw new RuntimeException(e); } }
| 9,193
|
public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } }
|
public Object run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } }
| 9,194
|
public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } }
|
public void run() { try{ while(!isClosed()){ try { Thread.sleep(100000); nop(); }catch(InterruptedException x){ //ignore } } } catch(Exception x){ x.printStackTrace(); } }
| 9,195
|
private synchronized void nop() throws Exception{ listFiles(root.path()); }
|
private synchronized void nop() throws Exception{ dir(root.path()); }
| 9,196
|
void addSelectionInterval(int index0, int index1);
|
void addSelectionInterval(int index0, int index1);
| 9,197
|
boolean isSelectedIndex(int a);
|
boolean isSelectedIndex(int a);
| 9,198
|
void removeSelectionInterval(int index0, int index1);
|
void removeSelectionInterval(int index0, int index1);
| 9,199
|
void setSelectionInterval(int index0, int index1);
|
void setSelectionInterval(int index0, int index1);
| 9,200
|
void setSelectionMode(int a);
|
void setSelectionMode(int a);
| 9,201
|
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
|
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
| 9,202
|
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
|
protected void resolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].resolve(); } }
| 9,203
|
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
|
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
| 9,204
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.