rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
print ("AreaAction.end not implemented");
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.end not implemented"); }
print ("AreaAction.start not implemented");
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.start not implemented"); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
print ("BaseAction.start not implemented");
baseTarget = (String) a.getAttribute(HTML.Attribute.TARGET);
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
if (t == HTML.Tag.A) a.addAttribute(HTML.Attribute.PSEUDO_CLASS, "link");
public void start(HTML.Tag t, MutableAttributeSet a) { // Put the old attribute set on the stack. pushCharacterStyle(); // Just add the attributes in <code>a</code>. charAttr.addAttribute(t, a.copyAttributes()); }
throws NotImplementedException
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
print ("FormAction.end not implemented");
if (t == HTML.Tag.OPTION) { option = null; } else { if (t == HTML.Tag.TEXTAREA) { inTextArea = false; } else if (t == HTML.Tag.SELECT) { selectModel = null; numOptions = 0; } super.end(t); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
print ("FormAction.start not implemented");
if (t == HTML.Tag.INPUT) { String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) { type = "text"; a.addAttribute(HTML.Attribute.TYPE, type); } setModel(type, a); } else if (t == HTML.Tag.TEXTAREA) { inTextArea = true; textAreaDocument = new ResetablePlainDocument(); a.addAttribute(StyleConstants...
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
throws NotImplementedException
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
print ("HeadAction.end not implemented: "+t);
if (styles != null) { int numStyles = styles.size(); for (int i = 0; i < numStyles; i++) { String style = (String) styles.get(i); getStyleSheet().addRule(style); } }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
print ("HeadAction.start not implemented: "+t);
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.start not implemented: "+t); super.start(t, a); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
print ("IsindexAction.start not implemented");
blockOpen(HTML.Tag.IMPLIED, new SimpleAttributeSet()); addSpecialElement(t, a); blockClose(HTML.Tag.IMPLIED);
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
print ("LinkAction.start not implemented");
super.start(t, a); String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) type = "text/css"; if (type.equals("text/css")) { String rel = (String) a.getAttribute(HTML.Attribute.REL); String media = (String) a.getAttribute(HTML.Attribute.MEDIA); String title = (String) a.getAttribute(HTML.Attribute...
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
catch (MalformedURLException ex) { try { url = new URL(href); } catch (MalformedURLException ex2) { url = null; } } if (url != null) { try { getStyleSheet().importStyleSheet(url); } catch (Exception ex) { ex.printStackTrace(); } } } } } }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
print ("MapAction.end not implemented");
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("MapAction.end not implemented"); }
print ("MapAction.start not implemented");
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("MapAction.start not implemented"); }
print ("MetaAction.end not implemented");
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("MetaAction.end not implemented"); }
print ("MetaAction.start not implemented");
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("MetaAction.start not implemented"); }
blockClose(t);
super.end(t);
public void end(HTML.Tag t) { blockClose(t); }
blockOpen(t, a);
super.start(t, a);
public void start(HTML.Tag t, MutableAttributeSet a) { blockOpen(t, a); }
throws NotImplementedException
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
print ("PreAction.end not implemented"); super.end(t);
blockClose(HTML.Tag.IMPLIED); inPreTag = false; blockClose(t);
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
print ("PreAction.start not implemented"); super.start(t, a);
inPreTag = true; blockOpen(t, a); a.addAttribute(CSS.Attribute.WHITE_SPACE, "pre"); blockOpen(HTML.Tag.IMPLIED, a);
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
throws NotImplementedException
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.end not implemented"); }
print ("StyleAction.end not implemented");
inStyleTag = false;
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.end not implemented"); }
throws NotImplementedException
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.start not implemented"); }
print ("StyleAction.start not implemented");
inStyleTag = true;
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.start not implemented"); }
print ("TitleAction.end not implemented");
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("TitleAction.end not implemented"); }
print ("TitleAction.start not implemented");
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("TitleAction.start not implemented"); }
AttributeSet copy = a.copyAttributes();
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(); /...
new DefaultStyledDocument.ElementSpec(copy,
new DefaultStyledDocument.ElementSpec(a.copyAttributes(),
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(); /...
new char[] {' ', ' '}, 0, 2 );
new char[] {' '}, 0, 1 );
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(); /...
printBuffer();
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...
prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get(parseBuffer.size() - 1); if (prev.getType() == DefaultStyledDocument.ElementSpec.StartTagType)
prev = parseBuffer.size() > 0 ? (DefaultStyledDocument.ElementSpec) parseBuffer.get(parseBuffer.size() - 1) : null; if (prev != null && prev.getType() == DefaultStyledDocument.ElementSpec.StartTagType)
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...
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...
addContent(new char[]{' '}, 0, 1);
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...
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...
printBuffer();
if (inImpliedParagraph()) blockClose(HTML.Tag.IMPLIED); parseStack.push(t);
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
parseStack.push(t);
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
printBuffer();
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); if (offset == 0) create(elements); else insert(offset, elements); offset += HTMLDocument.this.getLength() - offset;
flushImpl();
public void flush() throws BadLocationException { DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); if (offset == 0) create(elements); else ...
action.start(HTML.Tag.COMMENT, htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET);
action.start(HTML.Tag.COMMENT, new SimpleAttributeSet());
public void handleComment(char[] data, int pos) { if (shouldInsert()) { TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET); ...
print ("HTMLReader.handleEndOfLineString not implemented yet");
public void handleEndOfLineString(String eol) { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); }
if (data != null && data.length > 0)
if (shouldInsert() && data != null && data.length > 0) { if (inTextArea) textAreaContent(data); else if (inPreTag) preContent(data); else if (option != null) option.setLabel(new String(data)); else if (inStyleTag) { if (styles == null) styles = new ArrayList(); styles.add(new String(data)); } else
public void handleText(char[] data, int pos) { if (data != null && data.length > 0) addContent(data, 0, data.length); }
}
public void handleText(char[] data, int pos) { if (data != null && data.length > 0) addContent(data, 0, data.length); }
tagToAction.put(HTML.Tag.FORM, blockAction);
tagToAction.put(HTML.Tag.FORM, new FormTagAction());
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(); ...
throws NotImplementedException
protected void preContent(char[] data) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); }
print ("HTMLReader.preContent not implemented yet");
int start = 0; for (int i = 0; i < data.length; i++) { if (data[i] == '\n') { addContent(data, start, i - start + 1); blockClose(HTML.Tag.IMPLIED); MutableAttributeSet atts = new SimpleAttributeSet(); atts.addAttribute(CSS.Attribute.WHITE_SPACE, "pre"); blockOpen(HTML.Tag.IMPLIED, atts); start = i + 1; } } if (start < ...
protected void preContent(char[] data) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); }
throws NotImplementedException
protected void textAreaContent(char[] data) throws NotImplementedException { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); }
print ("HTMLReader.textAreaContent not implemented yet");
try { int offset = textAreaDocument.getLength(); String text = new String(data); textAreaDocument.setInitialText(text); textAreaDocument.insertString(offset, text, null); } catch (BadLocationException ex) { assert false; }
protected void textAreaContent(char[] data) throws NotImplementedException { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); }
RunElement el = new RunElement(parent, a, p0, p1); el.addAttribute(StyleConstants.NameAttribute, HTML.Tag.CONTENT);
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { RunElement el = new RunElement(parent, a, p0, p1); el.addAttribute(StyleConstants.NameAttribute, HTML.Tag.CONTENT); return new RunElement(parent, a, p0, p1); }
reader.parseStack.push(parent.getAttributes().getAttribute( StyleConstants.NameAttribute));
public HTMLEditorKit.ParserCallback getInsertingReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag, final Element parent) throws Ill...
throws NotImplementedException
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) throws NotImplementedException { // TODO: Implement this properly. }
String target = event.getTarget(); Element el = event.getSourceElement(); URL url = event.getURL(); if (target.equals("_self")) { updateFrame(el, url); } else if (target.equals("_parent")) { updateFrameSet(el.getParentElement(), url); } else { Element targetFrame = findFrame(target); if (targetFrame != null) updateFram...
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) throws NotImplementedException { // TODO: Implement this properly. }
throws NotImplementedException
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); }
language = ((String) s.readObject()).intern(); country = ((String) s.readObject()).intern(); variant = ((String) s.readObject()).intern(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode();
s.defaultReadObject(); language = language.intern(); country = country.intern(); variant = variant.intern(); hashcodeCache = language.hashCode() ^ country.hashCode() ^ variant.hashCode();
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { language = ((String) s.readObject()).intern(); country = ((String) s.readObject()).intern(); variant = ((String) s.readObject()).intern(); // Recompute hashcode. hashcode = language.hashCode() ^ country.hashCo...
Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle();
if (c == null) return null; r = c.getBounds(r);
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom;
r.x = i.left; r.width = r.width - i.left - i.right; r.y = i.top; r.height = r.height - i.top - i.bottom;
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight();
int x2 = (int) rect.x; int y2 = (int) rect.y; int w2 = (int) rect.width; int h2 = (int) rect.height;
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
return new Rectangle(dx, dy, dw, dh);
rect.setBounds(dx, dy, dw, dh); else rect.setBounds(0, 0, 0, 0);
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
return new Rectangle(0, 0, 0, 0);
return rect;
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight();
int x2 = (int) rect.x; int y2 = (int) rect.y; int w2 = (int) rect.width; int h2 = (int) rect.height;
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
return new Rectangle(dx, dy, dw, dh); return new Rectangle(0, 0, 0, 0);
rect.setBounds(dx, dy, dw, dh); else rect.setBounds(0, 0, 0, 0); return rect;
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
if (child != uiActionMap)
public static void replaceUIActionMap(JComponent component, ActionMap uiActionMap) { ActionMap child = component.getActionMap(); if (child == null) component.setActionMap(uiActionMap); else { ActionMap parent = child.getParent(); while (parent ...
if (child != uiInputMap)
public static void replaceUIInputMap(JComponent component, int condition, InputMap uiInputMap) { InputMap child = component.getInputMap(condition); if (child == null) component.setInputMap(condition, uiInputMap); else { ...
if (comp == null) return; if (comp instanceof Container)
updateComponentTreeUIImpl(comp); if (comp instanceof JComponent)
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]);
JComponent jc = (JComponent) comp; jc.revalidate();
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
if (comp instanceof JComponent) ((JComponent)comp).updateUI(); }
else { comp.invalidate(); comp.validate(); } comp.repaint(); }
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
panel.repaint();
public void show() { // We insert a JPanel between the layered pane and the contents so we // can fiddle with the setLocation() method without disturbing a // JPopupMenu (which overrides setLocation in an unusual manner). if (panel == null) { panel = new JPanel(); pan...
in.setSystemId(absolutize(baseURI, in.getSystemId(), false));
in.setSystemId(absolutize(baseURI, in.getSystemId(), entityResolver != base));
InputSource resolveEntity(boolean isPE, String name, InputSource in, String baseURI) throws SAXException, IOException { InputSource source; // external entities might be skipped if (isPE && !extPE) { return null; } if (!isPE && !extGE) { return null; } // ... or not lexicalHan...
cdrBufOutput out = new cdrBufOutput();
BufferedCdrOutput out = new BufferedCdrOutput();
public gnuAny Clone() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); out.write_any(this); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
cdrBufInput in = new cdrBufInput(out.buffer.toByteArray());
BufferredCdrInput in = new BufferredCdrInput(out.buffer.toByteArray());
public gnuAny Clone() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); out.write_any(this); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
+ typeNamer.nameIt(kind) + " when stored " + typeNamer.nameIt(xKind));
+ TypeKindNamer.nameIt(kind) + " when stored " + TypeKindNamer.nameIt(xKind));
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
+ typeNamer.nameIt(kind) + " stored " + typeNamer.nameIt(type()));
+ TypeKindNamer.nameIt(kind) + " stored " + TypeKindNamer.nameIt(type()));
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
if (has instanceof universalHolder)
if (has instanceof GeneralHolder)
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
universalHolder u = (universalHolder) has;
GeneralHolder u = (GeneralHolder) has;
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
cdrBufOutput out = new cdrBufOutput();
BufferedCdrOutput out = new BufferedCdrOutput();
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
cdrBufInput in = new cdrBufInput(out.buffer.toByteArray());
BufferredCdrInput in = new BufferredCdrInput(out.buffer.toByteArray());
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
cdrBufOutput stream = new cdrBufOutput();
BufferedCdrOutput stream = new BufferedCdrOutput();
public org.omg.CORBA.portable.OutputStream create_output_stream() { cdrBufOutput stream = new cdrBufOutput(); stream.setOrb(orb); return stream; }
cdrBufOutput a = new cdrBufOutput();
BufferedCdrOutput a = new BufferedCdrOutput();
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_va...
cdrBufOutput b = new cdrBufOutput();
BufferedCdrOutput b = new BufferedCdrOutput();
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_va...
cdrBufOutput a = new cdrBufOutput();
BufferedCdrOutput a = new BufferedCdrOutput();
public int hashCode() { if (has == null) return type().kind().value(); else { Adler32 adler = new Adler32(); cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_value(a); adler.update(a.buffer.toByteArray()); adler.update(type().kind().value());...
typecode = new stringTypeCode(TCKind.tk_string);
typecode = new StringTypeCode(TCKind.tk_string);
public void insert_string(String x) { resetTypes(); if (has instanceof StringHolder) ((StringHolder) has).value = x; else has = new StringHolder(x); typecode = new stringTypeCode(TCKind.tk_string); }
Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act);
Action act = (Action) (e.getSource()); if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) setEnabled(act.isEnabled()); else if (e.getPropertyName().equals(Action.NAME)) setText((String)(act.getValue(Action.NAME))); else if (e.getPropertyName().equals(Action.SMALL_ICON)) setIcon((Icon)(act.getValue(Action....
public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); }
t.select(Utilities.getRowStart(t, newDot), Utilities.getRowEnd(t, newDot));
{ setDot(Utilities.getRowStart(t, newDot)); moveDot( Utilities.getRowEnd(t, newDot)); }
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
t.select(nextWord, Utilities.getNextWord(t, nextWord));
{ setDot(nextWord); moveDot(Utilities.getNextWord(t, nextWord)); }
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
t.select(previousWordEnd, nextWord);
{ setDot(previousWordEnd); moveDot(nextWord); }
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
t.select(previousWord, previousWordEnd);
{ setDot(previousWord); moveDot(previousWordEnd); }
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
dot = newDot;
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
synchronized (GapContent.this) { int mark = positionMarks[index]; assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd; int res = mark; if (mark > gapStart) res -= (gapEnd - gapStart); return res; }
return mark.getOffset();
public int getOffset() { synchronized (GapContent.this) { // Fetch the actual mark. int mark = positionMarks[index]; // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart...
if (positions != null) { updateUndoPositions(positions, where, length); positions = null; }
public void redo () throws CannotUndoException { super.redo(); try { insertString(where, text); } catch (BadLocationException ble) { throw new CannotRedoException(); } }
positions = getPositionsInRange(null, where, length);
public void undo () throws CannotUndoException { super.undo(); try { text = getString(where, length); remove(where, length); } catch (BadLocationException ble) { throw new CannotUndoException(); } }
positions = getPositionsInRange(null, start, removedText.length());
public UndoRemove(int start, String removedText) { where = start; text = removedText; }
text = getString(where, text.length()); positions = getPositionsInRange(null, where, text.length());
public void redo () throws CannotUndoException { super.redo(); try { remove(where, text.length()); } catch (BadLocationException ble) { throw new CannotRedoException(); } }
if (positions != null) updateUndoPositions(positions, where, text.length());
public void undo () throws CannotUndoException { super.undo(); try { insertString(where, text); } catch (BadLocationException ble) { throw new CannotUndoException(); } }
GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();)
Mark m; GapContentPosition pos; int index = offset; if (offset >= gapStart) index += (gapEnd - gapStart); searchMark.mark = index; int insertIndex = search(searchMark); if (!(insertIndex < marks.size() && (m = (Mark) marks.get(insertIndex)).mark == index && (pos = m.getPosition()) != null))
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
GapContentPosition p = (GapContentPosition) i.next(); if (p.getOffset() == offset) { pos = p; break; }
pos = new GapContentPosition(); m = new Mark(index, pos, queueOfDeath); pos.mark = m; marks.add(insertIndex, m);
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...