rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Rectangle hibounds = new Rectangle(hiLoc.x, hiLoc.y, cellWidth,
Rectangle hibounds = new Rectangle(hiLoc.x, hiLoc.y, width,
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
if (updateLayoutStateNeeded != 0 || !list.isValid())
if (updateLayoutStateNeeded != 0)
protected void maybeUpdateLayoutState() { if (updateLayoutStateNeeded != 0 || !list.isValid()) { updateLayoutState(); updateLayoutStateNeeded = 0; } }
if (list.getLayoutOrientation() == JList.VERTICAL) cellWidth = Math.max(cellWidth, list.getSize().width);
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; ListCellRenderer rend = list.getCellRenderer(); // Update the cellHeight(s) fields. int fixe...
return new String[] { "org.jnode.vm.x86.compiler", "org.jnode.vm.x86.compiler.stup" };
return new String[] { "org.jnode.vm.x86.compiler", "org.jnode.vm.x86.compiler.stub" };
public String[] getCompilerPackages() { return new String[] { "org.jnode.vm.x86.compiler", "org.jnode.vm.x86.compiler.stup" }; }
log.debug("using firstProvider "+firstProvName);
private FontProvider getProvider(Font font) { FontProvider prov = getFirstProvider(); final String firstProvName = prov.getName(); if (prov.provides(font)) { log.debug("using firstProvider "+firstProvName); return prov; } log.debug("getProvider for "+font.getName()+ "...
log.debug("getProvider for "+font.getName()+ " ("+providers.size()+" availables)"); for (FontProvider prv : providers.values()) { if(firstProvName.equals(prv.getName())) continue;
for (FontProvider prv : providers.values()) { if(firstProvName.equals(prv.getName())) continue;
private FontProvider getProvider(Font font) { FontProvider prov = getFirstProvider(); final String firstProvName = prov.getName(); if (prov.provides(font)) { log.debug("using firstProvider "+firstProvName); return prov; } log.debug("getProvider for "+font.getName()+ "...
log.debug("font="+font+" provider="+prv);
private FontProvider getProvider(Font font) { FontProvider prov = getFirstProvider(); final String firstProvName = prov.getName(); if (prov.provides(font)) { log.debug("using firstProvider "+firstProvName); return prov; } log.debug("getProvider for "+font.getName()+ "...
log.debug("provider found");
private FontProvider getProvider(Font font) { FontProvider prov = getFirstProvider(); final String firstProvName = prov.getName(); if (prov.provides(font)) { log.debug("using firstProvider "+firstProvName); return prov; } log.debug("getProvider for "+font.getName()+ "...
lastPaintPosition = new Point(); cachedBlitFrom = new Point(); cachedBlitTo = new Point(); cachedBlitSize = new Dimension(); cachedBlitPaint = new Rectangle();
public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); setLayout(createLayoutManager()); updateUI(); }
paintComponent(g);
Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = view.getBounds(); Rectangle portBounds = getBounds(); if (viewBounds.width == 0 || viewBounds.height == 0 || portBounds.width == 0 || portBounds.height == 0) return; switch (getScrollMode()) { case JViewport...
public void paint(Graphics g) { paintComponent(g); }
damaged = true;
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); super.reshape(x, y, w, h); if (changed) fireStateChanged(); }
damaged = true;
public void revalidate() { fireStateChanged(); super.revalidate(); }
repaint();
public void setViewPosition(Point p) { Component view = getView(); if (view != null) { Point q = new Point(-p.x, -p.y); view.setLocation(q); fireStateChanged(); } }
isViewSizeSet = true;
public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(viewSize); isViewSizeSet = true; fireStateChanged(); }
} isViewSizeSet = true; }
public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(viewSize); isViewSizeSet = true; fireStateChanged(); }
blockSize=(int)fs.getBlockSize();
blockSize=fs.getBlockSize();
public INodeTable(Ext2FileSystem fs, int firstBlock) throws IOException { this.fs = fs; this.firstBlock = firstBlock; blockSize=(int)fs.getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesPerGroup()*INode.INODE_LENGTH) / (double) blockSize); }
final VmAbstractHeap firstHeap = heapManager.getFirstHeap();
final VmAbstractHeap firstHeap = heapManager.getHeapList();
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); final boolean verbose = debug; ...
final Vm vm = new Vm(arch, new DefaultHeapManager(clsMgr, helper,
final Vm vm = new Vm(version, arch, new DefaultHeapManager(clsMgr, helper,
private final void doExecute() throws BuildException { debug = (getProject().getProperty("jnode.debug") != null); final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginLi...
g.drawRect(t.x, t.y, t.width, t.height);
g.drawRect(t.x, t.y, t.width - 2, t.height - 2);
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); g.drawRect(t.x, t.y, t.width, t.height); // FIXME: we seem to be drawing too tight a rectangle here, perhaps there // is some padding to do somewhere??? }
if (b.hasFocus() && b.isFocusPainted())
if (b.hasFocus() && b.isFocusPainted() && b.isEnabled())
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected() && b.isEnabled()) currentIc...
attribOrder.add(0, DATAFORMAT_XML_ATTRIBUTE_NAME);
protected void init() { super.init(); classXDFNodeName = "field"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0, NOTELIST_XML_ATTRIBUTE_NAME); attribOrder.add(0, RELATION_XML_ATTRIBUTE_NAME); attribOrder.add(0, UNITS_XML_ATTRIBUTE_...
if (isCoreObjectMethod(methods[j])) { continue; }
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is...
public synchronized void read(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[entries.size() * 32]; device.read(offset, data, 0, data.length); read(data);
protected synchronized void read() throws IOException { entries.setSize((int)file.getLengthOnDisk() / 32); final byte[] data = new byte[entries.size() * 32]; file.read(0, data, 0, data.length); read(data);
public synchronized void read(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[entries.size() * 32]; device.read(offset, data, 0, data.length); //System.out.println("Directory at offset :" + offset); //System.out.println("Length in bytes = " + entries.size() * 32); read(...
if (tex instanceof SyntaxError) { Help.getInfo(cx).usage();
if (tex instanceof SyntaxErrorException) { try { Help.getInfo(cx).usage(); } catch (HelpException ex1) { ex1.printStackTrace(); }
public void run() { try { // System.err.println("Registering shell in new thread."); ShellUtils.getShellManager().registerShell(commandShell);//workaround // to // ensure // access // to ...
bad.minor = Minor.Any;
public static ForwardRequest extract(Any any) { try { return ((ForwardRequestHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION(id() + " expected"); bad.initCause(cex); throw bad; } }
Ext2Debugger.debug("Ext2Entry(iNode, name): name="+name+
log.debug("Ext2Entry(iNode, name): name="+name+
public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; Ext2Debugger.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":""), 2); }
(isFile()?" is a file ":""), 2);
(isFile()?" is a file ":""));
public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; Ext2Debugger.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":""), 2); }
hide();
setVisible(false);
public void doDefaultCloseAction() { fireInternalFrameEvent(InternalFrameEvent.INTERNAL_FRAME_CLOSING); switch (getDefaultCloseOperation()) { case HIDE_ON_CLOSE: hide(); break; case DISPOSE_ON_CLOSE: dispose(); break; } }
this.rhs = getOperand(rhsIndex); refs = new Operand[] { rhs };
refs = new Operand[] { getOperand(rhsIndex) };
public VariableRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, int rhsIndex) { super(address, block, lhsIndex); this.rhs = getOperand(rhsIndex); refs = new Operand[] { rhs }; setDeadCode(true); }
if (rhs instanceof Variable) { Variable v = (Variable) rhs;
if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0];
public void doPass2(BootableHashMap liveVariables) { setDeadCode(true); if (rhs instanceof Variable) { Variable v = (Variable) rhs; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } }
return rhs;
return refs[0];
public Operand getRHS() { return rhs; }
return rhs;
return refs[0];
public Operand propagate(Variable operand) { return rhs; }
return getAddress() + ": " + getLHS().toString() + " = " + rhs.toString();
return getAddress() + ": " + getLHS().toString() + " = " + refs[0];
public String toString() { return getAddress() + ": " + getLHS().toString() + " = " + rhs.toString(); }
protected boolean gotoField(ScreenField f) {
public boolean gotoField(int f) {
protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } }
if (f != null) {
int sizeFields = screenFields.getSize();
protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } }
goto_XY(f.startPos()); return true; } else {
if (f > sizeFields || f <= 0)
protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } }
return gotoField(screenFields.getCurrentField());
protected boolean gotoField(ScreenField f) { if (f != null) { goto_XY(f.startPos()); return true; } else { return false; } }
bad.minor = Minor.Any;
public static WrongPolicy extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (WrongPolicy) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("WrongPolicy expected"); bad.in...
super();
this.textArea = textArea;
public SwingTextAreaPeer(TextArea textArea) { super(); switch (textArea.getScrollbarVisibility()) { case TextArea.SCROLLBARS_BOTH: SwingToolkit.add(textArea, new JScrollPane(this, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS)); break; case TextArea.SCRO...
return 0.0F;
float align; if (axis == X_AXIS) align = 0.0F; else align = super.getAlignment(axis); return align;
public float getAlignment(int axis) { // FIXME: This is very likely not 100% correct. Work this out. return 0.0F; }
return 0.0F;
align = super.getAlignment(axis);
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; else if (getViewCount() > 0) { float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F) / prefHeight; } else return 0....
return (firstRowHeight / 2.F) / prefHeight;
align = (firstRowHeight / 2.F) / prefHeight;
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; else if (getViewCount() > 0) { float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F) / prefHeight; } else return 0....
return 0.0F;
align = 0.0F; return align;
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; else if (getViewCount() > 0) { float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F) / prefHeight; } else return 0....
array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) { array[index] = sizes[index]; }
array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index];
public int[] getSizes() { // Variables int[] array; int index; // Create New Array array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) { array[index] = sizes[index]; } // for // Return Newly created array return array; } // getSizes()
public void setSizes(int[] sizes) { int index; this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) { this.sizes[index] = sizes[index]; }
public void setSizes(int[] sizes) { int index; this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) this.sizes[index] = sizes[index];
public void setSizes(int[] sizes) { // Variables int index; // Initialize Sizes this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) { this.sizes[index] = sizes[index]; } // for } // setSizes()
MockFloppyDeviceFactory factory = (MockFloppyDeviceFactory) FSDriverUtils.getFloppyDeviceFactory();
MockFloppyDeviceFactory factory; try { factory = (MockFloppyDeviceFactory) FloppyDriverUtils.getFloppyDeviceFactory(); } catch (NamingException ex) { throw (IOException)new IOException().initCause(ex); }
public void init(TestConfig config, MockObjectTestCase testCase) throws IOException { // set the current testCase for our factory MockFloppyDeviceFactory factory = (MockFloppyDeviceFactory) FSDriverUtils.getFloppyDeviceFactory(); factory.setTestCase((MockObjec...
return getEncoded(IKeyPairCodec.RAW_FORMAT);
return getEncoded(defaultFormat);
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
public UShortSeqHolder(short[] initial_value)
public UShortSeqHolder()
public UShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); }
value = initial_value; typecode.setLength(value.length);
public UShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); }
bad.minor = Minor.Any;
public static ForwardRequest extract(Any any) { try { return ((ForwardRequestHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("ForwardRequest expected"); bad.initCause(cex); throw bad; } }
e.printStackTrace();
log.warn("In constructor: ", e);
public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
System.out.println("Parameter " + parm + " is specified as: " + getParameter(parm));
log.info("Parameter " + parm + " is specified as: " + getParameter(parm));
private boolean isSpecified(String parm) { if (getParameter(parm) != null) { System.out.println("Parameter " + parm + " is specified as: " + getParameter(parm)); return true; } return false; }
System.out.println(" We have loaded a new one");
log.info(" We have loaded a new one");
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); System.out.println(" We have loaded a new one"); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) ...
g.drawPolygon(bright);
g.drawPolyline(bright.xpoints, bright.ypoints, bright.npoints);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Polygon thumb = new Polygon(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon dark; Polygon all;...
g.drawPolygon(dark);
g.drawPolyline(dark.xpoints, dark.ypoints, dark.npoints);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Polygon thumb = new Polygon(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon dark; Polygon all;...
if ((gapEnd - gapStart) < strLen) shiftEnd(strLen + DEFAULT_BUFSIZE);
replace(where, 0, str.toCharArray(), str.length());
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the ...
if (where != gapStart) shiftGap(where); System.arraycopy(str.toCharArray(), 0, buffer, gapStart, strLen); gapStart += strLen;
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the ...
if (where != gapStart) shiftGap(where);
replace(where, nitems, null, 0);
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where ...
gapEnd += nitems;
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where ...
}
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); gapEnd += rmSize; // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) < addSize) shiftEnd(addSize); // Add new items to the buffer. System.arraycopy(addItems, ...
}
protected void shiftGap(int newGapStart) { int newGapEnd = newGapStart + (gapEnd - gapStart); // Update the positions between newGapEnd and (old) gapEnd. The marks // must be shifted by (gapEnd - newGapEnd). int index1 = Collections.binarySearch(positions, new GapContentPosition( gapEnd)); int ...
this.bytes = bytes; this.microseconds = microseconds;
this.byteLength = bytes; this.microsecondLength = microseconds;
public MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds) { this.type = type; this.divisionType = divisionType; this.resolution = resolution; this.bytes = bytes; this.microseconds = microseconds; }
return bytes;
return byteLength;
public int getByteLength() { return bytes; }
return microseconds;
return microsecondLength;
public long getMicrosecondLength() { return microseconds; }
final Graphics g = getGraphics(); if (g != null) { if (id == PaintEvent.PAINT) { ((Component)component).paint(g); } else { ((Component)component).update(g); } g.dispose(); }
processPaintEvent((PaintEvent)event);
public void handleEvent(AWTEvent event) { Unsafe.debug("handleEvent(" + event + ")"); final int id = event.getID(); switch (id) { case PaintEvent.PAINT: case PaintEvent.UPDATE: { final Graphics g = getGraphics(); if (g != null) { ...
GrubFatFormatter ff = (GrubFatFormatter)createFormatter();
GrubFatFormatter ff = createFormatter();
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(); mbr.getPartition(3).clear(); IBMPartitionTa...
Font l_font = font;
Font txFont = font;
public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font l_font = font; if (prv == null) { l_font = new Font("Luxi Sans", Font.PLAIN, 10); //log.error("No FontProvider for font=" + font + " using " + l_font + " inst...
l_font = new Font("Luxi Sans", Font.PLAIN, 10); prv = getProvider(l_font);
txFont = getTranslatedFont(font); prv = getProvider(txFont);
public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font l_font = font; if (prv == null) { l_font = new Font("Luxi Sans", Font.PLAIN, 10); //log.error("No FontProvider for font=" + font + " using " + l_font + " inst...
final TextRenderer renderer = prv.getTextRenderer(l_font); renderer.render(g, text, x, y);
if (prv != null) { final TextRenderer renderer = prv.getTextRenderer(txFont); renderer.render(g, text, x, y); } else { log.error("No provider found for font " + txFont); }
public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font l_font = font; if (prv == null) { l_font = new Font("Luxi Sans", Font.PLAIN, 10); //log.error("No FontProvider for font=" + font + " using " + l_font + " inst...
final FontProvider prv = getProvider(font);
FontProvider prv = getProvider(font); Font txFont = font; if (prv == null) { txFont = getTranslatedFont(font); prv = getProvider(txFont); }
public FontMetrics getFontMetrics(Font font) { final FontProvider prv = getProvider(font); if (prv != null) { return prv.getFontMetrics(font); } else { return new EmptyFontMetrics(font); } }
return prv.getFontMetrics(font);
return prv.getFontMetrics(txFont);
public FontMetrics getFontMetrics(Font font) { final FontProvider prv = getProvider(font); if (prv != null) { return prv.getFontMetrics(font); } else { return new EmptyFontMetrics(font); } }
return new EmptyFontMetrics(font);
log.error("No provider found for font " + txFont); return new EmptyFontMetrics(txFont);
public FontMetrics getFontMetrics(Font font) { final FontProvider prv = getProvider(font); if (prv != null) { return prv.getFontMetrics(font); } else { return new EmptyFontMetrics(font); } }
m.minor = Minor.IOR;
public void write(cdrOutput out) { try { // Need to write the Internet profile into the separate // stream as we must know the size in advance. cdrOutput b = out.createEncapsulation(); version.write(b); b.write_string(host); b.write_ushort((short)...
bad.minor = Minor.Any;
public static AdapterInactive extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (AdapterInactive) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("AdapterInactive expected"); ...
throw new NullPointerException();
return 0;
public static int getHashCode(Object obj) { if (obj == null) { throw new NullPointerException(); } else { return ObjectReference.fromObject(obj).toAddress().toInt(); } }
throw new MARSHAL(NOT_APPLICABLE);
MARSHAL m = new MARSHAL(NOT_APPLICABLE); m.minor = Minor.Inappropriate; throw m;
public DynAny create_dyn_any(Any _0) throws InconsistentTypeCode { throw new MARSHAL(NOT_APPLICABLE); }
throw new MARSHAL(NOT_APPLICABLE);
MARSHAL m = new MARSHAL(NOT_APPLICABLE); m.minor = Minor.Inappropriate; throw m;
public DynAny create_dyn_any_from_type_code(TypeCode _0) throws InconsistentTypeCode { throw new MARSHAL(NOT_APPLICABLE); }
JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) UIManager.get(prefix + ".keyBindings");
InputMapUIResource m = (InputMapUIResource) UIManager.get(prefix + ".focusInputMap"); if (m != null) { KeyStroke[] keys = m.keys(); int len = keys.length; bindings = new JTextComponent.KeyBinding[len]; for (int i = 0; i < len; i++) { KeyStroke curr = keys[i]; bindings[i] = new JTextComponent.KeyBinding(curr, (String) m...
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) UIManager.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextComponent.KeyBinding[0]; // FIXME: Putting something into t...
UIManager.put(prefix + ".keyBindings", bindings);
UIManager.put(prefix + ".focusInputMap", bindings);
protected Keymap createKeymap() { String prefix = getPropertyPrefix(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) UIManager.get(prefix + ".keyBindings"); if (bindings == null) { bindings = new JTextComponent.KeyBinding[0]; // FIXME: Putting something into t...
SwingUtilities.replaceUIActionMap(textComponent, getActionMap());
SwingUtilities.replaceUIActionMap(textComponent, createActionMap()); ActionMap parentActionMap = new ActionMapUIResource(); Action[] actions = textComponent.getActions(); for (int j = 0; j < actions.length; j++) { Action currAction = actions[j]; parentActionMap.put(currAction.getValue(Action.NAME), currAction); } Swi...
protected void installKeyboardActions() { // load any bindings for the older Keymap interface Keymap km = JTextComponent.getKeymap(getKeymapName()); if (km == null) km = createKeymap(); textComponent.setKeymap(km); // load any bindings for the newer InputMap / ActionMap interface SwingUtil...
{ Event oldStyleEvent; oldStyleEvent = Component.translateEvent(event); if (oldStyleEvent != null)
void dispatchEventImpl(AWTEvent event){ Event oldStyleEvent; // This is overridden by subclasses that support events. /* Convert AWT 1.1 event to AWT 1.0 event */ oldStyleEvent = Component.translateEvent(event); if (oldStyleEvent != null) { postEvent(oldStyleEvent); } /* Do local processing */ process...
postEvent(oldStyleEvent); }
void dispatchEventImpl(AWTEvent event){ Event oldStyleEvent; // This is overridden by subclasses that support events. /* Convert AWT 1.1 event to AWT 1.0 event */ oldStyleEvent = Component.translateEvent(event); if (oldStyleEvent != null) { postEvent(oldStyleEvent); } /* Do local processing */ process...
getParent() { return(parent); }
public MenuContainer getParent() { return parent; }
getParent(){ return(parent);}
paramString() {
protected String paramString() {
paramString(){ return "name=" + getName();}
processEvent(AWTEvent event) {
protected void processEvent(AWTEvent event) {
processEvent(AWTEvent event){ /* Pass a focus event to the focus listener for the accessibility context. */ if (event instanceof FocusEvent) { if (focusListener != null) { switch (event.id) { case FocusEvent.FOCUS_GAINED: focusListener.focusGained((...
vr.x = br.width - ar.width;
vr.x = br.width - ar.width - defaultTextIconGap;
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)ancestorMap.get((KeyStroke)keys[i]));
KeyStroke stroke = (KeyStroke)keys[i]; String actionString = (String) ancestorMap.get(stroke);
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM...
parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), (String)ancestorMap.get((KeyStroke)keys[i]));
parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString);
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM...
parentActionMap.put ((String)ancestorMap.get((KeyStroke)keys[i]), new ActionListenerProxy (action, (String)ancestorMap.get((KeyStroke)keys[i])));
parentActionMap.put (actionString, new ActionListenerProxy (action, actionString));
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM...
IDEBus ideBus = FSDriverUtils.getIDEDeviceFactory().createIDEBus(parentDev, primary);
IDEBus ideBus; try { ideBus = IDEDriverUtils.getIDEDeviceFactory().createIDEBus(parentDev, primary); } catch (NamingException ex) { throw new DriverException(ex); }
public static IDEDevice createIDEDevice(Device parentDev, TestCase testCase, final boolean supp48bitsAddr, final long deviceSize) throws IllegalArgumentException, DriverException, ResourceNotFreeException { if((deviceSize % IDEConstants.SECTOR_SIZE) != 0) { ...
repaintLeadCell();
public void focusGained(FocusEvent e) { // TODO: Implement this properly. }
repaintLeadCell();
public void focusLost(FocusEvent e) { // TODO: Implement this properly. }
table.requestFocusInWindow();
public void mousePressed(MouseEvent e) { if (table.isEnabled()) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int colLead = colModel.getLeadSelec...
DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel();
JTable table = (JTable) e.getSource(); DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel();
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
String command = e.getActionCommand();
String command = (String) getValue("__command__");
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
if (rowLead == getFirstVisibleRowIndex()) target = Math.max (0, rowLead - (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getFirstVisibleRowIndex();
if (rowLead == getFirstVisibleRowIndex(table)) target = Math.max(0, rowLead - (getLastVisibleRowIndex(table) - getFirstVisibleRowIndex(table) + 1)); else target = getFirstVisibleRowIndex(table);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
if (colLead == getLastVisibleColumnIndex()) target = Math.min (colMax, colLead + (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getLastVisibleColumnIndex();
if (colLead == getLastVisibleColumnIndex(table)) target = Math.min(colMax, colLead + (getLastVisibleColumnIndex(table) - getFirstVisibleColumnIndex(table) + 1)); else target = getLastVisibleColumnIndex(table);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
if (colLead == getFirstVisibleColumnIndex()) target = Math.max (0, colLead - (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getFirstVisibleColumnIndex();
if (colLead == getFirstVisibleColumnIndex(table)) target = Math.max(0, colLead - (getLastVisibleColumnIndex(table) - getFirstVisibleColumnIndex(table) + 1)); else target = getFirstVisibleColumnIndex(table);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
(command.equals ("selectPreviousColumnCell")));
command.equals("selectPreviousColumnCell"));
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
(command.equals ("selectPreviousRowCell")));
command.equals("selectPreviousRowCell"));
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...