rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
cal.set(Calendar.MONTH, (dosDate >> 5) & 0x0f);
cal.set(Calendar.MONTH, ((dosDate >> 5) & 0x0f) - 1 );
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (dosDate...
32 * cal.get(Calendar.MONTH) +
32 * ( cal.get(Calendar.MONTH) + 1 ) +
public static int encodeDate(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * cal.get(Calendar.MONTH) + cal.get(Calendar.DATE); }
return 2048 * cal.get(Calendar.HOUR) +
return 2048 * cal.get(Calendar.HOUR_OF_DAY) +
public static int encodeTime(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 2048 * cal.get(Calendar.HOUR) + 32 * cal.get(Calendar.MINUTE) + cal.get(Calendar.SECOND) / 2; }
return super.viewToModel(fx, fy, a, bias);
return super.viewToModel(fx, fy, adjustAllocation(a), bias);
public int viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) { return super.viewToModel(fx, fy, a, bias); }
return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton)
Border b = UIManager.getBorder("ToolBar.rolloverBorder"); if (b == null)
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height);
b = new CompoundBorder( new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highlight")), BasicBorders.getMarginBorder());
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
} };
return b;
protected Border createRolloverBorder() { return new EtchedBorder() { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (c instanceof JButton) { if (((JButton) c).getModel().isRollover()) super.paintBorder(c, g, x, y, width, height...
throws NotImplementedException
protected void navigateFocusedComp(int direction) { // FIXME: Implement. }
borders.put(b, b.getBorder());
protected void setBorderToNonRollover(Component c) { if (c instanceof AbstractButton) { AbstractButton b = (AbstractButton) c; b.setRolloverEnabled(false); b.setBorder(nonRolloverBorder); } }
if (c instanceof JButton)
if (c instanceof AbstractButton)
protected void setBorderToNormal(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border);
AbstractButton b = (AbstractButton) c; b.setRolloverEnabled(true); b.setBorder((Border) borders.remove(b));
protected void setBorderToNormal(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; Border border = (Border) borders.get(b); b.setBorder(border); } }
if (c instanceof JButton)
if (c instanceof AbstractButton)
protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
JButton b = (JButton) c; b.setRolloverEnabled(true);
AbstractButton b = (AbstractButton) c; b.setRolloverEnabled(false); borders.put(b, b.getBorder());
protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } }
protected void flushBits()
protected final void flushBits()
protected void flushBits() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
limit(capacity());
public CharBuffer compact () { int copied = 0; while (remaining () > 0) { put (copied, get ()); copied++; } position (copied); return this; }
"An Error is thrown while processing the invocation on the server", e);
"Server error, ObjID: " + objid + ", method: " + method + ", hash: "+ hash, e);
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
returnval = new NoSuchObjectException("");
returnval = new NoSuchObjectException("ObjID: " + objid);
private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start // ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLon...
setDeadCode(true);
public VariableRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, int rhsIndex) { super(address, block, lhsIndex); refs = new Operand[] { getOperand(rhsIndex) }; setDeadCode(true); }
Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) {
Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++)
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
return getInstance(algorithm, provs[i]);
return getInstance(algorithm, p[i]);
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
catch (NoSuchAlgorithmException ignore)
catch (NoSuchAlgorithmException x)
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
}
if (lastException != null) throw lastException;
public static final KeyManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmEx...
connection.setDoInput(false);
void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); if (writer != nul...
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, numberOfBits, (w * numberOfBits + DataBuffer.getDataTypeSize(dataType) - 1) / DataBuffer.getDataTypeSize(dataType), 0); if (dataType != DataBuffer.TYPE_BYTE && dataType != DataBuffer.TYPE_USHORT && dataType != DataBu...
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, 0, numberOfBits, 0);
public MultiPixelPackedSampleModel(int dataType, int w, int h, int numberOfBits) { this(dataType, w, h, numberOfBits, (w * numberOfBits + DataBuffer.getDataTypeSize(dataType) - 1) / DataBuffer.getDataTypeSize(dataType), 0); if (dataType != DataBuffer.TYPE_BYTE && dataType != DataBuffer.TYPE_USHORT && dataType != Dat...
public SampleModel createCompatibleSampleModel(int w, int h) { SampleModel sampleModel = new MultiPixelPackedSampleModel(dataType, w, h, pixelBitStride); return sampleModel;
public SampleModel createCompatibleSampleModel(int w, int h) { return new MultiPixelPackedSampleModel(dataType, w, h, numberOfBits);
public SampleModel createCompatibleSampleModel(int w, int h) { SampleModel sampleModel = new MultiPixelPackedSampleModel(dataType, w, h, pixelBitStride); return sampleModel; }
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null;
public DataBuffer createDataBuffer() { int size;
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBitOffset + 15) / 16); break; case DataBuffer.TYPE_INT : dataBuffer = new DataBufferInt(...
size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size);
public DataBuffer createDataBuffer() { DataBuffer dataBuffer = null; int size = scanlineStride * height; switch (dataType) { case DataBuffer.TYPE_BYTE : dataBuffer = new DataBufferByte(size + (dataBitOffset + 7) / 8); break; case DataBuffer.TYPE_USHORT : dataBuffer = new DataBufferUShort(size + (dataBi...
public SampleModel createSubsetSampleModel(int bands[]) { if (bands != null) { if (bands.length != 1) throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band."); } SampleModel sm = createCompatibleSampleModel(width, height); return sm;
public SampleModel createSubsetSampleModel(int[] bands) { int numBands = bands.length; if (numBands != 1) throw new RasterFormatException("MultiPixelPackedSampleModel only" + " supports one band"); return new MultiPixelPackedSampleModel(dataType, width, height, numberOfBits, scanlineStride, dataBitOffset);
public SampleModel createSubsetSampleModel(int bands[]) { if (bands != null) { if (bands.length != 1) throw new RasterFormatException("MultiPixelPackedSampleModel has " + "only one band."); } SampleModel sm = createCompatibleSampleModel(width, height); return sm; }
public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; }
public int getBitOffset(int x) { return (dataBitOffset + x*numberOfBits) % elemBits; }
public int getBitOffset(int x) { return (x * pixelBitStride + dataBitOffset) % dataElementSize; }
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int shift = dataElementSize - (bi...
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int pixel = getSample(x, y, 0, data); switch (getTransferType()) { case DataBuffer.TYPE_BYTE: if (obj == null) obj = new byte[1]; ((byte[])obj)[0] = (byte)pixel; return obj; case DataBuffer.TYPE_USHORT: if (obj == null) obj = new short[1]; ((sho...
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int shift = dataElementSiz...
public int getOffset(int x, int y) { int offset = y * scanlineStride; offset += (x * pixelBitStride + dataBitOffset) / dataElementSize; return offset;
public int getOffset(int x, int y) { return scanlineStride * y + ((dataBitOffset + x*numberOfBits) / elemBits);
public int getOffset(int x, int y) { int offset = y * scanlineStride; offset += (x * pixelBitStride + dataBitOffset) / dataElementSize; return offset; }
public int[] getPixel(int x, int y, int iArray[], DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int pixels[]; if (iArray != null) { pixels = iArray; } else { pixels = new int[numBands]; } int bitnum = dataBitOffset ...
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[1]; iArray[0] = getSample(x, y, 0, data); return iArray; }
public int[] getPixel(int x, int y, int iArray[], DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int pixels[]; if (iArray != null) { pixels = iArray; } else { pixels = new int[numBands]; } int bitnum = ...
public int getPixelBitStride() { return pixelBitStride; }
public int getPixelBitStride() { return numberOfBits; }
public int getPixelBitStride() { return pixelBitStride; }
public int getSample(int x, int y, int b, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int element = data.getElem(y * scanlineStride + bitnum / dataElem...
public int getSample(int x, int y, int b, DataBuffer data) { int pos = ((dataBitOffset + x * numberOfBits) % elemBits) / numberOfBits; int offset = getOffset(x, y); int samples = data.getElem(offset); return (samples & bitMasks[pos]) >>> bitOffsets[pos]; }
public int getSample(int x, int y, int b, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int element = data.getElem(y * scanlineSt...
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; }
public int[] getSampleSize() { return sampleSize; }
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; }
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); }
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + data.getDataType() + ")."); }
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSize); int shift = dataElementSize - (bitnum & (dataElementSize - 1)) - pixelBitStride; int element = data.getElem(index); element &= ~(bitMask << shift); switch (type) { case DataBuffe...
int offset = getOffset(x, y); try { switch (transferType) { case DataBuffer.TYPE_BYTE: { DataBufferByte out = (DataBufferByte) data; byte[] in = (byte[]) obj; out.getData()[offset] = in[0]; return; } case DataBuffer.TYPE_USHORT: { DataBufferUShort out = (DataBufferUShort) data; short[] in = (short[]) obj; out.getData(...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int type = getTransferType(); int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStri...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSize); int shift ...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { setSample(x, y, 0, iArray[0], data); }
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSize); in...
public void setSample(int x, int y, int b, int s, DataBuffer data) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + (bitnum / dataElementSiz...
public void setSample(int x, int y, int b, int s, DataBuffer data) { int bitpos = ((dataBitOffset + x * numberOfBits) % elemBits) / numberOfBits; int offset = getOffset(x, y); s = s << bitOffsets[bitpos]; s = s & bitMasks[bitpos]; int sample = data.getElem(offset); sample |= s; data.setElem(offset, sample); }
public void setSample(int x, int y, int b, int s, DataBuffer data) { // 'b' must be 0 if ((x < 0) || (y < 0) || (x >= width) || (y >= height) || (b != 0)) { throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); } int bitnum = dataBitOffset + x * pixelBitStride; int index = y * scanlineStride + ...
throw new Error("not implemented");
if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instanceof ScrollPane || comp instanceof Scrollbar || comp instanceof Window |...
protected boolean accept(Component comp) { throw new Error("not implemented"); }
JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds();
JViewport port = (JViewport) parent; Component view = port.getView(); Rectangle portBounds = port.getViewRect(); Dimension viewSize = port.getViewSize();
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
int width = Math.max(portBounds.width, viewMinimum.width); int height = Math.max(portBounds.height, viewMinimum.height); int x = Math.min(0, portBounds.width - width); int y = Math.min(0, portBounds.height - height); vp.setViewPosition(new Point(x, y)); vp.setViewSize(new Dimension(width, height));
Point portLowerRight = new Point(portBounds.x + portBounds.width, portBounds.y + portBounds.height); if (portBounds.height >= viewMinimum.height) { portBounds.y = 0; viewSize.height = portBounds.height; } else { viewSize.height = viewMinimum.height; int overextension = portLowerRight.y - viewSize.height; if (overexte...
public void layoutContainer(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); Rectangle portBounds = vp.getBounds(); Dimension viewMinimum = view.getMinimumSize(); int width = Math.max(portBounds.width, viewMinimum.width); int height = Ma...
VmClassLoader bib = new VmClassLoader(new URL("file:
VmSystemClassLoader bib = new VmSystemClassLoader(new URL("file:
protected void setUp() throws Exception { super.setUp(); VmClassLoader bib = new VmClassLoader(new URL("file:///" + System.getProperty("classes.dir") + "/"), new VmX86Architecture()); VmType.initializeForBootImage(bib); clc = bib; }
ORB orb = Restricted_ORB.Singleton;
ORB orb = OrbRestricted.Singleton;
public static synchronized TypeCode type() { if (typeCode == null) { synchronized (TypeCode.class) { if (typeCode == null) { ORB orb = Restricted_ORB.Singleton; if (active) { return orb.create_recursive_...
Restricted_ORB.Singleton.create_interface_tc(IDLTypeHelper.id(),
OrbRestricted.Singleton.create_interface_tc(IDLTypeHelper.id(),
public static TypeCode type() { if (typeCode == null) { typeCode = Restricted_ORB.Singleton.create_interface_tc(IDLTypeHelper.id(), "IDLType" ); } return typeCode; }
Dimension viewMinimum = view.getMinimumSize();
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
int overextension;
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
if ((! (view instanceof Scrollable) && viewPref.height < portBounds.height || (view instanceof Scrollable && ((Scrollable) view).getScrollableTracksViewportHeight()))) viewPref.height = portBounds.height;
if (view instanceof Scrollable) { Scrollable sView = (Scrollable) view;
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
overextension = portLowerRight.y - viewPref.height; if (overextension > 0) portBounds.y -= overextension;
if (sView.getScrollableTracksViewportWidth()) { viewPref.width = portBounds.width; portBounds.x = 0; } if (sView.getScrollableTracksViewportHeight()) { viewPref.height = portBounds.height; portBounds.y = 0; } } else { if (viewPref.width < portBounds.width) viewPref.width = portBounds.width; if (viewPref.height < portBo...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
if ((! (view instanceof Scrollable) && viewPref.width < portBounds.width || (view instanceof Scrollable && ((Scrollable) view).getScrollableTracksViewportWidth()))) viewPref.width = portBounds.width;
if (portLowerRight.x > viewPref.width) portBounds.x = 0;
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
overextension = portLowerRight.x - viewPref.width; if (overextension > 0) portBounds.x -= overextension;
if (portLowerRight.y > viewPref.height) portBounds.y = 0; }
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
Class shellClass = Class.forName("org.jnode.shell.CommandShell");
final ClassLoader loader = pluginRegistry.getPluginsClassLoader(); Class shellClass = loader.loadClass("org.jnode.shell.CommandShell");
public static int vmMain() throws PragmaUninterruptible { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); //Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); //Unsafe.debug("Starting PluginManager"); final PluginManager piMgr = new Defa...
VmSystem.out = ps;
public static void initialize() { if (!inited) { // Initialize resource manager final ResourceManager rm = ResourceManagerImpl.initialize(); /* Set System.err, System.out */ bootOut = new SystemOutputStream(); //final ScreenOutputStream os = new ...
cdrBufOutput buf = new cdrBufOutput();
BufferedCdrOutput buf = new BufferedCdrOutput();
public Any[] clone_slots() { if (orb.icSlotSize == 0) { return NO_SLOTS; } else { Any[] r = get_slots(); Any[] copy = new Any[ r.length ]; cdrBufOutput buf = new cdrBufOutput(); buf.setOrb(orb); for (int i = 0; i < copy.length; i++) { ...
lastComponentEntered.dispatchEvent(exited);
tempComponent = lastComponentEntered; lastComponentEntered = null; tempComponent.dispatchEvent(exited);
public void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = layeredPane; Component candidate = null; Point p = me.getPoint(); while ((candidate == null) && (parent != ...
if (getAttribute(NTFSAttribute.Types.ATTRIBUTE_LIST) != null) {
final AttributeListAttribute attributeList = (AttributeListAttribute) getAttribute(NTFSAttribute.Types.ATTRIBUTE_LIST); if (attributeList != null) {
public NTFSAttribute getAttribute(int attrTypeID) { log.debug("getAttribute(0x" + NumberUtils.hex(attrTypeID, 4) + ")"); int offset = this.getFirtAttributeOffset(); while (true) { final int type = getUInt32AsInt(offset + 0x00); if (type == 0xFFFFFFFF) { // T...
try { final List<AttributeListEntry> entries = attributeList.getEntries(attrTypeID); if (!entries.isEmpty()) { log.debug("Found entries via $ATTRIBUTE_LIST: " + entries); MasterFileTable mft = getVolume().getMFT(); NTFSAttribute attribute = null; for (AttributeListEntry entry : entries) { NTFSAttribute attr = mft.ge...
public NTFSAttribute getAttribute(int attrTypeID) { log.debug("getAttribute(0x" + NumberUtils.hex(attrTypeID, 4) + ")"); int offset = this.getFirtAttributeOffset(); while (true) { final int type = getUInt32AsInt(offset + 0x00); if (type == 0xFFFFFFFF) { // T...
case Types.ATTRIBUTE_LIST: if (resident) { return new AttributeListAttributeRes(fileRecord, offset); } else { return new AttributeListAttributeNonRes(fileRecord, offset); }
public static NTFSAttribute getAttribute(FileRecord fileRecord, int offset) { final int type = fileRecord.getUInt32AsInt(offset + 0x00); switch (type) { case Types.FILE_NAME: return new FileNameAttribute(fileRecord, offset); case Types.INDEX_ROOT: return ...
public void send(IOR ior)
public void send(IOR ior, ORB orb)
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
Socket socket = new Socket(ior.Internet.host, ior.Internet.port);
Socket socket; if (orb instanceof OrbFunctional) socket = ((OrbFunctional) orb).socketFactory.createClientSocket( ior.Internet.host, ior.Internet.port); else socket = new Socket(ior.Internet.host, ior.Internet.port);
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
io = rm.claimIOResource(owner, iobase, iolength);
io = claimPorts(rm, owner, iobase, iolength);
public Ne2000Core( Ne2000PCIDriver driver, ResourceOwner owner, Device device, Ne2000Flags flags) throws ResourceNotFreeException, DriverException { final int irq = getIRQ(device, flags); this.driver = driver; this.flags = flags; this.tx_active = false; // Get the start of the IO address space iobase = getI...
boolean dispatched = false;
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
handleMouseEvent(mouseEvent); dispatched = true;
return handleMouseEvent(mouseEvent);
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
return dispatched;
return false;
public boolean dispatchEvent(AWTEvent event) { boolean dispatched = false; if (event instanceof MouseEvent && event.getSource() instanceof Window) { MouseEvent mouseEvent = (MouseEvent) event; handleMouseEvent(mouseEvent); dispatched = true; } return dispatched; }
private void handleMouseEvent(MouseEvent ev)
private boolean handleMouseEvent(MouseEvent ev)
private void handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different fr...
else return false;
private void handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different fr...
uname.equals ("DIALOGINPUT"));
uname.equals ("DIALOGINPUT") || uname.equals ("DEFAULT"));
protected static boolean isLogicalFontName(String name) { String uname = name.toUpperCase (); return (uname.equals ("SANSSERIF") || uname.equals ("SERIF") || uname.equals ("MONOSPACED") || uname.equals ("DIALOG") || uname.equals ("DIALOGINPUT")); }
else if (uname.equals ("DEFAULT")) return "Dialog.plain";
protected static String logicalFontNameToFaceName (String name) { String uname = name.toUpperCase (); if (uname.equals("SANSSERIF")) return "Helvetica"; else if (uname.equals ("SERIF")) return "Times"; else if (uname.equals ("MONOSPACED")) return "Courier"; else if (uname.equals ("DIALO...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobMediaSheetsCompleted.class; }
public final String getName()
public String getName()
public final String getName() { return "job-media-sheets-completed"; }
if ((candNameLength > bestNameLength)
if (candNameLength > bestNameLength && childNameLength > candNameLength
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
&& (childName.charAt(candNameLength) == '.'))
&& childName.charAt(candNameLength) == '.')
private synchronized Logger findAncestor(Logger child) { String childName = child.getName(); Logger best = rootLogger; int bestNameLength = 0; Logger cand; String candName; int candNameLength; if (child == rootLogger) return null; for (Iterator iter = loggers.keySet().iterator()...
public boolean inside(int x, int y) { return contains(x, y);
public boolean inside(int x, int y) { return width > 0 && height > 0 && x >= this.x && x < this.x + width && y >= this.y && y < this.y + height;
public boolean inside(int x, int y) { return contains(x, y); }
public void move(int x, int y) { setLocation(x, y);
public void move(int x, int y) { this.x = x; this.y = y;
public void move(int x, int y) { setLocation(x, y); }
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height);
public void reshape(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height;
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); }
public void resize(int width, int height) { setSize(width, height);
public void resize(int width, int height) { this.width = width; this.height = height;
public void resize(int width, int height) { setSize(width, height); }
public Policy _get_policy(int type)
public Policy _get_policy(int a_policy_type)
public Policy _get_policy(int type) { return delegate.get_policy(this, type); }
return delegate.get_policy(this, type);
return delegate.get_policy(this, a_policy_type);
public Policy _get_policy(int type) { return delegate.get_policy(this, type); }
SetOverrideType set_add
SetOverrideType how
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType set_add ) { return delegate.set_policy_override(this, policies, set_add); }
return delegate.set_policy_override(this, policies, set_add);
return delegate.set_policy_override(this, policies, how);
public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType set_add ) { return delegate.set_policy_override(this, policies, set_add); }
public void addItem(String item) { addItem(item, -1); }
addItem(String item) { addItem (item, -1); }
public void addItem(String item) { addItem(item, -1); }
public void addNotify() {
addNotify() {
public void addNotify() { if (peer == null) peer = getToolkit().createList(this); super.addNotify(); }
public boolean allowsMultipleSelections() { return (multipleMode); }
allowsMultipleSelections() { return multipleMode; }
public boolean allowsMultipleSelections() { return (multipleMode); }
public void clear() { removeAll(); }
clear() { items.clear(); ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.removeAll (); }
public void clear() { removeAll(); }
public int countItems() { return (getItemCount()); }
countItems() { return items.size (); }
public int countItems() { return (getItemCount()); }
public void delItem(int index) throws IllegalArgumentException { remove(index); }
delItem(int index) throws IllegalArgumentException { items.removeElementAt (index); ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.delItems (index, index); }
public void delItem(int index) throws IllegalArgumentException { remove(index); }
public synchronized void delItems(int start, int end) throws IllegalArgumentException {
delItems(int start, int end) throws IllegalArgumentException {
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
l.delItems(start, end); }
l.delItems (start, end);
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
}
public synchronized void delItems(int start, int end) throws IllegalArgumentException { if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index value: " + start); if ((start < 0) || (start >= items.size())) throw new IllegalArgumentException("Bad list start index valu...
public synchronized void deselect(int index) { ListPeer lp = (ListPeer) getPeer();
deselect(int index) { ListPeer lp = (ListPeer)getPeer();
public synchronized void deselect(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.deselect(index); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))
dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else if ( e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMas...
public synchronized String[] getItems() {
getItems() {
public synchronized String[] getItems() { String[] l_items = new String[getItemCount()]; items.copyInto(l_items); return (l_items); }
public Dimension getMinimumSize() { return (getMinimumSize(rows)); }
getMinimumSize() { return getMinimumSize (getRows ()); }
public Dimension getMinimumSize() { return (getMinimumSize(rows)); }
public Dimension getPreferredSize() { return (getPreferredSize(rows)); }
getPreferredSize() { return getPreferredSize (getRows ()); }
public Dimension getPreferredSize() { return (getPreferredSize(rows)); }
public int getRows() { return (rows); }
getRows() { return(rows); }
public int getRows() { return (rows); }
public synchronized String getSelectedItem() {
getSelectedItem() {
public synchronized String getSelectedItem() { int index = getSelectedIndex(); if (index == -1) return (null); return ((String) items.elementAt(index)); }
public synchronized String[] getSelectedItems() {
getSelectedItems() {
public synchronized String[] getSelectedItems() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new String[0]); String[] retvals = new String[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = (String) items.elementAt(indexes[i]); return (ret...
public synchronized Object[] getSelectedObjects() {
getSelectedObjects() {
public synchronized Object[] getSelectedObjects() { int[] indexes = getSelectedIndexes(); if (indexes == null) return (new Object[0]); Object[] retvals = new Object[indexes.length]; if (retvals.length > 0) for (int i = 0; i < retvals.length; i++) retvals[i] = items.elementAt(indexes[i]); return (retvals); ...
public int getVisibleIndex() { return (visibleIndex); }
getVisibleIndex() { return(visibleIndex); }
public int getVisibleIndex() { return (visibleIndex); }
public boolean isIndexSelected(int index) { int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return (true); return (false); }
isIndexSelected(int index) { return isSelected (index); }
public boolean isIndexSelected(int index) { int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return (true); return (false); }