rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if(delegate != null)
public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; }
else return false;
public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; }
if(delegate != null) return delegate.hashCode(this); else return 0;
if (m_hash == Integer.MIN_VALUE) m_hash = delegate.hashCode(this); return m_hash;
public int hashCode() { if(delegate != null) return delegate.hashCode(this); else return 0; }
private void readObject(ObjectInputStream stream)
private void readObject(ObjectInputStream input)
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); }
if(delegate != null) delegate.readObject(this, stream);
if (delegate instanceof StubDelegateImpl) ((StubDelegateImpl) delegate).readObject(this, input, m_orb); else delegate.readObject(this, input);
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); }
String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s;
if (m_ior == null) m_ior = delegate.toString(this); return m_ior;
public String toString() { String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s; }
private void writeObject(ObjectOutputStream stream)
private void writeObject(ObjectOutputStream output)
private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); }
if(delegate != null) delegate.writeObject(this, stream);
if (delegate instanceof StubDelegateImpl) ((StubDelegateImpl) delegate).writeObject(this, output, m_orb); else delegate.writeObject(this, output);
private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); }
void connect(Stub self, javax.rmi.ORB orb)
void connect(Stub self, ORB orb)
void connect(Stub self, javax.rmi.ORB orb) throws RemoteException;
System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol);
public void onScreenChanged(int inUpdate, int startRow, int startCol, int endRow, int endCol) { iOhioPosition inStart = new iOhioPosition(startRow,startCol); iOhioPosition inEnd = new iOhioPosition(endRow,endCol);// System.out.println("screen updated -> " + startRow + ", "// ...
int idx = mimeType.indexOf("/"); if (idx == -1) return("");
int start = mimeType.indexOf("/"); if (start == -1) return "";
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));}
String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype);
int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1);
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));}
return(subtype.substring(0, idx));
return mimeType.substring(start + 1, end);
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));}
String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i);
isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));}
return(this.mimeType.equals(mimeType));
i = mimeType.indexOf(";"); if (i != -1) mimeType = mimeType.substring(0, i); return mime.equals(mimeType);
isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));}
throw new RuntimeException("Not implemented");
return Remote.class.isAssignableFrom (representationClass);
isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");}
return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName);
return(getClass().getName() + "[representationClass=" + getRepresentationClass().getName() + ",mimeType=" + getMimeType() + ",humanPresentableName=" + getHumanPresentableName() + "]");
toString(){ return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName);}
public File createFileObject(String path)
public File createFileObject(File dir, String filename)
public File createFileObject(String path) { return new File(path); }
return new File(path);
return new File(dir, filename);
public File createFileObject(String path) { return new File(path); }
public String getDescription(File value0) { return null; }
public String getDescription(File file) { return null; }
public String getDescription(File value0) { return null; // TODO } // getDescription()
public Icon getIcon(File value0) { return null; }
public Icon getIcon(File file) { return null; }
public Icon getIcon(File value0) { return null; // TODO } // getIcon()
public String getTypeDescription(File value0) { return null; }
public String getTypeDescription(File file) { return null; }
public String getTypeDescription(File value0) { return null; // TODO } // getTypeDescription()
setBorder(noFocusBorder);
public BasicComboBoxRenderer() { setHorizontalAlignment(SwingConstants.LEFT); }
private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0)
private static double scale(double x, int n) { if (Configuration.DEBUG && abs(n) >= 2048) throw new InternalError("Assertion failure"); if (x == 0 || x == Double.NEGATIVE_INFINITY || ! (x < Double.POSITIVE_INFINITY) || n == 0)
private static double scale(double x, int n) { if (x == 0 || x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || n == 0) return x; long bits = Double.doubleToLongBits(x); int exp = (int) (bits >> 52) & 0x7ff; if (exp == 0) // Subnormal x. { x *= TWO_54; exp = ((int) (Double.doubleToLongBits...
public static double toDegrees(double rads) { return rads * (180 / PI);
public static double toDegrees(double rads) { return (rads * 180) / PI;
public static double toDegrees(double rads) { return rads * (180 / PI); }
public static double toRadians(double degrees) { return degrees * (PI / 180);
public static double toRadians(double degrees) { return (degrees * PI) / 180;
public static double toRadians(double degrees) { return degrees * (PI / 180); }
getCursorType() { return(getCursor().getType()); }
public int getCursorType() { return getCursor().getType(); }
getCursorType(){ return(getCursor().getType());}
remove(MenuComponent menu) {
public void remove(MenuComponent menu) {
remove(MenuComponent menu){ menuBar.remove(menu);}
setCursor(int type) {
public void setCursor(int type) {
setCursor(int type){ setCursor(new Cursor(type));}
setMenuBar(MenuBar menuBar) {
public synchronized void setMenuBar(MenuBar menuBar) {
setMenuBar(MenuBar menuBar){ if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } this.menuBar = menuBar;}
setResizable(boolean resizable) {
public synchronized void setResizable(boolean resizable) {
setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable);}
throw new BAD_OPERATION("Invalid completion status " + completion);
BAD_OPERATION bad = new BAD_OPERATION("Invalid completion status " + completion); bad.minor = Minor.Enumeration; throw bad;
public static CompletionStatus from_int(int completion) { try { return states [ completion ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid completion status " + completion); } }
super ("UTF-16BE", null);
super ("UTF-16BE", new String[] { "UTF16BE", "x-utf-16be", "ibm-1200", "ibm-1201", "ibm-5297", "ibm-13488", "ibm-17584", "windows-1201", "cp1200", "cp1201", "UTF16_BigEndian", "UnicodeBigUnmarked" });
UTF_16BE () { super ("UTF-16BE", null); }
public VirtualMachineError(String s) { super(s);
public VirtualMachineError() {
public VirtualMachineError(String s) { super(s); }
public ThreadNameArgument(String name, String description) { super(name, description);
public ThreadNameArgument(String name, String description, boolean multi) { super(name, description, multi);
public ThreadNameArgument(String name, String description) { super(name, description); }
if (c.getBorder() instanceof UIResource) c.setBorder(null);
public static void uninstallBorder(JComponent c) { }
public ImageIcon(URL url)
public ImageIcon()
public ImageIcon(URL url) { this(url, null); }
this(url, null); }
}
public ImageIcon(URL url) { this(url, null); }
Log.errorln("FormatObject: "+formatObj.getClass());
private ArrayList formattedSplitStringIntoStringObjects ( String data , FormattedXMLDataIOStyle readObj ) { ArrayList stringObjList = new ArrayList(); List commandList = readObj...
getDataCube().incrementDimension((Axis) axis);
public AxisInterface addAxis(AxisInterface axis) { if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else if (canAddAxisObjToArray((Axis) axis)) { //check if the axis can be added getDataCube().incrementDimension((Axis) axis); //increment the DataCube di...
if (field == null) { Log.warn("in FieldAxis.addField(),Field passed in is null"); return null; }
public Field addField (Field field) { if (field == null) { Log.warn("in FieldAxis.addField(),Field passed in is null"); return null; } getFieldList().add(field); length++; return field; }
if (n == null) { Log.warn("in Field.addNote(), the Note passed in is null"); return null; }
public Note addNote(Note n) { if (n == null) { Log.warn("in Field.addNote(), the Note passed in is null"); return null; } getNoteList().add(n); return n; }
if (tag == null || axisId== null) { Log.error("Missing information: need tag AND axisId for addAxisTag. Ignoring request. returning null"); return; }
public void setAxisTag(String tag, String axisId) { if (tag == null || axisId== null) { Log.error("Missing information: need tag AND axisId for addAxisTag. Ignoring request. returning null"); return; } //insert in hash table, return tag value tagHash.put(axisId, tag); }
if (unit == null) { Log.warn("in Array.addUnit(), the Unit passed in is null"); return null; }
public Unit addUnit(Unit unit) { if (unit == null) { Log.warn("in Array.addUnit(), the Unit passed in is null"); return null; } Units u = getUnits(); if (u == null) { u = new Units(); setUnits(u); } return u.addUnit(unit); }
public Value () {
public Value (String strValue) {
public Value () { init(); }
setValue(strValue);
public Value () { init(); }
public void setData (Locator locator, String strValue ) throws SetDataException
public void setData (Locator locator, Object dataObj) throws SetDataException
public void setData (Locator locator, String strValue ) throws SetDataException { getDataCube().setData(locator, strValue); }
getDataCube().setData(locator, strValue);
if (dataObj.getClass().isArray()) { if (dataObj instanceof int[] ) this.setData (locator, (int[])dataObj); else if (dataObj instanceof long[]) this.setData (locator, (long[])dataObj); else if (dataObj instanceof float[]) this.setData (locator, (float[])dataObj); else if (dataObj instanceof double[]) this.setData (locat...
public void setData (Locator locator, String strValue ) throws SetDataException { getDataCube().setData(locator, strValue); }
public int getNextMatch(String prefix, int startIndex, Position.Bias bias)
public int getNextMatch(String prefix, int startIndex, Position.Bias direction)
public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex...
if (startIndex > model.getSize())
if (startIndex >= model.getSize())
public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex...
int index = -1; if (bias == Position.Bias.Forward)
int result = -1; int current = startIndex; int delta = -1; int itemCount = model.getSize(); boolean finished = false; prefix = prefix.toUpperCase(); if (direction == Position.Bias.Forward) delta = 1; while (!finished)
public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex...
for (int i = startIndex; i < size; i++) { String item = model.getElementAt(i).toString(); if (item.startsWith(prefix)) { index = i; break; } }
String itemStr = model.getElementAt(current).toString().toUpperCase(); if (itemStr.startsWith(prefix)) return current; current = (current + delta); if (current == -1) current += itemCount; else current = current % itemCount; finished = current == startIndex;
public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex...
else { for (int i = startIndex; i >= 0; i--) { String item = model.getElementAt(i).toString(); if (item.startsWith(prefix)) { index = i; break; } } } return index;
return result;
public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex...
if (orientation == VERTICAL) return visibleRect.height * direction;
int block = -1; if (orientation == SwingConstants.VERTICAL) { block = visibleRect.height; if (direction > 0) { Point p = new Point(visibleRect.x, visibleRect.y + visibleRect.height - 1); int last = locationToIndex(p); if (last != -1) { Rectangle lastR = getCellBounds(last, last); if (lastR != null) { block = lastR...
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
return visibleRect.width * direction;
{ Point p = new Point(visibleRect.x, visibleRect.y - visibleRect.height); int newFirst = locationToIndex(p); if (newFirst != -1) { int first = getFirstVisibleIndex(); if (first == -1) first = locationToIndex(visibleRect.getLocation()); Rectangle newFirstR = getCellBounds(newFirst, newFirst); Rectangle firstR = getCe...
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
ListUI lui = this.getUI();
int unit = -1;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
if (direction > 0)
int row = getFirstVisibleIndex(); if (row == -1) unit = 0; else if (direction > 0)
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
Point bottomLeft = new Point(visibleRect.x, visibleRect.y + visibleRect.height); int curIdx = lui.locationToIndex(this, bottomLeft); Rectangle curBounds = lui.getCellBounds(this, curIdx, curIdx); if (curBounds.y + curBounds.height == bottomLeft.y) { if (curIdx + 1 < model.getSize()) { Rectangle nxtBounds = lui.getCe...
Rectangle bounds = getCellBounds(row, row); if (bounds != null) unit = bounds.height - (visibleRect.y - bounds.y); else unit = 0;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
return 0; }
Rectangle bounds = getCellBounds(row, row); if (row == 0 && bounds.y == visibleRect.y) unit = 0; else if (bounds.y == visibleRect.y) { Point loc = bounds.getLocation(); loc.y--; int prev = locationToIndex(loc); Rectangle prevR = getCellBounds(prev, prev); if (prevR == null || prevR.y >= bounds.y) unit = 0; else unit ...
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
{ return (curBounds.y + curBounds.height) - bottomLeft.y;
unit = visibleRect.y - bounds.y;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
else
else if (orientation == SwingConstants.HORIZONTAL && getLayoutOrientation() != VERTICAL)
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
Point topLeft = new Point(visibleRect.x, visibleRect.y); int curIdx = lui.locationToIndex(this, topLeft); Rectangle curBounds = lui.getCellBounds(this, curIdx, curIdx); if (curBounds.y == topLeft.y)
int i = locationToIndex(visibleRect.getLocation()); if (i != -1) { Rectangle b = getCellBounds(i, i); if (b != null)
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
if (curIdx > 0)
if (b.x != visibleRect.x)
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
Rectangle nxtBounds = lui.getCellBounds(this, curIdx - 1, curIdx - 1); return -nxtBounds.height; } else { return 0; }
if (direction < 0) unit = Math.abs(b.x - visibleRect.x); else unit = b.width + b.x - visibleRect.x;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
{ return curBounds.y - topLeft.y;
unit = b.width;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
return 1;
if (unit == -1) { Font f = getFont(); unit = f != null ? f.getSize() : 1; } return unit;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { // Scrolling down Point bottomLeft = new...
return valueIsAdjusting;
return selectionModel.getValueIsAdjusting();
public boolean getValueIsAdjusting() { return valueIsAdjusting; }
valueIsAdjusting = false; visibleRowCount = 7;
visibleRowCount = 8;
private void init(ListModel m) { if (m == null) throw new IllegalArgumentException("Null model not permitted."); dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 7; cellRenderer = n...
if (orientation < JList.VERTICAL || orientation > JList.HORIZONTAL_WRAP) throw new IllegalArgumentException();
public void setLayoutOrientation(int orientation) { if (layoutOrientation == orientation) return; int old = layoutOrientation; layoutOrientation = orientation; firePropertyChange("layoutOrientation", old, orientation); }
valueIsAdjusting = isAdjusting;
selectionModel.setValueIsAdjusting(isAdjusting);
public void setValueIsAdjusting(boolean isAdjusting) { valueIsAdjusting = isAdjusting; }
visibleRowCount = vc;
if (visibleRowCount != vc) { int oldValue = visibleRowCount; visibleRowCount = Math.max(vc, 0); firePropertyChange("visibleRowCount", oldValue, vc);
public void setVisibleRowCount(int vc) { visibleRowCount = vc; revalidate(); repaint(); }
}
public void setVisibleRowCount(int vc) { visibleRowCount = vc; revalidate(); repaint(); }
public AnyHolder(Any initial_value)
public AnyHolder()
public AnyHolder(Any initial_value) { value = initial_value; }
value = initial_value;
public AnyHolder(Any initial_value) { value = initial_value; }
bad.minor = Minor.Any;
public static ServiceContext extract(Any any) { try { return ((ServiceContextHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("ServiceContext expected"); bad.initCause(cex); throw bad; } }
if (CM != 8)
if (CM != Deflater.DEFLATED)
private void readHeader() throws IOException { /* 1. Check the two magic bytes */ CRC32 headCRC = new CRC32(); int magic = in.read(); if (magic < 0) { eos = true; return; } int magic2 = in.read(); if ((magic + (magic2 << 8)) != GZIP_MAGIC) throw new IOException("Error in GZIP h...
public InflaterInputStream(InputStream in, Inflater inf, int size)
public InflaterInputStream(InputStream in)
public InflaterInputStream(InputStream in, Inflater inf, int size) { super(in); this.inf = inf; this.len = 0; if (size <= 0) throw new IllegalArgumentException("size <= 0"); buf = new byte[size]; //Create the buffer }
super(in); this.inf = inf; this.len = 0; if (size <= 0) throw new IllegalArgumentException("size <= 0"); buf = new byte[size];
this(in, new Inflater(), 4096);
public InflaterInputStream(InputStream in, Inflater inf, int size) { super(in); this.inf = inf; this.len = 0; if (size <= 0) throw new IllegalArgumentException("size <= 0"); buf = new byte[size]; //Create the buffer }
public void close() throws IOException
public synchronized void close() throws IOException
public void close() throws IOException { in.close(); }
in = null;
public void close() throws IOException { in.close(); }
public int read(byte[] b, int off, int len) throws IOException { for (;;) { int count; try { count = inf.inflate(b, off, len); } catch (DataFormatException dfe) { throw new ZipException(dfe.getMessage()); } if (count > 0) return count; if (inf.needsDictionary()) throw new ZipException("Need a dictionary"); else if (i...
public int read() throws IOException { int nread = read(onebytebuffer, 0, 1); if (nread > 0) return onebytebuffer[0] & 0xff; return -1;
public int read(byte[] b, int off, int len) throws IOException { for (;;) { int count; try { count = inf.inflate(b, off, len); } catch (DataFormatException dfe) { throw new ZipException(dfe.getMessage()); } if (count > 0) return count; if (inf.needsDictionary()) throw new ZipException(...
super(toolkit, label, new JLabel()); final JLabel jLabel = (JLabel)jComponent; this.label = label;
super(toolkit, label, new SwingLabel(label)); final JLabel jLabel = (JLabel) jComponent;
public SwingLabelPeer(SwingToolkit toolkit, Label label) { super(toolkit, label, new JLabel()); final JLabel jLabel = (JLabel)jComponent; this.label = label; SwingToolkit.add(label, jLabel); SwingToolkit.copyAwtProperties(label, jLabel); setText(label.getText()); }
File directory2 = new File(GlobalConfigure.instance().getProperty(
File directory2 = new File(GlobalConfigure.getInstance().getProperty(
private static boolean checkScripts() { File directory = new File("scripts"); File directory2 = new File(GlobalConfigure.instance().getProperty( "emulator.settingsDirectory") + "scripts"); return directory.isDirectory() || directory2.isDirectory(); ...
public String getProperty(String key) { return "";
public String getProperty(String key, String def) { return def;
public String getProperty(String key) { return ""; }
public Array setParentArray(Array parentArray) {
protected Array setParentArray(Array parentArray) {
public Array setParentArray(Array parentArray) { Log.debug("in XMLDataIOStyle, setParentArray()"); this.parentArray = parentArray; return parentArray; }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; else ...
Hashtable xmlInfo = getXMLInfo();
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; else ...
synchronized(attribHash) { String attrib; if ( (attrib=getEncoding()) !=null) writeOut(outputstream, " encoding=" + attrib); if ( (attrib=getEndian()) !=null) writeOut(outputstream, " endian=" + attrib); if ( (attrib=getReadId()) !=null) writeOut(outputstream, " readId=" + attrib); if ( (attrib=getReadIdRef()) !=null) ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; else ...
ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); synchronized(attribs) { int stop = attribs.size(); for (int i = 0; i < stop; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\""); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { boolean niceOutput = sPrettyXDFOutput; String myIndent; if (indent!=null) myIndent = indent; else ...
part0 = new MappedBlockDeviceSupport(device, pte.getStartLba()
part0 = new MappedFSBlockDeviceSupport(device, pte.getStartLba()
protected void formatDevice(Device device) throws IOException { /* Format the MBR & partitiontable */ GrubBootSector mbr = (GrubBootSector) (createFormatter() .getBootSector()); mbr.getPartition(0).clear(); mbr.getPartition(1).clear(); mbr.getPartition(2).clear(); ...
int unresolved = 0;
int unresolvedFound = 0;
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
unresolved++;
unresolvedFound++;
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
if (blockObjects == null) { emittedClassNames.add(obj.getClass().getName()); }
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
if (unresolved == lastUnresolved) { if ((unresolved == 0) || (blockObjects != null)) {
if (unresolvedFound == lastUnresolved) { if (unresolvedFound == 0) {
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
lastUnresolved = unresolved;
lastUnresolved = unresolvedFound;
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
if (blockObjects == null) { log("Emitted classes: " + emittedClassNames); }
private final void emitObjects(NativeStream os, VmArchitecture arch, Set blockObjects) throws BuildException { log("Emitting objects", Project.MSG_DEBUG); PrintWriter debugOut = null; try { if (debug) { debugOut = new PrintWriter(new FileWriter(debugFile)); } final ObjectEmitter emitter = new ObjectEmitter...
VmType bootClasses[] = clsMgr.prepareAfterBootstrap(); os.getObjectRef(bootClasses); emitObjects(os, arch, blockedObjects);
public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin...
printLabels(os, bootClasses);
printLabels(os, bootClasses, clsMgr.getStatics());
public final void execute() throws BuildException { final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { piList = getPlugin...
protected final void printLabels(NativeStream os, VmType[] bootClasses) throws BuildException, UnresolvedObjectRefException {
protected final void printLabels(NativeStream os, VmType[] bootClasses, VmStatics statics) throws BuildException, UnresolvedObjectRefException {
protected final void printLabels(NativeStream os, VmType[] bootClasses) throws BuildException, UnresolvedObjectRefException { try { int unresolvedCount = 0; final PrintWriter w = new PrintWriter(new FileWriter(listFile)); // Print a list of boot classes. for (int i = 0; i < bootClasses.length; i++) { final...
final int[] table = (int[]) statics.getTable(); for (int i = 0; i < table.length; i++) { w.print(NumberUtils.hex((VmArray.DATA_OFFSET + i) << 2)); w.print(":"); w.print(NumberUtils.hex(statics.getType(i), 2)); w.print("\t"); w.print(NumberUtils.hex(table[i])); w.println(); }
protected final void printLabels(NativeStream os, VmType[] bootClasses) throws BuildException, UnresolvedObjectRefException { try { int unresolvedCount = 0; final PrintWriter w = new PrintWriter(new FileWriter(listFile)); // Print a list of boot classes. for (int i = 0; i < bootClasses.length; i++) { final...