rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
isFlavorJavaFileListType() { if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true);
|
public boolean isFlavorJavaFileListType() { if (mimeType.equals(javaFileListFlavor.mimeType) && representationClass.equals(javaFileListFlavor.representationClass)) return true;
|
isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return(false); }
|
return false ; }
|
isFlavorJavaFileListType(){ if (this.mimeType.equals(javaFileListFlavor.mimeType) && this.representationClass.equals(javaFileListFlavor.representationClass)) return(true); return(false);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isFlavorRemoteObjectType() {
|
public boolean isFlavorRemoteObjectType() {
|
isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
isFlavorRemoteObjectType(){ return(mimeType.startsWith(javaRemoteObjectMimeType));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isFlavorSerializedObjectType() {
|
public boolean isFlavorSerializedObjectType() {
|
isFlavorSerializedObjectType(){ // FIXME: What is the diff between this and isMimeTypeSerializedObject? return(mimeType.startsWith(javaSerializedObjectMimeType));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
isFlavorSerializedObjectType(){ // FIXME: What is the diff between this and isMimeTypeSerializedObject? return(mimeType.startsWith(javaSerializedObjectMimeType));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isMimeTypeEqual(String mimeType) {
|
public boolean isMimeTypeEqual(String mimeType) {
|
isMimeTypeEqual(String mimeType){ String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
isMimeTypeEqual(String mimeType){ String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isMimeTypeSerializedObject() { return(mimeType.startsWith(javaSerializedObjectMimeType)); }
|
public boolean isMimeTypeSerializedObject() { return mimeType.startsWith(javaSerializedObjectMimeType); }
|
isMimeTypeSerializedObject(){ return(mimeType.startsWith(javaSerializedObjectMimeType));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
public boolean isRepresentationClassByteBuffer ()
|
public boolean isRepresentationClassByteBuffer()
|
public boolean isRepresentationClassByteBuffer () { return ByteBuffer.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return ByteBuffer.class.isAssignableFrom (representationClass);
|
return ByteBuffer.class.isAssignableFrom(representationClass);
|
public boolean isRepresentationClassByteBuffer () { return ByteBuffer.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
public boolean isRepresentationClassCharBuffer ()
|
public boolean isRepresentationClassCharBuffer()
|
public boolean isRepresentationClassCharBuffer () { return CharBuffer.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return CharBuffer.class.isAssignableFrom (representationClass);
|
return CharBuffer.class.isAssignableFrom(representationClass);
|
public boolean isRepresentationClassCharBuffer () { return CharBuffer.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isRepresentationClassInputStream() { return(representationClass.getName().equals("java.io.InputStream")); }
|
public boolean isRepresentationClassInputStream() { return representationClass.getName().equals("java.io.InputStream"); }
|
isRepresentationClassInputStream(){ return(representationClass.getName().equals("java.io.InputStream"));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
public boolean isRepresentationClassReader ()
|
public boolean isRepresentationClassReader()
|
public boolean isRepresentationClassReader () { return Reader.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return Reader.class.isAssignableFrom (representationClass);
|
return Reader.class.isAssignableFrom(representationClass);
|
public boolean isRepresentationClassReader () { return Reader.class.isAssignableFrom (representationClass); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isRepresentationClassRemote() {
|
public boolean isRepresentationClassRemote() {
|
isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
isRepresentationClassRemote(){ return Remote.class.isAssignableFrom (representationClass);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
isRepresentationClassSerializable() {
|
public boolean isRepresentationClassSerializable() {
|
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return(true);
|
return true;
|
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return(false); }
|
return false; }
|
isRepresentationClassSerializable(){ Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return(true); ++i; } return(false);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
match(DataFlavor dataFlavor) {
|
public boolean match(DataFlavor dataFlavor) {
|
match(DataFlavor dataFlavor){ // XXX - How is this different from equals? return(equals(dataFlavor));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
return(equals(dataFlavor)); }
|
return equals(dataFlavor); }
|
match(DataFlavor dataFlavor){ // XXX - How is this different from equals? return(equals(dataFlavor));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
normalizeMimeType(String type) { return(type); }
|
protected String normalizeMimeType(String type) { return type; }
|
normalizeMimeType(String type){ return(type);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
normalizeMimeTypeParameter(String name, String value) { return(name + "=" + value); }
|
protected String normalizeMimeTypeParameter(String name, String value) { return name + "=" + value; }
|
normalizeMimeTypeParameter(String name, String value){ return(name + "=" + value);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
readExternal(ObjectInput stream) throws IOException, ClassNotFoundException {
|
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException {
|
readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
readExternal(ObjectInput stream) throws IOException, ClassNotFoundException{ // FIXME: Implement me}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
{ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass;
|
{ for(int i = 0; i < availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) return df; if ((InputStream.class.isAssignableFrom(c)) && ("text".equals(df.getPrimaryType()))) { String encoding = availableFlavors[i].getParameter("charset"); if (encoding == null) encoding = "us-ascii"; Reader r = null; try { r = new InputStreamReader (new ByteArrayInputStream(new byte[0]), encoding); } catch(UnsupportedEncodingException uee) { /* ignore */ }
|
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df; } // A InputStream is good if the mime primary type is "text" if ((InputStream.class.isAssignableFrom(c)) && ("text".equals(df.getPrimaryType()))) { String encoding = availableFlavors[i].getParameter("charset"); if (encoding == null) encoding = "us-ascii"; Reader r = null; try { // Try to construct a dummy reader with the found encoding r = new InputStreamReader (new ByteArrayInputStream(new byte[0]), encoding); } catch(UnsupportedEncodingException uee) { /* ignore */ } if (r != null) return df; } } // Nothing found return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df; }
|
if (r != null) return df; } }
|
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df; } // A InputStream is good if the mime primary type is "text" if ((InputStream.class.isAssignableFrom(c)) && ("text".equals(df.getPrimaryType()))) { String encoding = availableFlavors[i].getParameter("charset"); if (encoding == null) encoding = "us-ascii"; Reader r = null; try { // Try to construct a dummy reader with the found encoding r = new InputStreamReader (new ByteArrayInputStream(new byte[0]), encoding); } catch(UnsupportedEncodingException uee) { /* ignore */ } if (r != null) return df; } } // Nothing found return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
if ((InputStream.class.isAssignableFrom(c)) && ("text".equals(df.getPrimaryType()))) { String encoding = availableFlavors[i].getParameter("charset"); if (encoding == null) encoding = "us-ascii"; Reader r = null; try { r = new InputStreamReader (new ByteArrayInputStream(new byte[0]), encoding); } catch(UnsupportedEncodingException uee) { /* ignore */ } if (r != null) return df; } } return(null); }
|
return null; }
|
selectBestTextFlavor(DataFlavor[] availableFlavors){ for(int i=0; i<availableFlavors.length; i++) { DataFlavor df = availableFlavors[i]; Class c = df.representationClass; // A Reader or String is good. if ((Reader.class.isAssignableFrom(c)) || (String.class.isAssignableFrom(c))) { return df; } // A InputStream is good if the mime primary type is "text" if ((InputStream.class.isAssignableFrom(c)) && ("text".equals(df.getPrimaryType()))) { String encoding = availableFlavors[i].getParameter("charset"); if (encoding == null) encoding = "us-ascii"; Reader r = null; try { // Try to construct a dummy reader with the found encoding r = new InputStreamReader (new ByteArrayInputStream(new byte[0]), encoding); } catch(UnsupportedEncodingException uee) { /* ignore */ } if (r != null) return df; } } // Nothing found return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
setHumanPresentableName(String humanPresentableName) {
|
public void setHumanPresentableName(String humanPresentableName) {
|
setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
setHumanPresentableName(String humanPresentableName){ this.humanPresentableName = humanPresentableName;}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
toString() { return(getClass().getName()
|
public String toString() { return (getClass().getName()
|
toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
toString(){ return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
tryToLoadClass(String className, ClassLoader classLoader)
|
protected static final Class tryToLoadClass(String className, ClassLoader classLoader)
|
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { ; } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Exception e) { ; } try { return(ClassLoader.getSystemClassLoader().findClass(className)); } catch(Exception e) { ; } */ // FIXME: What is the context class loader? /* try { } catch(Exception e) { ; } */ if (classLoader != null) return(classLoader.loadClass(className)); else throw new ClassNotFoundException(className);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
{
|
{
|
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { ; } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Exception e) { ; } try { return(ClassLoader.getSystemClassLoader().findClass(className)); } catch(Exception e) { ; } */ // FIXME: What is the context class loader? /* try { } catch(Exception e) { ; } */ if (classLoader != null) return(classLoader.loadClass(className)); else throw new ClassNotFoundException(className);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { ; } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Exception e) { ; } try { return(ClassLoader.getSystemClassLoader().findClass(className)); } catch(Exception e) { ; } */ // FIXME: What is the context class loader? /* try { } catch(Exception e) { ; } */ if (classLoader != null) return(classLoader.loadClass(className)); else throw new ClassNotFoundException(className);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
writeExternal(ObjectOutput stream) throws IOException {
|
public void writeExternal(ObjectOutput stream) throws IOException {
|
writeExternal(ObjectOutput stream) throws IOException{ // FIXME: Implement me}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
}
|
}
|
writeExternal(ObjectOutput stream) throws IOException{ // FIXME: Implement me}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
|
if (attributePlace && s.getShowHex()) {
|
if (attributePlace && s.isShowHex()) {
|
public final void drawChar(Graphics2D g) { if (attributePlace && s.getShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(s.fmHeight /2)); g.drawChars(a, 1, 1, x+(int)(s.fmWidth/2), (int)(y + s.fmHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f); } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(cArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(cArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); g.drawLine(x + s.fmWidth / 2, y, x + s.fmWidth / 2, y + s.fmHeight); } } break; case RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) g.drawChars(sChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + s.fmWidth), cy -2); g.drawLine(x, (int)(y + (s.fmHeight - s.lm.getLeading()-5)), (int)(x + s.fmWidth), (int)(y + (s.fmHeight - s.lm.getLeading())-5)); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 1: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-4, x, y + s.fmHeight); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4, x + s.fmWidth - 1, y + s.fmHeight); break; case 2: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-3, x, y + s.fmHeight - (int)s.lm.getLeading()-4); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-3, x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4); break; default: g.setColor(fg); g.drawLine(x, y, x, y + s.fmHeight - 1); g.drawLine(x + s.fmWidth - 1, y, x + s.fmWidth - 1, y + s.fmHeight); break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; } } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/ScreenChar.java/buggy/tn5250j/src/org/tn5250j/ScreenChar.java
|
g.drawChars(sChar, 0, 1, x+1, cy -2);
|
if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2);
|
public final void drawChar(Graphics2D g) { if (attributePlace && s.getShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(s.fmHeight /2)); g.drawChars(a, 1, 1, x+(int)(s.fmWidth/2), (int)(y + s.fmHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f); } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(cArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(cArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); g.drawLine(x + s.fmWidth / 2, y, x + s.fmWidth / 2, y + s.fmHeight); } } break; case RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) g.drawChars(sChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + s.fmWidth), cy -2); g.drawLine(x, (int)(y + (s.fmHeight - s.lm.getLeading()-5)), (int)(x + s.fmWidth), (int)(y + (s.fmHeight - s.lm.getLeading())-5)); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 1: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-4, x, y + s.fmHeight); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4, x + s.fmWidth - 1, y + s.fmHeight); break; case 2: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-3, x, y + s.fmHeight - (int)s.lm.getLeading()-4); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-3, x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4); break; default: g.setColor(fg); g.drawLine(x, y, x, y + s.fmHeight - 1); g.drawLine(x + s.fmWidth - 1, y, x + s.fmWidth - 1, y + s.fmHeight); break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; } } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/ScreenChar.java/buggy/tn5250j/src/org/tn5250j/ScreenChar.java
|
g.drawChars(sChar, 0, 1, x, cy -2);
|
if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2);
|
public final void drawChar(Graphics2D g) { if (attributePlace && s.getShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y + (int)(s.fmHeight /2)); g.drawChars(a, 1, 1, x+(int)(s.fmWidth/2), (int)(y + s.fmHeight - (s.lm.getDescent() + s.lm.getLeading())-2)); g.setFont(f); } if(!nonDisplay && !attributePlace) { if (!useGui) { g.setColor(bg); g.fill(cArea); } else { if (bg == s.colorBg && whichGui >= FIELD_LEFT && whichGui <= FIELD_ONE) g.setColor(s.colorGUIField); else g.setColor(bg); g.fill(cArea); } if (useGui && (whichGui < FIELD_LEFT)) { int w = 0; g.setColor(fg); switch (whichGui) { case UPPER_LEFT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpper(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case UPPER_RIGHT: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, s.colorBlue, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinUpperRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); g.drawLine(x + s.fmWidth / 2, y, x + s.fmWidth / 2, y + s.fmHeight); } } break; case RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_LEFT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerLeft(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case BOTTOM: if (sChar[0] == '.') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinBottom(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; case LOWER_RIGHT: if (sChar[0] == ':') { if (s.isUsingGuiInterface()) { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_GRAPHIC, bg, x,y,s.fmWidth,s.fmHeight); } else { GUIGraphicsUtils.drawWinLowerRight(g, GUIGraphicsUtils.WINDOW_NORMAL, fg, x,y,s.fmWidth,s.fmHeight); } } break; } } else { if (sChar[0] != 0x0) { // use this until we define colors for gui stuff if ((useGui && whichGui < BUTTON_LEFT) && (fg == s.colorGUIField)) g.setColor(Color.black); else g.setColor(fg); try { if (useGui) g.drawChars(sChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2); } catch (IllegalArgumentException iae) { System.out.println(" ScreenChar iae " + iae.getMessage()); } } if(underLine ) { if (!useGui || s.guiShowUnderline) { g.setColor(fg);// g.drawLine(x, cy -2, (int)(x + s.fmWidth), cy -2); g.drawLine(x, (int)(y + (s.fmHeight - s.lm.getLeading()-5)), (int)(x + s.fmWidth), (int)(y + (s.fmHeight - s.lm.getLeading())-5)); } } if(colSep) { g.setColor(s.colorSep); switch (s.getColSepLine()) { case 1: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-4, x, y + s.fmHeight); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4, x + s.fmWidth - 1, y + s.fmHeight); break; case 2: g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-3, x, y + s.fmHeight - (int)s.lm.getLeading()-4); g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-3, x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4); break; default: g.setColor(fg); g.drawLine(x, y, x, y + s.fmHeight - 1); g.drawLine(x + s.fmWidth - 1, y, x + s.fmWidth - 1, y + s.fmHeight); break; } } } } if (useGui & (whichGui >= FIELD_LEFT)) { int w = 0; switch (whichGui) { case FIELD_LEFT: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_MIDDLE: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_RIGHT: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case FIELD_ONE: GUIGraphicsUtils.draw3DOne(g, GUIGraphicsUtils.INSET, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_LEFT: case BUTTON_LEFT_UP: case BUTTON_LEFT_DN: case BUTTON_LEFT_EB: GUIGraphicsUtils.draw3DLeft(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_MIDDLE: case BUTTON_MIDDLE_UP: case BUTTON_MIDDLE_DN: case BUTTON_MIDDLE_EB: GUIGraphicsUtils.draw3DMiddle(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; case BUTTON_RIGHT: case BUTTON_RIGHT_UP: case BUTTON_RIGHT_DN: case BUTTON_RIGHT_EB: GUIGraphicsUtils.draw3DRight(g, GUIGraphicsUtils.RAISED, x,y, s.fmWidth,s.fmHeight); break; // scroll bar case BUTTON_SB_UP: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 1, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_DN: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.RAISED, 2, x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_GUIDE: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 0,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; // scroll bar case BUTTON_SB_THUMB: GUIGraphicsUtils.drawScrollBar(g, GUIGraphicsUtils.INSET, 3,x,y, s.fmWidth,s.fmHeight, s.colorWhite,s.colorBg); break; } } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/ScreenChar.java/buggy/tn5250j/src/org/tn5250j/ScreenChar.java
|
protected void setPrehelpState(boolean setErrorCode) {
|
protected void setPrehelpState(boolean setErrorCode, boolean lockKeyboard, boolean unlockIfLocked) {
|
protected void setPrehelpState(boolean setErrorCode) { statusErrorCode = setErrorCode; setKeyboardLocked(setErrorCode); bufferedKeys = null; keysBuffered = false; setKBIndicatorOff(); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
setKeyboardLocked(setErrorCode);
|
if (isKeyboardLocked() && unlockIfLocked) setKeyboardLocked(false); else setKeyboardLocked(lockKeyboard);
|
protected void setPrehelpState(boolean setErrorCode) { statusErrorCode = setErrorCode; setKeyboardLocked(setErrorCode); bufferedKeys = null; keysBuffered = false; setKBIndicatorOff(); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
setPrehelpState(true);
|
setPrehelpState(true,true,false);
|
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, colorRed, colorWhite); // set environment variables switch (attr) { case STATUS_SYSTEM: if (value == STATUS_VALUE_ON) { statusXSystem =true; } else statusXSystem = false; break; case STATUS_ERROR_CODE: if (value == STATUS_VALUE_ON) { setPrehelpState(true); Toolkit.getDefaultToolkit().beep(); } else { setPrehelpState(false); homePos = saveHomePos; saveHomePos = 0; pendingInsert = false; } break; } updateImage(sArea.getBounds()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
setPrehelpState(false);
|
setPrehelpState(false,true,true);
|
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, colorRed, colorWhite); // set environment variables switch (attr) { case STATUS_SYSTEM: if (value == STATUS_VALUE_ON) { statusXSystem =true; } else statusXSystem = false; break; case STATUS_ERROR_CODE: if (value == STATUS_VALUE_ON) { setPrehelpState(true); Toolkit.getDefaultToolkit().beep(); } else { setPrehelpState(false); homePos = saveHomePos; saveHomePos = 0; pendingInsert = false; } break; } updateImage(sArea.getBounds()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
} setKBIndicatorOff();
|
setCursorOn(); } else { setPrehelpState(false,isKeyboardLocked(),false); }
|
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : case AID_PF8 : case AID_PF9 : case AID_PF10 : case AID_PF11 : case AID_PF12 : case AID_PF13 : case AID_PF14 : case AID_PF15 : case AID_PF16 : case AID_PF17 : case AID_PF18 : case AID_PF19 : case AID_PF20 : case AID_PF21 : case AID_PF22 : case AID_PF23 : case AID_PF24 : case AID_ROLL_DOWN : case AID_ROLL_UP : case AID_ROLL_LEFT : case AID_ROLL_RIGHT : sendAid(mnem); simulated = true; break; case AID_HELP : sessionVT.sendHelpRequest(); simulated = true; break; case AID_PRINT : sessionVT.hostPrint(1); simulated = true; break; case BACK_SPACE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.getCurrentField().startPos() == lastPos) displayError(ERR_CURSOR_PROTECTED); else { setCursorOff(); screenFields.getCurrentField().getKeyPos(lastPos); screenFields.getCurrentField().changePos(-1); resetDirty(screenFields.getCurrentField().getCurrentPos()); shiftLeft(screenFields.getCurrentField().getCurrentPos()); updateDirty(); setCursorOn(); screenFields.setCurrentFieldMDT(); simulated = true; } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BACK_TAB : if (screenFields.getCurrentField() != null && screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldPrev(); updateDirty(); } else gotoFieldPrev(); if (screenFields.isCurrentFieldContinued()) { do { gotoFieldPrev(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } isInField(lastPos); simulated = true; break; case UP : case MARK_UP : process_XY(lastPos - numCols); simulated = true; break; case DOWN : case MARK_DOWN : process_XY(lastPos + numCols); simulated = true; break; case LEFT : case MARK_LEFT : process_XY(lastPos - 1); simulated = true; break; case RIGHT : case MARK_RIGHT : process_XY(lastPos + 1); simulated = true; break; case NEXTWORD : gotoNextWord(); simulated = true; break; case PREVWORD : gotoPrevWord(); simulated = true; break; case DELETE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { setCursorOff(); resetDirty(lastPos); screenFields.getCurrentField().getKeyPos(lastPos); shiftLeft(screenFields.getCurrentFieldPos()); screenFields.setCurrentFieldMDT(); updateDirty(); setCursorOn(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case TAB : if (screenFields.getCurrentField() != null && !screenFields.isCurrentFieldContinued()) { if (screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldNext(); updateDirty(); } else gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.getCurrentField() != null && (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast())); } isInField(lastPos); simulated = true; break; case EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = endOfField(screenFields.getCurrentField().startPos(),true); if (where > 0) { goto_XY((where / numCols) + 1,(where % numCols) + 1); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case ERASE_EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { setCursorOff(); int where = lastPos; resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); setCursorOn(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case ERASE_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { setCursorOff(); int where = lastPos; lastPos = screenFields.getCurrentField().startPos(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); setCursorOn(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case INSERT : setCursorOff(); // we toggle it insertMode = insertMode ? false : true; setCursorOn(); break; case HOME : // position to the home position set if (lastPos + numCols + 1 != homePos) { goto_XY(homePos - numCols - 1); // now check if we are in a field isInField(lastPos); } else gotoField(1); break; case KEYPAD_0 : simulated = simulateKeyStroke('0'); break; case KEYPAD_1 : simulated = simulateKeyStroke('1'); break; case KEYPAD_2 : simulated = simulateKeyStroke('2'); break; case KEYPAD_3 : simulated = simulateKeyStroke('3'); break; case KEYPAD_4 : simulated = simulateKeyStroke('4'); break; case KEYPAD_5 : simulated = simulateKeyStroke('5'); break; case KEYPAD_6 : simulated = simulateKeyStroke('6'); break; case KEYPAD_7 : simulated = simulateKeyStroke('7'); break; case KEYPAD_8 : simulated = simulateKeyStroke('8'); break; case KEYPAD_9 : simulated = simulateKeyStroke('9'); break; case KEYPAD_PERIOD : simulated = simulateKeyStroke('.'); break; case KEYPAD_COMMA : simulated = simulateKeyStroke(','); break; case KEYPAD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } simulated = true; updateDirty(); if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_EXIT : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { setCursorOff(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); setCursorOn(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_PLUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { setCursorOff(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); setCursorOn(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { setCursorOff(); screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); setCursorOn(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = screenFields.getCurrentField().startPos(); if (where > 0) { goto_XY(where); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case SYSREQ : sessionVT.systemRequest(); simulated = true; break; case RESET : if (isStatusErrorCode()) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); isInField(lastPos); updateDirty(); } setKBIndicatorOff(); simulated = true; break; case COPY : copyMe(); break; case PASTE : pasteMe(false); break; case ATTN : sessionVT.sendAttentionKey(); simulated = true; break; case DUP_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.isCurrentFieldDupEnabled()) { setCursorOff(); resetDirty(lastPos); screenFields.getCurrentField().setFieldChar(lastPos,(char)0x1C); screenFields.setCurrentFieldMDT(); gotoFieldNext(); updateDirty(); setCursorOn(); simulated = true; } else { displayError(ERR_DUP_KEY_NOT_ALLOWED); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case NEW_LINE : if (screenFields.getSize() > 0) { int startRow = getRow(lastPos) + 1; int startPos = lastPos; boolean isthere = false; setCursorOff(); if (startRow == getRows()) startRow = 0; goto_XY(++startRow,1); if (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { while (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { // lets keep going advancePos(); // Have we looped the screen? if (lastPos == startPos) { // if so then go back to starting point goto_XY(startPos); break; } } } setCursorOn(); } simulated = true; break; case JUMP_NEXT_SESS : gui.nextSession(); simulated = true; break; case JUMP_PREV_SESS : gui.prevSession(); simulated = true; break; default : System.out.println(" Mnemonic not supported " + mnem); break; } return simulated; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
if (delegate == null) throw new IllegalArgumentException("Null 'delegate' argument.");
|
public IconUIResource(Icon delegate) { this.delegate = delegate; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/IconUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/IconUIResource.java
|
|
else { if (sess.getCount() == 0) System.exit(0); }
|
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 && sessions.containsKey(sel)){ sessionArgs = new String[NUM_PARMS]; parseArgs((String)sessions.getProperty(sel), sessionArgs); } if (sessionArgs == null || sess.getCount() > 0) { sel = getConnectSession(); if (sel != null) { String selArgs = sessions.getProperty(sel); sessionArgs = new String[NUM_PARMS]; parseArgs(selArgs, sessionArgs); if (!frame.isVisible()) frame.setVisible(true); newSession(sel,sessionArgs); } } else { if (!frame.isVisible()) frame.setVisible(true); newSession(sel,sessionArgs); } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b837c74486517f072bc2918ea13ddebfa75358b5/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
|
|
if (!initStageDone) super.addImpl(comp, constraints, index);
|
if (isRootPaneCheckingEnabled()) getContentPane().add(comp,constraints,index);
|
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - adding components " + "disallowed."); getContentPane().add(comp,constraints,index); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
{ if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - adding components " + "disallowed."); getContentPane().add(comp,constraints,index); }
|
super.addImpl(comp, constraints, index);
|
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - adding components " + "disallowed."); getContentPane().add(comp,constraints,index); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
initStageDone = true;
|
setRootPaneCheckingEnabled(true);
|
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // We're now done the init stage. initStageDone = true; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
if (initStageDone) {
|
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else super.setLayout(manager); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
|
throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead.");
|
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else super.setLayout(manager); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
|
}
|
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else super.setLayout(manager); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
|
|
hostFile.setText(ftpProtocol.getFullFileName(hostFile.getText()));
|
public void fileInfoReceived(FTPStatusEvent statusevent) { if (allFields.isSelected()) { doTransfer(); } else { selectFields(); } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b424408b7c5f668455972e5e401cbeda3a3ff25a/XTFRFile.java/buggy/tn5250j/src/org/tn5250j/tools/XTFRFile.java
|
|
this(SwingConstants.HORIZONTAL);
|
BasicHorizontalLayoutManager() { // Nothing to do here. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
|
return containerSize.width - insets.left - insets.right;
|
int size; if (axis == SwingConstants.HORIZONTAL) size = containerSize.width - insets.left - insets.right; else size = containerSize.height - insets.top - insets.bottom; return size;
|
protected int getAvailableSize(Dimension containerSize, Insets insets) { return containerSize.width - insets.left - insets.right; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return insets.left; return 0;
|
{ if (axis == SwingConstants.HORIZONTAL) loc = insets.left; else loc = insets.top; } return loc;
|
protected int getInitialLocation(Insets insets) { if (insets != null) return insets.left; return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return dims.width; return 0;
|
size = dims.height; } return size;
|
protected int getPreferredSizeOfComponent(Component c) { Dimension dims = c.getPreferredSize(); if (dims != null) return dims.width; return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return c.getWidth();
|
int size; if (axis == SwingConstants.HORIZONTAL) size = c.getHeight(); else size = c.getWidth(); return size;
|
protected int getSizeOfComponent(Component c) { return c.getWidth(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
Insets insets = target.getInsets(); int height = 0; int width = 0;
|
int primary = 0; int secondary = 0;
|
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null) { width += dims.width; height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null)
|
if (components[i] != null)
|
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null) { width += dims.width; height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
width += dims.width; height = Math.max(height, dims.height);
|
Dimension dims = components[i].getMinimumSize(); primary += axis == SwingConstants.HORIZONTAL ? dims.width : dims.height; int sec = axis == SwingConstants.HORIZONTAL ? dims.height : dims.width; secondary = Math.max(sec, secondary);
|
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null) { width += dims.width; height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return new Dimension(width, height);
|
int width = axis == SwingConstants.HORIZONTAL ? primary : secondary; int height = axis == SwingConstants.VERTICAL ? secondary : primary; Insets i = splitPane.getInsets(); dim.setSize(width + i.left + i.right, height + i.top + i.bottom);
|
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null) { width += dims.width; height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return null;
|
return dim;
|
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null) { width += dims.width; height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return dims.width;
|
if (axis == SwingConstants.HORIZONTAL) size = dims.width;
|
int minimumSizeOfComponent(int index) { Dimension dims = components[index].getMinimumSize(); if (dims != null) return dims.width; else return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return 0;
|
size = dims.height; return size;
|
int minimumSizeOfComponent(int index) { Dimension dims = components[index].getMinimumSize(); if (dims != null) return dims.width; else return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
Insets insets = target.getInsets(); int height = 0; int width = 0;
|
int primary = 0; int secondary = 0;
|
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null) { width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null)
|
if (components[i] != null)
|
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null) { width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height);
|
Dimension dims = components[i].getPreferredSize(); primary += axis == SwingConstants.HORIZONTAL ? dims.width : dims.height; int sec = axis == SwingConstants.HORIZONTAL ? dims.height : dims.width; secondary = Math.max(sec, secondary);
|
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null) { width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return new Dimension(width, height);
|
int width = axis == SwingConstants.HORIZONTAL ? primary : secondary; int height = axis == SwingConstants.VERTICAL ? secondary : primary; Insets i = splitPane.getInsets(); dim.setSize(width + i.left + i.right, height + i.top + i.bottom);
|
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null) { width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
return null;
|
return dim;
|
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null) { width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height); } } return new Dimension(width, height); } return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
int w = size; int h = containerSize.height - insets.top - insets.bottom; int x = location; int y = insets.top; c.setBounds(x, y, w, h);
|
if (insets != null) { if (axis == SwingConstants.HORIZONTAL) c.setBounds(location, insets.top, size, containerSize.height - insets.top - insets.bottom); else c.setBounds(insets.left, location, containerSize.width - insets.left - insets.right, size); } else { if (axis == SwingConstants.HORIZONTAL) c.setBounds(location, 0, size, containerSize.height); else c.setBounds(0, location, containerSize.width, size); }
|
protected void setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize) { int w = size; int h = containerSize.height - insets.top - insets.bottom; int x = location; int y = insets.top; c.setBounds(x, y, w, h); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
resetSizeAt(2);
|
protected void updateComponents() { Component left = splitPane.getLeftComponent(); Component right = splitPane.getRightComponent(); if (left != null) { components[0] = left; resetSizeAt(0); } if (right != null) { components[1] = right; resetSizeAt(1); } components[2] = divider; resetSizeAt(2); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
|
splitPane.setDividerSize(UIManager.getInt("SplitPane.dividerSize"));
|
dividerSize = UIManager.getInt("SplitPane.dividerSize"); splitPane.setDividerSize(dividerSize); divider.setDividerSize(dividerSize);
|
protected void installDefaults() { LookAndFeel.installColors(splitPane, "SplitPane.background", "SplitPane.foreground"); LookAndFeel.installBorder(splitPane, "SplitPane.border"); divider = createDefaultDivider(); divider.setBorder(UIManager.getBorder("SplitPaneDivider.border")); resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider splitPane.setDividerSize(UIManager.getInt("SplitPane.dividerSize")); splitPane.setOpaque(true); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneUI.java
|
if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
|
private void setTitle() { if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); if (getSessionAt(selectedIndex) != null && getSessionAt(selectedIndex).getAllocDeviceName() != null) setTitle(getTitle() + " - " + getSessionAt(selectedIndex).getAllocDeviceName()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d14a8da46d42d818b1471286d15431e66f4adb4/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
|
|
setTitle(getTitle() + " - " + getSessionAt(selectedIndex).getAllocDeviceName());
|
setTitle(getSessionAt(selectedIndex).getAllocDeviceName()); if (sequence - 1 > 0) setTitle(getTitle() + " - tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle(getTitle() + " - tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
|
private void setTitle() { if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); if (getSessionAt(selectedIndex) != null && getSessionAt(selectedIndex).getAllocDeviceName() != null) setTitle(getTitle() + " - " + getSessionAt(selectedIndex).getAllocDeviceName()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d14a8da46d42d818b1471286d15431e66f4adb4/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
|
setTitle();
|
public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); p.setForegroundAt(selectedIndex,Color.black); p.setIconAt(selectedIndex,unfocused); Session sg = (Session)p.getComponentAt(selectedIndex); sg.setVisible(false); sg = (Session)p.getSelectedComponent(); if (sg == null) return; sg.setVisible(true); sg.grabFocus(); selectedIndex = p.getSelectedIndex(); p.setForegroundAt(selectedIndex,Color.blue); p.setIconAt(selectedIndex,focused); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d14a8da46d42d818b1471286d15431e66f4adb4/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
|
|
public void connect(Stub self, javax.rmi.ORB orb)
|
public void connect(Stub self, ORB orb)
|
public void connect(Stub self, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
throw new Error("Not implemented for StubDelegate");
|
connect(self, orb, null);
|
public void connect(Stub self, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
public boolean equals(Stub self, Object obj)
|
public boolean equals(Stub self, java.lang.Object obj)
|
public boolean equals(Stub self, Object obj) { if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode();
|
if (obj instanceof ObjectImpl) { ObjectImpl other = (ObjectImpl) obj; Delegate d1 = other._get_delegate(); Delegate d2 = self._get_delegate(); if (d1 == null || d2 == null) return d1 == d2; else return d1.equals(d2); } else return false;
|
public boolean equals(Stub self, Object obj) { if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
return hashCode;
|
Delegate d = self._get_delegate(); return d==null?0:d.hashCode();
|
public int hashCode(Stub self) { //FIX ME return hashCode; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
public void readObject(Stub self, ObjectInputStream s)
|
public void readObject(Stub self, ObjectInputStream input)
|
public void readObject(Stub self, ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
throw new Error("Not implemented for StubDelegate");
|
readObject(self, input, null);
|
public void readObject(Stub self, ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
catch(javax.rmi.BAD_OPERATION bad_operation)
|
catch (Exception ex)
|
public String toString(Stub self) { try { return self._orb().object_to_string(self); } // XXX javax.rmi.BAD_OPERATION -> org.omg.CORBA.BAD_OPERATION catch(javax.rmi.BAD_OPERATION bad_operation) { return null; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
public void writeObject(Stub self, ObjectOutputStream s)
|
public void writeObject(Stub self, ObjectOutputStream output)
|
public void writeObject(Stub self, ObjectOutputStream s) throws IOException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
throw new Error("Not implemented for StubDelegate");
|
writeObject(self, output, null);
|
public void writeObject(Stub self, ObjectOutputStream s) throws IOException { throw new Error("Not implemented for StubDelegate"); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/StubDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/StubDelegateImpl.java
|
{
|
{
|
public MetalSplitPaneDivider(MetalSplitPaneUI ui, Color light, Color dark) { super(ui); setLayout(new MetalDividerLayout()); this.splitPane = super.splitPane; this.orientation = super.orientation; this.light = light; this.dark = dark; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
setLayout(new MetalDividerLayout());
|
public MetalSplitPaneDivider(MetalSplitPaneUI ui, Color light, Color dark) { super(ui); setLayout(new MetalDividerLayout()); this.splitPane = super.splitPane; this.orientation = super.orientation; this.light = light; this.dark = dark; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
|
}
|
}
|
public MetalSplitPaneDivider(MetalSplitPaneUI ui, Color light, Color dark) { super(ui); setLayout(new MetalDividerLayout()); this.splitPane = super.splitPane; this.orientation = super.orientation; this.light = light; this.dark = dark; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
{
|
{
|
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
}
|
}
|
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4,
|
Insets i = getInsets(); MetalUtils.fillMetalPattern(splitPane, g, i.left + 2, i.top + 2, s.width - i.left - i.right - 4, s.height - i.top - i.bottom - 4,
|
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); }
|
super.paint(g);
|
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalSplitPaneDivider.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java
|
public SortingFocusTraversalPolicy(Comparator comparator)
|
protected SortingFocusTraversalPolicy()
|
public SortingFocusTraversalPolicy(Comparator comparator) { this.comparator = comparator; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/SortingFocusTraversalPolicy.java/buggy/core/src/classpath/javax/javax/swing/SortingFocusTraversalPolicy.java
|
this.comparator = comparator;
|
public SortingFocusTraversalPolicy(Comparator comparator) { this.comparator = comparator; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/SortingFocusTraversalPolicy.java/buggy/core/src/classpath/javax/javax/swing/SortingFocusTraversalPolicy.java
|
|
return new CubicSegment(P1.getX(), P1.getY(), cp1.getX(), cp1.getY(), cp2.getX(), cp2.getY(), P2.getX(), P2.getY());
|
CubicSegment segment = null; try { segment = (CubicSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); segment.cp1 = (Point2D) cp1.clone(); segment.cp2 = (Point2D) cp2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment;
|
public Object clone() { return new CubicSegment(P1.getX(), P1.getY(), cp1.getX(), cp1.getY(), cp2.getX(), cp2.getY(), P2.getX(), P2.getY()); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/CubicSegment.java/clean/core/src/classpath/gnu/gnu/java/awt/java2d/CubicSegment.java
|
first = this;
|
public Segment() { P1 = P2 = null; next = null; last = this; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/Segment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/Segment.java
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.