bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
6,776
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
6,777
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
6,778
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
6,779
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeC...
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeC...
6,782
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0 :...
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) methods.get(method); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { ...
6,784
public void invoke(ServerRequest request) { Streamable result = null; // The server request contains no required result type. Integer call_method = (Integer) methods.get(request.operation()); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_metho...
public void invoke(ServerRequest request) { Streamable result = null; // The server request contains no required result type. Integer call_method = (Integer) methods.get(request.operation()); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch ...
6,785
public static HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; }
public static synchronized HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; }
6,786
public static SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; }
public static synchronized SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; }
6,788
protected abstract void resolve() throws PluginException;
protected abstract void resolve(PluginRegistryModel registry) throws PluginException;
6,792
protected abstract void unresolve() throws PluginException;
protected abstract void unresolve(PluginRegistryModel registry) throws PluginException;
6,793
public SendEMailDialog(Frame parent, Session session) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog( parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE, null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] m...
public SendEMailDialog(Frame parent, Session session) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog( parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE, null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] m...
6,794
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon...
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon...
6,796
public MetalButtonUI() { super(); focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); }
public MetalButtonUI() { super(); focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); }
6,797
public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); }
public static ComponentUI createUI(JComponent c) { if (sharedUI == null) sharedUI = new MetalButtonUI(); return sharedUI; }
6,798
public void installDefaults(AbstractButton button) { super.installDefaults(button); button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover")); }
public void installDefaults(AbstractButton button) { super.installDefaults(button); button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover")); }
6,802
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = b.getVisibleRect(); g.setColor(selectColor); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = b.getVisibleRect(); g.setColor(getSelectColor()); g.fillRect(area.x, area.y, area.width, area.height); } }
6,803
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); button.setRolloverEnabled(false); }
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); }
6,804
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font...
6,805
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
6,806
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
6,807
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ...
6,808
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); // update the anchorSelectionI...
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); // update the anchorSelectionIndex and leadSelectionIndex variables se...
6,813
public void checkAccess(Thread thread) { if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); }
public void checkAccess(Thread thread) { if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() == null) checkPermission(new RuntimePermission("modifyThread")); }
6,815
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS Im...
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS Im...
6,834
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCF...
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCF...
6,836
public AlignmentAction(String nm, int a) { super("TODO"); // TODO }
public AlignmentAction(String nm, int a) { super(nm); this.a = a; // TODO }
6,842
public FontFamilyAction(String nm, String family) { super("TODO"); // TODO }
public FontFamilyAction(String nm, String family) { super(nm); this.family = family; // TODO }
6,845
public FontSizeAction(String nm, int size) { super("TODO"); // TODO }
public FontSizeAction(String nm, int size) { super(nm); this.size = size; // TODO }
6,847
public ForegroundAction(String nm, Color fg) { super("TODO"); // TODO }
public ForegroundAction(String nm, Color fg) { super(nm); this.fg = fg; // TODO }
6,849
protected final JEditorPane getEditor(ActionEvent event) { return null; // TODO }
protected final JEditorPane getEditor(ActionEvent event) { return (JEditorPane) getTextComponent(event); // TODO }
6,852
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
protected final StyledDocument getStyledDocument(JEditorPane editor) { return null; // TODO }
6,853
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
protected final StyledDocument getStyledDocument(JEditorPane value0) { Document doc = editor.getDocument(); if (!(doc instanceof StyledDocument)) throw new AssertionError("The Document for StyledEditorKits is " + "expected to be a StyledDocument."); return (StyledDocument) doc; // TODO }
6,854
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
protected final StyledEditorKit getStyledEditorKit(JEditorPane editor) { return null; // TODO }
6,855
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) throw new AssertionError("The EditorKit for StyledDocuments is " + "expected to be a StyledEditorKit."); return (StyledEditorKit) kit; // TODO }
6,856
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
6,857
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
6,859
public View create(Element value0) { return null; // TODO }
public View create(Element element) { return null; // TODO }
6,861
public View create(Element value0) { return null; // TODO }
public View create(Element value0) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equals(AbstractDocument.Sect...
6,862
public Object clone() { return null; // TODO }
public Object clone() { StyledEditorKit clone = (StyledEditorKit) super.clone(); return clone; // TODO }
6,865
public Document createDefaultDocument() { return null; // TODO }
public Document createDefaultDocument() { return new DefaultStyledDocument(); // TODO }
6,866
public Action[] getActions() { return null; // TODO }
public Action[] getActions() { Action[] actions1 = super.getActions(); Action[] myActions = new Action[] { new BoldAction(), new ItalicAction(), new UnderlineAction() }; return TextAction.augmentList(actions1, myActions); // TODO }
6,869
public Element getCharacterAttributeRun() { return null; // TODO }
public Element getCharacterAttributeRun() { return currentRun; // TODO }
6,870
public MutableAttributeSet getInputAttributes() { return null; // TODO }
public MutableAttributeSet getInputAttributes() { return inputAttributes; // TODO }
6,871
public ViewFactory getViewFactory() { return null; // TODO }
public ViewFactory getViewFactory() { if (viewFactory == null) viewFactory = new StyledViewFactory(); return viewFactory; // TODO }
6,872
public String getContentType() { return getEditorKit().getContentType(); }
public final String getContentType() { return getEditorKit().getContentType(); }
6,874
public void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); }
public final void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); }
6,875
public SynchronizedAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
public SynchronizedAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); attrset = attributeSet; }
6,877
public synchronized boolean add(Attribute attribute) { return set.add(attribute); }
public synchronized boolean add(Attribute attribute) { return attrset.add(attribute); }
6,878
public synchronized boolean addAll(AttributeSet attributes) { return set.addAll(attributes); }
public synchronized boolean addAll(AttributeSet attributes) { return attrset.addAll(attributes); }
6,879
public synchronized void clear() { set.clear(); }
public synchronized void clear() { attrset.clear(); }
6,880
public synchronized boolean containsKey(Class category) { return set.containsKey(category); }
public synchronized boolean containsKey(Class category) { return attrset.containsKey(category); }
6,881
public synchronized boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
public synchronized boolean containsValue(Attribute attribute) { return attrset.containsValue(attribute); }
6,882
public synchronized boolean equals(Object obj) { return set.equals(obj); }
public synchronized boolean equals(Object obj) { return attrset.equals(obj); }
6,883
public synchronized Attribute get(Class interfaceName) { return set.get(interfaceName); }
public synchronized Attribute get(Class interfaceName) { return attrset.get(interfaceName); }
6,884
public synchronized int hashCode() { return set.hashCode(); }
public synchronized int hashCode() { return attrset.hashCode(); }
6,885
public synchronized boolean isEmpty() { return set.isEmpty(); }
public synchronized boolean isEmpty() { return attrset.isEmpty(); }
6,886
public synchronized boolean remove(Class category) { return set.remove(category); }
public synchronized boolean remove(Class category) { return attrset.remove(category); }
6,887
public synchronized int size() { return set.size(); }
public synchronized int size() { return attrset.size(); }
6,888
public synchronized Attribute[] toArray() { return set.toArray(); }
public synchronized Attribute[] toArray() { return attrset.toArray(); }
6,889
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.attrset = attributeSet; }
6,890
public boolean containsKey(Class category) { return set.containsKey(category); }
public boolean containsKey(Class category) { return attrset.containsKey(category); }
6,891
public boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
public boolean containsValue(Attribute attribute) { return attrset.containsValue(attribute); }
6,892
public boolean equals(Object obj) { return set.equals(obj); }
public boolean equals(Object obj) { return attrset.equals(obj); }
6,893
public Attribute get(Class interfaceName) { return set.get(interfaceName); }
public Attribute get(Class interfaceName) { return attrset.get(interfaceName); }
6,894
public int hashCode() { return set.hashCode(); }
public int hashCode() { return attrset.hashCode(); }
6,895
public boolean isEmpty() { return set.isEmpty(); }
public boolean isEmpty() { return attrset.isEmpty(); }
6,896
public int size() { return set.size(); }
public int size() { return attrset.size(); }
6,897
public Attribute[] toArray() { return set.toArray(); }
public Attribute[] toArray() { return attrset.toArray(); }
6,898
public void addColumn(TableColumn column) { if (column.getHeaderValue() == null) { String name = getColumnName(column.getModelIndex()); column.setHeaderValue(name); } columnModel.addColumn(column); }
public void addColumn(TableColumn column) { if (column.getHeaderValue() == null) { String name = dataModel.getColumnName(column.getModelIndex()); column.setHeaderValue(name); } columnModel.addColumn(column); }
6,899
public int convertColumnIndexToModel(int vc) { if (vc < 0) return vc; else if (vc > getColumnCount()) return -1; else return columnModel.getColumn(vc).getModelIndex(); }
public int convertColumnIndexToModel(int vc) { if (vc < 0) return vc; else if (vc > getColumnCount()) return -1; else return columnModel.getColumn(vc).getModelIndex(); }
6,901
public String getColumnName(int column) { return dataModel.getColumnName(column); }
public String getColumnName(int column) { int modelColumn = columnModel.getColumn(column).getModelIndex(); return dataModel.getColumnName(modelColumn); }
6,902
public ListSelectionModel getSelectionModel() { if (! rowSelectionAllowed) return null; return selectionModel; }
public ListSelectionModel getSelectionModel() { if (! rowSelectionAllowed) return null; return selectionModel; }
6,903
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
6,904
public void setAutoCreateColumnsFromModel(boolean a) { autoCreateColumnsFromModel = a; }
public void setAutoCreateColumnsFromModel(boolean autoCreate) { autoCreateColumnsFromModel = a; }
6,905
public void setAutoCreateColumnsFromModel(boolean a) { autoCreateColumnsFromModel = a; }
public void setAutoCreateColumnsFromModel(boolean a) { if (autoCreateColumnsFromModel != autoCreate) { autoCreateColumnsFromModel = autoCreate; if (autoCreate) createDefaultColumnsFromModel(); } }
6,906
public static ThreadPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
public static ThreadPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad; } }
6,908
public Object run() { return System.getProperty(key, defaultValue); }
public Object run() { return System.getProperty(key, defaultValue); }
6,909
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ...
Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ca...
6,910
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ...
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ...
6,911
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ...
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; ...
6,912
public AbstractElement(Element p, AttributeSet s) { element_parent = p; attributes = s; }
public AbstractElement(Element p, AttributeSet s) { element_parent = p; AttributeContext ctx = getAttributeContext(); attributes = ctx.getEmptySet(); if (s != null) attributes = ctx.addAttributes(attributes, s); }
6,914
public AttributeSet getAttributes() { return attributes; }
public AttributeSet getAttributes() { return this; }
6,915
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
6,916
public int getEndOffset() { return end; }
public int getEndOffset() { return endPos.getOffset(); }
6,917
public int getStartOffset() { return start; }
public int getStartOffset() { return startPos.getOffset(); }
6,918
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > getLength()) throw new BadLocationException(getText(0, getLength()), offset); return new Position() { public int getOffset() { return offset; } }; }
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > getLength()) throw new BadLocationException(getText(0, getLength()), offset); return new Position() { public int getOffset() { return offset; } }; }
6,919
public int getOffset() { return offset; }
public int getOffset() { return offset; }
6,920
public int getOffset() { return getLength(); }
public int getOffset() { return 0; }
6,921
public void render(Runnable r) { }
public void render(Runnable runnable) { }
6,922
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = x; }
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = x; }
6,923
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = x; }
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = p; }
6,924
public void focusLost(FocusEvent e) { hasFocus = false; comboBox.repaint(); popup.hide(); }
public void focusLost(FocusEvent e) { hasFocus = false; comboBox.repaint(); }
6,925
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o...
6,927
public abstract EntityReference createEntityReference(String name, EntityDeclaration declaration);
public abstract EntityReference createEntityReference(String name, String replacementText);
6,928
public EntryRecord(byte[] buff) { this.buff = buff; }
public EntryRecord(byte[] buff) { this.buff = buff; }
6,929
public int getDataLength() { return (int)LittleEndian.getUInt32(buff,10); }
public int getDataLength() { return (int)LittleEndian.getUInt32(buff,10); }
6,930
public String getFileIdentifier() { if(this.isDirectory()) { if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x00) return "."; if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x01) return ".."; return new String(buff, 33 , this.getLengthOfFileIdentifier()); } return new String(buff, 33 , ...
public String getFileIdentifier() { if(this.isDirectory()) { if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x00) return "."; if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x01) return ".."; return new String(buff, 33 , this.getLengthOfFileIdentifier()); } return new String(buff, 33 , ...
6,931
public int getFileUnitSize() { return buff[26]; }
public int getFileUnitSize() { return buff[26]; }
6,932
public int getFlags() { return buff[25]; }
public int getFlags() { return buff[25]; }
6,933