rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, frame.getRootPane() .getGlassPane());
MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me);
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ...
acquireComponentForMouseEvent(me);
if (mouseEventTarget == null) return; if (mouseEventTarget.equals(frame.getGlassPane())) return;
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ...
if (mouseEventTarget != null && mouseEventTarget.isShowing() && e.getID() != MouseEvent.MOUSE_ENTERED && e.getID() != MouseEvent.MOUSE_EXITED) { MouseEvent newEvt = SwingUtilities.convertMouseEvent(frame .getContentPane(), me, mouseEventTarget); mouseEventTarget.dispatchEvent(newEvt);
if (mouseEventTarget.isShowing() && e.getID() != MouseEvent.MOUSE_ENTERED && e.getID() != MouseEvent.MOUSE_EXITED) { MouseEvent newEvt = SwingUtilities.convertMouseEvent( frame.getGlassPane(), me, mouseEventTarget); mouseEventTarget.dispatchEvent(newEvt);
private void handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = SwingUtilities.convertMouseEvent(frame.getRootPane() .getGlassPane(), (MouseEvent) e, ...
if (frame.isSelected()) activateFrame(frame); else getDesktopManager().deactivateFrame(frame);
if (frame.isSelected()) activateFrame(frame); else deactivateFrame(frame);
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_ICON_PROPERTY)) ...
textComponent.addPropertyChangeListener(updateHandler);
protected void installListeners() { textComponent.addFocusListener(focuslistener); installDocumentListeners(); }
textComponent.addPropertyChangeListener(updateHandler); modelChanged();
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } textComponent....
modelChanged();
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } textComponent....
textComponent.removePropertyChangeListener(updateHandler);
protected void uninstallListeners() { textComponent.removeFocusListener(focuslistener); textComponent.getDocument().removeDocumentListener(documentHandler); }
textComponent.removePropertyChangeListener(updateHandler);
public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); textComponent.removePropertyChangeListener(updateHandler); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); textComponent = null; }
public void add(org.omg.CORBA.Object object)
public cObject add(org.omg.CORBA.Object object, int port)
public void add(org.omg.CORBA.Object object) { add(generateObjectKey(object), object); }
add(generateObjectKey(object), object);
return add(generateObjectKey(object), object, port);
public void add(org.omg.CORBA.Object object) { add(generateObjectKey(object), object); }
public org.omg.CORBA.Object get(byte[] key)
public cObject get(byte[] key)
public org.omg.CORBA.Object get(byte[] key) { return (org.omg.CORBA.Object) objects.get(key); }
return (org.omg.CORBA.Object) objects.get(key);
return (cObject) objects.get(key);
public org.omg.CORBA.Object get(byte[] key) { return (org.omg.CORBA.Object) objects.get(key); }
public byte[] getKey(org.omg.CORBA.Object stored_object)
public cObject getKey(org.omg.CORBA.Object stored_object)
public byte[] getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) ...
if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) item.getKey();
ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return ref;
public byte[] getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); if (stored_object._is_equivalent((org.omg.CORBA.Object) item.getValue()) ) return (byte[]) ...
byte[] key = getKey(object); if (key != null) objects.remove(key);
cObject ref = getKey(object); if (ref != null) objects.remove(ref.key);
public void remove(org.omg.CORBA.Object object) { byte[] key = getKey(object); if (key != null) objects.remove(key); }
if (noData != null) { writeOut(outputstream, noData);
if (noData != null) writeOut(outputstream, noData);
private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ...
protected Object clone() throws CloneNotSupportedException { DataCube cloneObj = (DataCube) super.clone(); synchronized (this) { synchronized (cloneObj) { cloneObj.data= deepCopy(this.data, dimension); } } return cloneObj; }
private void recursiveWriteFormattedData(OutputStream outputstream, Locator locator, List commands, AxisInterface fastestAxis, String[] noDataValues) ...
public void remove(int index)
public void remove(JMenuItem item)
public void remove(int index) { popupMenu.remove(index); }
popupMenu.remove(index);
popupMenu.remove(item);
public void remove(int index) { popupMenu.remove(index); }
return new Boolean(filechooser.getFileSystemView().isHiddenFile(f));
return Boolean.valueOf(filechooser.getFileSystemView().isHiddenFile(f));
public Boolean isHidden(File f) { return new Boolean(filechooser.getFileSystemView().isHiddenFile(f)); }
public void propertyChange(PropertyChangeEvent e) {
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( ...
parents.setRenderer(new CBLabelRenderer());
parents.setRenderer(new BasicComboBoxRenderer());
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan...
topPanel.setLayout(new java.awt.FlowLayout());
parentsPanel.add(buttonPanel); topPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 0));
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan...
topPanel.add(buttonPanel);
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan...
m.minor = Minor.UserException;
public static StructMember read(InputStream istream) { try { StructMember value = new StructMember(); value.name = istream.read_string(); value.type = TypeCodeHelper.read(istream); value.type_def = IDLTypeHelper.read(istream); return value; } catch (UserException ex...
m.minor = Minor.UserException;
public static void write(OutputStream ostream, StructMember value) { try { ostream.write_string(value.name); TypeCodeHelper.write(ostream, value.type); IDLTypeHelper.write(ostream, value.type_def); } catch (UserException ex) { MARSHAL m = new MARSHAL(); m.initC...
char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return;
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { t.getDocument().insertString(t.getCaret().getDot(), event.getActionCommand(), null); t.getCaret().setDot(Math.min(t.getCaret().getDot(...
JTextComponent t = getTextComponent(event); t.replaceSelection("\n");
public void actionPerformed(ActionEvent event) { }
"Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)), "Tree.nonSelectionBorder", new BorderUIResource.LineBorderUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark...
else { LeafElement el1 = (LeafElement) rootElement.getElement(i1); el1.end -= len; } for (int i = rootElement.getElementIndex(p0) + 1; i < rootElement.getElementCount(); i++) { LeafElement el = (LeafElement) rootElement.getElement(i); el.start -= len; el.end -= len; }
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i...
setVisible(false);
public CellRendererPane() { // Nothing to do here. }
System.out.println(" boot options received " + bootEvent.getNewSessionOptions());
log.info(" boot options received " + bootEvent.getNewSessionOptions());
public void bootOptionsReceived(BootEvent bootEvent) { System.out.println(" boot options received " + bootEvent.getNewSessionOptions()); // If the options are not equal to the string 'null' then we have // boot options if (!bootEvent.getNewSessionOptions().equals("null")) { // check if...
System.out.println("Information Message: Can not find scripting support"
log.warn("Information Message: Can not find scripting support"
private void initScripting() { try { Class.forName("org.tn5250j.scripting.JPythonInterpreterDriver"); } catch (java.lang.NoClassDefFoundError ncdfe) { System.out.println("Information Message: Can not find scripting support" + " files, scripting will not be ava...
divider = createDefaultDivider();
protected void installDefaults() { resetLayoutManager(); divider = createDefaultDivider(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.ge...
int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc);
public void paint(Graphics g, JComponent jc) { // Make sure that the location is valid int divLoc = splitPane.getDividerLocation(); int valLoc = validLocation(divLoc); if (divLoc != valLoc) splitPane.setDividerLocation(valLoc); }
layoutManager.invalidateLayout(splitPane);
getSplitPane().setLayout(layoutManager);
protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); getSplitPane().se...
getSplitPane().setLayout(layoutManager);
protected void resetLayoutManager() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) layoutManager = new BasicHorizontalLayoutManager(); else layoutManager = new BasicVerticalLayoutManager(); layoutManager.invalidateLayout(splitPane); layoutManager.updateComponents(); getSplitPane().se...
if (!debug) { return; }
protected final void printLabels(NativeStream os, VmType[] bootClasses, VmStatics statics) throws BuildException, UnresolvedObjectRefException { try { int unresolvedCount = 0; final PrintWriter w = new PrintWriter(new FileWriter(listFile)); // Print a li...
public Data(char[] text, char[] color, char[] extended) {
public Data(char[] text, char[] attr, char[] color, char[] extended, char[] graphic) {
public Data(char[] text, char[] color, char[] extended) { this.text = text; this.color = color; this.extended = extended; this.graphic = null; this.field = null; }
this.graphic = null;
this.graphic = graphic; this.attr = attr;
public Data(char[] text, char[] color, char[] extended) { this.text = text; this.color = color; this.extended = extended; this.graphic = null; this.field = null; }
int attr = planes.getCharAttr(s.getPos(row,col));
int attr = updateRect.attr[pos];
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = planes.getCharAttr(s.getPos(row,col)); sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributeP...
int fmHeight = rowHeight; int fmWidth = columnWidth;
public void drawCursor() {// public void drawCursor(int row, int col) {// int fmWidth, int fmHeight,// boolean insertMode, int crossHair,// boolean rulerFixed,// int cursorSize, Color colorCursor,// ...
if (dir == null)
if (dir == null || dir.listFiles() == null)
public File[] getFiles(File dir, boolean useFileHiding) { if (dir == null) return null; File[] files = dir.listFiles(); if (! useFileHiding) return files; ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) trim.add(files[i]); File[] va...
if (dtl != null) throw new TooManyListenersException ();
public void addDropTargetListener (DropTargetListener dtl) throws TooManyListenersException { if (dtl != null) throw new TooManyListenersException (); dropTargetListener = dtl; }
g.draw(new Arc2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1), 40, 300, Arc2D.PIE), tx, randomColor(), paintMode);
g.draw(new Arc2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1), 40, 300, Arc2D.PIE), null, tx, randomColor(), paintMode);
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Arc2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1), 40, 300, Arc2D.PIE), tx, randomColor(), paintMode); }
g.draw(new Ellipse2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode);
g.draw(new Ellipse2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode);
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Ellipse2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); }
g.draw(new Line2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode);
g.draw(new Line2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode);
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Line2D.Double(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); }
g.draw(new QuadCurve2D.Double(x1, y1, cx, cy, x2, y2), tx, randomColor(), paintMode);
g.draw(new QuadCurve2D.Double(x1, y1, cx, cy, x2, y2), null, tx, randomColor(), paintMode);
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); final int cx = randomX(); final int cy = randomY(); g.draw(new QuadCurve2D.Double(x1, y1, cx, cy, x2, y2), tx, randomColor(), paintMode); }
g.draw(new Rectangle(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode);
g.draw(new Rectangle(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), null, tx, randomColor(), paintMode);
public void perform() { final int x1 = randomX(); final int y1 = randomY(); final int x2 = randomX(); final int y2 = randomY(); g.draw(new Rectangle(Math.min(x1, x2), Math.min(y1, y2), Math.abs(x2-x1), Math.abs(y2-y1)), tx, randomColor(), paintMode); }
this(SwingUtilities.getOwnerFrame(), "", false, null);
this((Frame) SwingUtilities.getOwnerFrame(null), "", false, null);
public JDialog() { this(SwingUtilities.getOwnerFrame(), "", false, null); }
frameSize.height = (Integer.parseInt(My5250.sessions.getProperty("emul.height"))-100);
Rectangle sb = OperatingSystem.getScreenBounds(); frameSize.height = (sb.height - 100);
private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDri...
public static int vmMain() {
public static int vmMain() throws PragmaUninterruptible {
public static int vmMain() { //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 DefaultPluginManager(pluginRegistr...
if (e.isControlDown() && table. isCellSelected(table.rowAtPoint(begin),table.columnAtPoint(begin))) { table.getSelectionModel(). removeSelectionInterval(table.rowAtPoint(begin), table.rowAtPoint(begin)); table.getColumnModel().getSelectionModel(). removeSelectionInterval(table.columnAtPoint(begin), table.columnAtPoint(...
public void mousePressed(MouseEvent e) { begin = new Point(e.getX(), e.getY()); curr = new Point(e.getX(), e.getY()); updateSelection(e.isControlDown()); }
highlightCellBorder = defaults.getBorder("Table.focusCellHighlightBorder"); cellBorder = BorderFactory.createEmptyBorder(1, 1, 1, 1);
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
if (comp instanceof JComponent) { if (table.isCellSelected(r, c)) ((JComponent) comp).setBorder(highlightCellBorder); else ((JComponent) comp).setBorder(cellBorder); }
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame .getEbpOffset(typeSizeInfo, index)));
wload(JvmType.REFERENCE, index, false);
public final void visit_aload(int index) { vstack.push(ifac.createLocal(JvmType.REFERENCE, stackFrame .getEbpOffset(typeSizeInfo, index))); }
vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame .getEbpOffset(typeSizeInfo, index)));
wload(JvmType.FLOAT, index, false);
public final void visit_fload(int index) { vstack.push(ifac.createLocal(JvmType.FLOAT, stackFrame .getEbpOffset(typeSizeInfo, index))); }
vstack.push(ifac.createLocal(JvmType.INT, stackFrame .getEbpOffset(typeSizeInfo, index)));
wload(JvmType.INT, index, false);
public final void visit_iload(int index) { vstack.push(ifac.createLocal(JvmType.INT, stackFrame .getEbpOffset(typeSizeInfo, index))); }
assertCondition(eContext.getGPRPool().isFree(X86Register.EAX), "EAX not free"); assertCondition(eContext.getGPRPool().isFree(X86Register.EBX), "EBX not free"); assertCondition(eContext.getGPRPool().isFree(X86Register.ECX), "ECX not free"); assertCondition(eContext.getGPRPool().isFree(X86Register.EDX), "EDX not free"); ...
public final void visit_lmul() { // Maintain counter counters.getCounter("lmul").inc(); if (os.isCode32()) { final Label curInstrLabel = getCurInstrLabel(); // TODO: port to orp-style vstack.push(eContext); final LongItem v2 = vstack.popLong(); final LongItem v1 = vstac...
final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong();
final GPR ECX = X86Register.ECX; final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext);
if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); L1AHelper.requestRegister(eContext, ECX, cnt); cnt.loadTo(eContext, ECX); } val.load(eContext);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb = v1.getMsbRegister(eContext);
final GPR v1_lsb = val.getLsbRegister(eContext); final GPR v1_msb = val.getMsbRegister(eContext);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32);
os.writeAND(ECX, 63); os.writeCMP_Const(ECX, 32);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
final GPR64 v1r = v1.getRegister(eContext);
final GPR64 v1r = val.getRegister(eContext);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
v2.release(eContext); vstack.push(v1);
cnt.release(eContext); vstack.push(val);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb =...
if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX);
if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); L1AHelper.requestRegister(eContext, ECX, cnt); cnt.loadTo(eContext, ECX);
public final void visit_lshr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register....
os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32);
os.writeAND(ECX, 63); os.writeCMP_Const(ECX, 32);
public final void visit_lshr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register....
if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register.ECX, cnt); cnt.loadTo(eContext, X86Register.ECX);
if (!cnt.uses(ECX)) { val.spillIfUsing(eContext, ECX); L1AHelper.requestRegister(eContext, ECX, cnt); cnt.loadTo(eContext, ECX);
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register...
os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32);
os.writeAND(ECX, 63); os.writeCMP_Const(ECX, 32);
public final void visit_lushr() { final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();// final X86RegisterPool pool = eContext.getGPRPool(); // Get cnt into ECX if (!cnt.uses(X86Register.ECX)) { val.spillIfUsing(eContext, X86Register.ECX); L1AHelper.requestRegister(eContext, X86Register...
wstoreOffset = os.getLength();
private final void wstore(int jvmType, int index) { final int disp = stackFrame.getEbpOffset(typeSizeInfo, index); // Pin down (load) other references to this local vstack.loadLocal(eContext, disp); // Load final WordItem val = (WordItem) vstack.pop(jvmType); final boolean vconst = val.isConstant(); if (vconst ...
switch (col) { case 0: case 3: case 6: action = new AbstractAction(LangTool.getString("spool.labelFilter")) { public void actionPerformed(ActionEvent e) { setFilter(row,col); } }; jpm.add(action); jpm.addSeparator(); break; }
private void showPopupMenu(MouseEvent me) { JPopupMenu jpm = new JPopupMenu(); JMenuItem menuItem; Action action; final int row = spools.rowAtPoint(me.getPoint()); action = new AbstractAction(LangTool.getString("spool.optionView")) { public void actionPerformed(ActionEvent e) { ...
doSpoolStuff(getSpooledFile(row),e.getActionCommand()); }
setFilter(row,col); }
public void actionPerformed(ActionEvent e) { doSpoolStuff(getSpooledFile(row),e.getActionCommand()); }
status.setText(stat); }
displayViewer(getSpooledFile(row)); }
public void run() { status.setText(stat); }
mouseListener = new MouseInputHandler();
public BasicMenuBarUI() { changeListener = createChangeListener(); containerListener = createContainerListener(); propertyChangeListener = new PropertyChangeHandler(); }
menuBar.addMouseListener(mouseListener);
protected void installListeners() { menuBar.addContainerListener(containerListener); menuBar.addPropertyChangeListener(propertyChangeListener); }
menuBar.removeMouseListener(mouseListener);
protected void uninstallListeners() { menuBar.removeContainerListener(containerListener); menuBar.removePropertyChangeListener(propertyChangeListener); }
private static void incorrect_plug_in(Throwable ex)
static void incorrect_plug_in(Throwable ex)
private static void incorrect_plug_in(Throwable ex) throws NO_IMPLEMENT { NO_IMPLEMENT no = new NO_IMPLEMENT("Incorrect CORBA plug-in"); no.initCause(ex); throw no; }
read_instance(input, ox, value_tag);
read_instance(input, ox, value_tag, null);
public static Serializable read(InputStream input) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { // We may need to jump back if the value is read via value factory. input.mark...
public static void read_instance(InputStream input, Object value, int value_tag
private static Object read_instance(InputStream input, Object value, int value_tag, Object helper
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks...
if (chunk_size <= 0)
if (chunk_size < 0)
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks...
input = new cdrBufInput(bout.toByteArray());
input = new noHeaderInput(bout.toByteArray());
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks...
input = new cdrBufInput(r);
input = new noHeaderInput(r); } } else { if (input instanceof cdrBufInput) { input = new noHeaderInput(((cdrBufInput) input).buffer.getBuffer()); } else { cdrBufOutput bout = new cdrBufOutput(); int c; while ((c = input.read()) >= 0) bout.write((byte) c); input = new noHeaderInput(bout.buffer.toByteArray());
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks...
return value;
public static void read_instance(InputStream input, Object value, int value_tag ) { try { if ((value_tag & vf_CHUNKING) != 0) { ByteArrayOutputStream bout = null; int n = -1; // Read all chunks...
String id
String id, Object helper
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. ...
" must implement either StreamableValue or CustomValue."
" must implement either StreamableValue" + " or CustomValue."
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. ...
}
private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. ...
if ( (attrib=getEndian()) !=null)
attrib = (String) ((Attribute) attribHash.get(ENDIAN_XML_ATTRIBUTE_NAME)).getAttribValue(); if ( attrib != null)
protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ...
return addInternal(attribute, interfaceName);
return addInternal(attribute, myInterface);
public boolean add(Attribute attribute) { return addInternal(attribute, interfaceName); }
return addAllInternal(attributes, interfaceName);
return addAllInternal(attributes, myInterface);
public boolean addAll(AttributeSet attributes) { return addAllInternal(attributes, interfaceName); }
this.interfaceName);
myInterface);
private boolean addInternal(Attribute attribute, Class interfaceName) { if (attribute == null) throw new NullPointerException("attribute may not be null"); AttributeSetUtilities.verifyAttributeCategory(interfaceName, this.interfaceName); Object old = attributeMap.put (attribute.getCategory(...
interfacePanel = new JPanel(); interfacePanel.setLayout(new AlignLayout(2,5,5));
interfacePanel = new JPanel(new GridBagLayout());
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the ...
TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation"));
TitledBorder tb = BorderFactory.createTitledBorder( LangTool.getString("conf.labelPresentation")); tb.setTitleJustification(TitledBorder.CENTER);
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the ...
interfacePanel.add(intTABS); interfacePanel.add(hideTabBar); interfacePanel.add(intMDI); interfacePanel.add(new JLabel());
gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(10, 10, 5, 10); interfacePanel.add(intTABS, gbc); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 27, 5, 10); interfa...
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the ...
JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder("");
JPanel showMePanel = new JPanel(); TitledBorder smb = BorderFactory.createTitledBorder( LangTool.getString("ss.title")); smb.setTitleJustification(TitledBorder.CENTER);
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the ...
contentPane.add(interfacePanel); contentPane.add(showMePanel); }
contentPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); contentPane.add(interfacePanel); contentPane.add(Box.createVerticalStrut(10)); contentPane.add(showMePanel); }
private void createEmulatorOptionsPanel() { // create emulator options panel emulOptPanel.setLayout(new BorderLayout()); JPanel contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); emulOptPanel.add(contentPane,BorderLayout.NORTH); // setup the ...
ctm = new ConfigureTableModel();
sessions = new JSortTable(ctm);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
sessions = new JSortTable(ctm);
Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } };
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
Action connect = new AbstractAction("connect") { public void actionPerformed(ActionEvent e) { doActionConnect(); } };
KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false); sessions.getInputMap().put(enter, "connect"); sessions.getActionMap().put("connect", connect);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false); sessions.getInputMap().put(enter,"connect"); sessions.getActionMap().put("connect",connect );
sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500, 200)); sessions.setShowGrid(false);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...