bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected String common(String[] items) { if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) // shorten the result until it matches result = result.substring(0, result.length() - 1); } return result; }
protected String common(String[] items) { if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) // shorten the result until it matches result = result.substring(0, result.length() - 1); } return result; }
9,929
public String complete(String partial) { // No completion per default return partial; }
public String complete(String partial) { // No completion per default return partial; }
9,930
public void describe(Help help) { help.describeArgument(this); }
public void describe(Help help) { help.describeArgument(this); }
9,931
public String format() { return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
public String format() { return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
9,932
public final String getValue(ParsedArguments args) { String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
public final String getValue(ParsedArguments args) { String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
9,933
public final String[] getValues(ParsedArguments args) { return args.getValues(this); }
public final String[] getValues(ParsedArguments args) { return args.getValues(this); }
9,934
public boolean isMulti() { return multi; }
public boolean isMulti() { return multi; }
9,935
public final boolean isSatisfied() { return satisfied; }
public final boolean isSatisfied() { return satisfied; }
9,936
public void list(String[] items) { try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { // should not happen! System.err.println("No list available"); } }
public void list(String[] items) { try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { // should not happen! System.err.println("No list available"); } }
9,937
protected final void setSatisfied(boolean satisfied) { this.satisfied = satisfied; }
protected final void setSatisfied(boolean satisfied) { this.satisfied = satisfied; }
9,938
protected final void setValue(String value) { if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!is...
protected final void setValue(String value) { if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!is...
9,939
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
9,940
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ...
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ...
9,941
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols; planes.setSize(rows); }
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols;planes.setSize(rows); }
9,942
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,944
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,945
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,946
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,947
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,948
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
9,949
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
9,950
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
9,951
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
9,952
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ...
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ...
9,953
public Offset add (Extent byteSize) { return null; }
public Offset add (int byteSize) { return null; }
9,962
public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
public Gui5250Frame(My5250 m, int seq) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
9,963
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF...
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); ...
9,965
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
9,967
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,968
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,969
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,970
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,971
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,972
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
9,973
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch...
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch...
9,974
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1]....
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1]....
9,976
public void removeSessionView(Session targetSession) { JInternalFrame[] frames = desktop.getAllFrames(); }
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpL...
9,977
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu) menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
9,978
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
9,979
public Object clone() { return new LineSegment(P1, P2); }
public Object clone() { LineSegment segment = null; try { segment = (LineSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment; }
9,981
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (getName().equals(READING.getName())) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
9,982
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (getName().equals(LANGUAGE.getName())) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
9,983
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (getName().equals(INPUT_METHOD_SEGMENT.getName())) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
9,984
public CaretEvent(Object source) { super(source); } // CaretEvent()
public CaretEvent(Object source) { super(source); } // CaretEvent()
9,986
public CaretEvent(Object source) { super(source); } // CaretEvent()
public CaretEvent(Object source) { super(source); } // CaretEvent()
9,987
public void clearScreen() { for (int x = 0; x < lenScreen; x++) { screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); } dirty.setBounds(tArea.getBounds());// dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); }
drawing = true; drawing = true; drawing = true; publicdrawing = true; voiddrawing = true; clearScreen()drawing = true; {drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; drawing = true; fordrawing = true; (intdrawing = true; xdrawing = true; =drawing = true; 0;drawing = true; xdrawing = tr...
9,988
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); } }
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange("enabled", !this.enabled, this.enabled); } }
9,990
public void insertString(DocumentFilter.FilterBypass bypass, int offset, String text, AttributeSet attributes) throws BadLocationException { if (overwriteMode == true) replace(bypass, offset, text.length(), text, attributes); else super.insertString(bypass,...
public void insertString(DocumentFilter.FilterBypass bypass, int offset, String text, AttributeSet attributes) throws BadLocationException { if (overwriteMode == true) replace(bypass, offset, text.length(), text, attributes); else super.insertString(bypass,...
9,991
protected final JTextComponent getFocusedComponent() { return null; // TODO }
protected final JTextComponent getFocusedComponent() { KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component focused = kfm.getPermanentFocusOwner(); JTextComponent textComp = null; if (focused instanceof JTextComponent) textComp = (JTextComponent) focused; return textComp; // T...
9,992
public boolean isBorderOpaque() { /* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */ return ((highlight == null) || (highlight.getA...
public boolean isBorderOpaque() { /* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */ return ((highlight == null) || (highlight.getA...
9,993
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
9,994
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
9,995
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
9,997
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
9,998
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
9,999
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
10,000
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen...
10,001
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { ...
10,003
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
publicObjectaction(SaxDocumentHandlerhandler,AttributeListattrs){//ifthisisstilldefined,wehaventinit'dan//XMLDataIOStyleobjectforthisarrayyet,doitnow.if(!DataIOStyleAttribs.isEmpty()){//FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray);FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(Curr...
10,004
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
10,005
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
10,006
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
publicObjectaction(SaxDocumentHandlerhandler,AttributeListattrs){//ifthisisstilldefined,wehaventinit'dan//XMLDataIOStyleobjectforthisarrayyet,doitnow.if(!DataIOStyleAttribs.isEmpty()){//FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(CurrentArray);FormattedXMLDataIOStylereadObj=newFormattedXMLDataIOStyle(Curr...
10,007
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
10,008
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli...
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli...
10,010
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter.clear(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeNa...
10,011
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueListParameter = attribListToHashtable(attrs); CurrentValueLi...
10,012
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
10,013
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa...
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa...
10,014
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
10,015
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
10,016
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
10,017
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
public String getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
10,018
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
public DataFormat getDatatype() { return (String) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
10,019
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
10,020
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
public String setDatatype(String strDatatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
10,021
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
public DataFormat setDatatype(DataFormat datatype) { if (Utility.isValidDatatype(strDatatype)) return (String) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(strDatatype); else return null; }
10,022
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith...
10,023
public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
public void shutdownOutput() throws IOException { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
10,033
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingCanceled (changeEvent); } }
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners[index].editingCanceled(changeEvent); } }
10,036
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingStopped (changeEvent); } }
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners[index].editingStopped(changeEvent); } }
10,037
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); Graphics2D g2 = getDrawingArea(); publicGraphics2D g2 = getDrawingArea(); voidGraphics2D g2 = getDrawingArea(); drawCursor(Screen5250Graphics2D g2 = getDrawingArea(); s,intGraphics2D g2 = getDrawingArea(); row,Graphics2D g2 = getDrawingArea(); intGraph...
10,040
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
10,041
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {//synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffse...
10,042
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {//synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffse...
10,043
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font font,int botOffset) {// synchronized (lock) { Graphics2D g2 = getDrawingArea();// if (g2 == null)//return;//botOffset ...
10,044
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchronized (lock) ...
10,045
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); System.out.println(" we got a null graphic object "); publicSystem.out.println(" we got a null graphic object "); synchronizedSystem.out.println(" we got a null graphic object "); voidSystem.out.println(" we got ...
10,046
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
10,047
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G...
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G...
10,048
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r...
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) { System.out.println(" bi = null "); lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g...
10,049
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r...
} } } public} Graphics2D} getDrawingArea()} {} } } } } } try} {} } } } } } } } } synchronized} (lock)} {} } } } } } } } } } } } //} wait} until} there} is} something} to} read} } } } } } } } } } } } while} (bi} ==} null)} } } } } } } } } } } } } } } lock.wait();} } } } } } } } } } } } //} we} have} the} lock} and} stat...
10,050
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this...
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) { // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); th...
10,053
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this...
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this...
10,054
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
10,056
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel...
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel...
10,058
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out...
10,059
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
10,060
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
10,061
public static boolean interrupted() { return currentThread().isInterrupted(); }
public static boolean interrupted() { VmThread current = VmThread.currentThread(); if (current != null) { return current.isInterrupted(true); } else { return false; } }
10,062
public boolean isInterrupted() { return vmThread.isInterrupted(); }
public boolean isInterrupted() { return vmThread.isInterrupted(false); }
10,063