rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
sesProps.put(SESSION_NAME,sessionName); | if(sessionName == null) sesProps.put(SESSION_TERM_NAME,sesProps.getProperty(SESSION_HOST)); else sesProps.put(SESSION_TERM_NAME,sessionName); | public Session openSession(Properties sesProps, String configurationResource , String sessionName) {// throws TN5250jException { sesProps.put(SESSION_NAME,sessionName); if (configurationResource == null) conf... |
public Session item (String sessionName) { | public Session item (int index) { | public Session item (String sessionName) { Session s = null; int x = 0; while (x < sessions.size()) { s = (Session)sessions.get(x); if (s.getSessionName().equals(sessionName)) return s; x++; } return null; } |
Session s = null; int x = 0; while (x < sessions.size()) { s = (Session)sessions.get(x); if (s.getSessionName().equals(sessionName)) return s; x++; } return null; | return (Session)sessions.get(index); | public Session item (String sessionName) { Session s = null; int x = 0; while (x < sessions.size()) { s = (Session)sessions.get(x); if (s.getSessionName().equals(sessionName)) return s; x++; } return null; } |
log.debug("Removing session: "+session.getSessionName()); | protected void removeSession(Session session) { if (session != null) { if (session.isConnected()) session.disconnect(); sessions.remove(session); --count; } } | |
log.debug("adding Session: "+newSession.getSessionName()); | protected void addSession(Session newSession) { sessions.add(newSession); if (newSession.isSendKeepAlive() && heartBeater == null) { heartBeater = new Timer(15000,this);// heartBeater = new Timer(3000,this); heartBeater.start(); } ++count; } | |
public PluginException(String message, Throwable cause) { super(message, cause); | public PluginException() { super(); | public PluginException(String message, Throwable cause) { super(message, cause); } |
public GetPropertyAction(String key, String defaultValue) { this.key = key; this.defaultValue = defaultValue; } | public GetPropertyAction() { } | public GetPropertyAction(String key, String defaultValue) { this.key = key; this.defaultValue = defaultValue; } |
return uiClassID; | return "MenuItemUI"; | public String getUIClassID() { return uiClassID; } |
return "JMenuItem"; | return super.paramString(); | protected String paramString() { return "JMenuItem"; } |
if (typeCode == null) typeCode = ORB.init().get_primitive_tc(TCKind.tk_objref); | public static TypeCode type() { return typeCode; } | |
final void pushExitStack(VirtualStack vstack) { | final void pushExitStack(ItemFactory ifac, VirtualStack vstack) { | final void pushExitStack(VirtualStack vstack) { vstack.reset(); //vstack.pushAll(outerMethodStack); vstack.pushAll(exitStack); } |
vstack.pushAll(exitStack); | vstack.pushAll(ifac, exitStack); | final void pushExitStack(VirtualStack vstack) { vstack.reset(); //vstack.pushAll(outerMethodStack); vstack.pushAll(exitStack); } |
final void pushOuterMethodStack(VirtualStack vstack) { vstack.pushAll(outerMethodStack); | final void pushOuterMethodStack(ItemFactory ifac, VirtualStack vstack) { vstack.pushAll(ifac, outerMethodStack); | final void pushOuterMethodStack(VirtualStack vstack) { vstack.pushAll(outerMethodStack); } |
public static ItemListener add(ItemListener a, ItemListener b) | public static ComponentListener add(ComponentListener a, ComponentListener b) | public static ItemListener add(ItemListener a, ItemListener b) { return (ItemListener) addInternal(a, b); } |
return (ItemListener) addInternal(a, b); | return (ComponentListener) addInternal(a, b); | public static ItemListener add(ItemListener a, ItemListener b) { return (ItemListener) addInternal(a, b); } |
processEvent(e); } | { if (! Thread.holdsLock(e)) { switch (e.id) { case WindowEvent.WINDOW_GAINED_FOCUS: case WindowEvent.WINDOW_LOST_FOCUS: case KeyEvent.KEY_PRESSED: case KeyEvent.KEY_RELEASED: case KeyEvent.KEY_TYPED: case FocusEvent.FOCUS_GAINED: case FocusEvent.FOCUS_LOST: if (KeyboardFocusManager .getCurrentKeyboardFocusManager(... | void dispatchEventImpl(AWTEvent e) { if (eventTypeEnabled (e.id)) processEvent(e); } |
param.append(width).append("x").append(height).append("+").append(x) .append("+").append(y); | param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); | protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(width).append("x").append(height).append("+").append(x) .append("+").append(y); if (! isValid()) param.append(",invalid"); if (! isVis... |
public static ItemListener remove(ItemListener l, ItemListener oldl) | protected EventListener remove(EventListener oldl) | public static ItemListener remove(ItemListener l, ItemListener oldl) { return (ItemListener) removeInternal(l, oldl); } |
return (ItemListener) removeInternal(l, oldl); | if (a == oldl) return b; if (b == oldl) return a; if (a instanceof AWTEventMulticaster) { EventListener newa = ((AWTEventMulticaster) a).remove(oldl); if (newa != a) return new AWTEventMulticaster(newa, b); } if (b instanceof AWTEventMulticaster) { EventListener newb = ((AWTEventMulticaster) b).remove(oldl); if (newb ... | public static ItemListener remove(ItemListener l, ItemListener oldl) { return (ItemListener) removeInternal(l, oldl); } |
os.set32(fldOffset, 0); | switch (jnodeField.getTypeSize()) { case 1: os.set8(fldOffset, 0); break; case 2: os.set16(fldOffset, 0); break; case 4: os.set32(fldOffset, 0); break; default: throw new BuildException("Invalid typesize in: " + jnodeField); } | private void storeObject(int offset, Class<?> cls, Object obj, VmClassType<?> vmType) throws BuildException, ClassNotFoundException, JNodeClassNotFoundException { final Class< ? > sCls = cls.getSuperclass(); if (sCls != null) { final VmClassType< ? > vmSuperType = (VmC... |
public static void warn(String msg) { log(WARN, System.out, msg, null); | public static void warn(String msg, Throwable ex) { log(WARN, System.out, msg, ex); | public static void warn(String msg) { log(WARN, System.out, msg, null); } |
setOpaque(true); | public JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); updateUI(); } | |
setLayout(null); | public JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); } | |
if (!((JMenu)c).isTopLevelMenu()) { JMenuItem menuItem = new JMenuItem(((JMenu)c).getText(), ((JMenu)c).getIcon()); return menuItem.getMaximumSize(); } | public Dimension getMaximumSize(JComponent c) { return c.getPreferredSize(); } | |
return super.clone(); | BaseMac result = (BaseMac) super.clone(); if (this.underlyingHash != null) result.underlyingHash = (IMessageDigest) this.underlyingHash.clone(); return result; | public Object clone() throws CloneNotSupportedException { return super.clone(); } |
public Number evaluate (Number value) { | public double evaluate (double value) { | public Number evaluate (Number value) { //NOT IMPLEMENTED YET return (Number) new Integer("0"); } |
return (Number) new Integer("0"); | return value; | public Number evaluate (Number value) { //NOT IMPLEMENTED YET return (Number) new Integer("0"); } |
resetAttributes(); | super.init(); | protected void init() { resetAttributes(); classXDFNodeName = "conversion"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,COMPONENTLIST_XML_ATTRIBUTE_NAME); attribHash.put(COMPONENTLIST_XML_ATTRIBUTE_NAME, new Attribute(Colle... |
writeOut(outputstream, " encoding=" + attrib); | writeOut(outputstream, " encoding=\"" + attrib+"\""); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " endian=" + attrib); | writeOut(outputstream, " endian=\"" + attrib + "\""); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " readId=" + attrib); | writeOut(outputstream, " readId=\"" + attrib + "\""); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " readIdRef=" + attrib); | writeOut(outputstream, " readIdRef=\"" + attrib + "\""); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
public GnuRSAPrivateKey(final BigInteger p, final BigInteger q, final BigInteger e, final BigInteger d) | public GnuRSAPrivateKey(BigInteger p, BigInteger q, BigInteger e, BigInteger d) | public GnuRSAPrivateKey(final BigInteger p, final BigInteger q, final BigInteger e, final BigInteger d) { // super(p.multiply(q)); super(p.multiply(q), e); this.p = p; this.q = q; // this.e = e; this.d = d; // the exponents dP and dQ are positive integers less ... |
super(p.multiply(q), e); this.p = p; this.q = q; this.d = d; dP = e.modInverse(p.subtract(BigInteger.ONE)); dQ = e.modInverse(q.subtract(BigInteger.ONE)); qInv = q.modInverse(p); | this(Registry.RAW_ENCODING_ID, p, q, e, d); | public GnuRSAPrivateKey(final BigInteger p, final BigInteger q, final BigInteger e, final BigInteger d) { // super(p.multiply(q)); super(p.multiply(q), e); this.p = p; this.q = q; // this.e = e; this.d = d; // the exponents dP and dQ are positive integers less ... |
public byte[] getEncoded(final int format) | public byte[] getEncoded(int format) | public byte[] getEncoded(final int format) { final byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new RSAKeyPairRawCodec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("format"); } return result; } |
throw new IllegalArgumentException("format"); | throw new IllegalArgumentException("Unsupported encoding format: " + format); | public byte[] getEncoded(final int format) { final byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new RSAKeyPairRawCodec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("format"); } return result; } |
final IKeyPairCodec codec = new RSAKeyPairRawCodec(); return (GnuRSAPrivateKey) codec.decodePrivateKey(k); | return (GnuRSAPrivateKey) new RSAKeyPairRawCodec().decodePrivateKey(k); | public static GnuRSAPrivateKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byt... |
else | catch (IllegalArgumentException ignored) | public static GnuRSAPrivateKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byt... |
throw new IllegalArgumentException("magic"); | public static GnuRSAPrivateKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byt... | |
return (GnuRSAPrivateKey) new RSAKeyPairPKCS8Codec().decodePrivateKey(k); | public static GnuRSAPrivateKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byt... | |
return "JCheckBoxMenuItem"; | return super.paramString(); | protected String paramString() { return "JCheckBoxMenuItem"; } |
Color colorBg, Session ses) { | Color colorBg, boolean toDefaultPrinter, Session ses) { | public PrinterThread (ScreenChar[] sc, Font font, int cols, int rows, Color colorBg, Session ses) { setPriority(1); session = ses; screen = new ScreenChar[sc.length]; int len = sc.length; for (int x = 0; x < len; x++) { screen[x] = new ScreenChar(sc[x].s); ... |
toDefault = toDefaultPrinter; | public PrinterThread (ScreenChar[] sc, Font font, int cols, int rows, Color colorBg, Session ses) { setPriority(1); session = ses; screen = new ScreenChar[sc.length]; int len = sc.length; for (int x = 0; x < len; x++) { screen[x] = new ScreenChar(sc[x].s); ... | |
public IndexOutOfBoundsException(String s) { super(s); | public IndexOutOfBoundsException() { | public IndexOutOfBoundsException(String s) { super(s); } |
public NumberFormatException() { super(); | public NumberFormatException() { | public NumberFormatException() { super(); } |
super(); | public ArithmeticException() { super(); } | |
verifyMonitor(); | public void visit_monitorenter() { inline(entryPoints.getMonitorEnterMethod()); } | |
verifyMonitor(); | public void visit_monitorexit() { inline(entryPoints.getMonitorExitMethod()); } | |
if (callee.isSynchronized()) { System.out.println("Method '" + currentMethod.getFullName() + "' calls synchronized method: " + callee.getFullName()); } | protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); ... | |
Log.errorln("EXPONENT WIDTH:"+wsize+" Precision:"+esize); | private void generateFormatPattern ( ) { StringBuffer leftpattern = new StringBuffer(); StringBuffer rightpattern = new StringBuffer(); StringBuffer etemplate = new StringBuffer(); // precision is the size of the exponent excluding 'E' int esize = getPrecision().intValue(); // width including ... | |
goto_XY(pos); isInField(lastPos); | if (gui.rubberband.isAreaSelected()) { gui.rubberband.reset(); gui.repaint(); } else { goto_XY(pos); isInField(lastPos); } | public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getPosFromView(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos < 0) return ; ... |
gui.rubberband.reset(); gui.repaint(); | protected final Vector sumThem(boolean which) { StringBuffer s = new StringBuffer(); getBoundingArea(workR); gui.rubberband.reset(); gui.repaint();// System.out.println("Summing"); // obtain the decimal format for parsing DecimalFormat df = (DecimalFormat)NumberFormat.ge... | |
if (!fullRepaint) | if (!fullRepaint) { | protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { //System.out.println("was null"); gg2d = (Graphics2D)gui.getGraphics(); } // check for selected area and erase it before updating screen if (gui.rubberband != null && gui.rubberb... |
} | protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { //System.out.println("was null"); gg2d = (Graphics2D)gui.getGraphics(); } // check for selected area and erase it before updating screen if (gui.rubberband != null && gui.rubberb... | |
c.setOpaque(true); | protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); c.setBorder(defaults.getBorder("Label.border")... | |
if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; | if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; } else { keysBuffered = true; if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } | public void sendKeys(String text) { if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); strokenizer... |
isInField(lastPos,true); strokenizer.setKeyStrokes(text); String s; boolean done = false; while (strokenizer.hasMoreKeyStrokes() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0)); | if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; } isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) { simulateKeyStroke(text.charAt(0)); | public void sendKeys(String text) { if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); strokenizer... |
if (s != null) simulateMnemonic(getMnemonicValue(s)); else | strokenizer.setKeyStrokes(text); String s; boolean done = false; | public void sendKeys(String text) { if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); strokenizer... |
System.out.println(" mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) keysBuffered = true; done = true; | while (strokenizer.hasMoreKeyStrokes() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0)); } else { if (s != null) simulateMnemonic(getMnemonicValue(s)); else System.out.println(" mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStrok... | public void sendKeys(String text) { if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; bufferedKeys = ""; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); strokenizer... |
public static final ResourceBundle getBundle(String baseName, Locale locale) | public static final ResourceBundle getBundle(String baseName) | public static final ResourceBundle getBundle(String baseName, Locale locale) { return getBundle(baseName, locale, security.getCallingClassLoader()); } |
return getBundle(baseName, locale, security.getCallingClassLoader()); | return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); | public static final ResourceBundle getBundle(String baseName, Locale locale) { return getBundle(baseName, locale, security.getCallingClassLoader()); } |
setSize(view.getPreferredSpan(X_AXIS), view.getPreferredSpan(Y_AXIS)); | public HTMLRootView(JComponent c, View view, EditorKit kit, Document doc) { super(null); component = c; editorKit = kit; document = doc; setView(view); } | |
public String toString() { return null; } | public String toString() { return this.getClass().toString() + "[ source=" + source.toString() + " firstIndex= " + firstIndex + " lastIndex= " + lastIndex + " isAdjusting= " + isAdjusting + " ]"; } | public String toString() { return null; // TODO } // toString() |
log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); | Level.toLevel(org.apache.log4j.Level.DEBUG_INT); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: log.getLevel().toLevel(org.apache.log4j.Lev... |
log.getLevel().toLevel(org.apache.log4j.Level.INFO_INT); | Level.toLevel(org.apache.log4j.Level.INFO_INT); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: log.getLevel().toLevel(org.apache.log4j.Lev... |
log.getLevel().toLevel(org.apache.log4j.Level.WARN_INT); | Level.toLevel(org.apache.log4j.Level.WARN_INT); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: log.getLevel().toLevel(org.apache.log4j.Lev... |
log.getLevel().toLevel(org.apache.log4j.Level.ERROR_INT); | Level.toLevel(org.apache.log4j.Level.ERROR_INT); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: log.getLevel().toLevel(org.apache.log4j.Lev... |
log.getLevel().toLevel(org.apache.log4j.Level.FATAL_INT); | Level.toLevel(org.apache.log4j.Level.FATAL_INT); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: log.getLevel().toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: log.getLevel().toLevel(org.apache.log4j.Lev... |
if (selectionMode == SINGLE_SELECTION) setSelectionInterval(index0, index1); | public void addSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) setSelectionInterval(index0, index1); // COMPAT: Lik... | |
} | public void addSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) setSelectionInterval(index0, index1); // COMPAT: Lik... | |
public void setAnchorSelectionIndex(int anchorIndex) | public void setAnchorSelectionIndex(int index) | public void setAnchorSelectionIndex(int anchorIndex) { anchorSelectionIndex = anchorIndex; } |
anchorSelectionIndex = anchorIndex; | if (anchorSelectionIndex != index) { int old = anchorSelectionIndex; anchorSelectionIndex = index; if (leadAnchorNotificationEnabled) fireValueChanged(index, old); } | public void setAnchorSelectionIndex(int anchorIndex) { anchorSelectionIndex = anchorIndex; } |
public void setSelectionInterval(int index0, int index1) | public void setSelectionInterval(int anchor, int lead) | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... |
if (index0 == -1 || index1 == -1) | if (anchor == -1 || lead == -1) | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... |
index0 = index1; | anchor = lead; | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... |
int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); | int lo = Math.min(anchor, lead); int hi = Math.max(anchor, lead); | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... |
setAnchorSelectionIndex(index0); leadSelectionIndex=index1; | setAnchorSelectionIndex(anchor); leadSelectionIndex = lead; | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... |
} | public void setSelectionInterval(int index0, int index1) { if (index0 == -1 || index1 == -1) return; BitSet oldSel = (BitSet) sel.clone(); sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.... | |
revalidate(); repaint(); | public void setText(String newText) { if (text != newText) { String oldText = text; text = newText; firePropertyChange("text", oldText, newText); if (text != null && text.length() <= displayedMnemonicIndex) setDisplayedMnemonicIndex(text.length() - 1); } } | |
new GrayFilter(false, 100)))); | new GrayFilter(true, 0)))); | public static Image createDisabledImage(Image src) { return (Toolkit.getDefaultToolkit(). createImage(new FilteredImageSource(src.getSource(), new GrayFilter(false, 100)))); } |
Class c = Class.forName("org.tn5250j.transport.SSL.SSLImplementation"); | Class c = Class.forName("org.tn5250j.framework.transport.SSL.SSLImplementation"); | public Socket createSocket(String destination, int port) { try { if (sslType.equals(SSLConstants.SSL_TYPE_NONE)) { System.out.println("Creating Socket"); // for jdk 1.4// return SocketFactory.getDefault().createSocket(destination,port); return new Socket(destination,port); } ... |
log.debug(" bound " + band.getEndPoint()); | public void areaBounded(RubberBand band, int x1, int y1, int x2, int y2) {// repaint(x1,y1,x2-1,y2-1); repaint();// System.out.println(" bound " + band.getEndPoint()); } | |
catch (Exception exc) {} | catch (Exception exc) { log.warn(""+exc.getMessage()); } | private void doTransfer(java.io.File file) { try { Properties props = new Properties(); props.load(new java.io.FileInputStream(file)); org.tn5250j.tools.XTFRFile tfr = new org.tn5250j.tools.XTFRFile(null, vt, (Session)this,props); } catch (Exception exc) {} } |
log.debug("Initializing macros"); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); screen = new Screen5250(this,sesConfig); this.addComponentListener(this); if (!sesConfig.isPropertyExists... | |
System.out.println("dtde drop it2 "); | log.debug("dtde drop it2 "); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); screen = new Screen5250(this,sesConfig); this.addComponentListener(this); if (!sesConfig.isPropertyExists... |
System.out.println("importData: unsupported data flavor"); | log.info("importData: unsupported data flavor"); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); screen = new Screen5250(this,sesConfig); this.addComponentListener(this); if (!sesConfig.isPropertyExists... |
System.out.println("importData: I/O exception"); | log.warn("importData: I/O exception"); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); screen = new Screen5250(this,sesConfig); this.addComponentListener(this); if (!sesConfig.isPropertyExists... |
System.out.println(ex.getMessage()); | log.warn(""+ex.getMessage()); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); screen = new Screen5250(this,sesConfig); this.addComponentListener(this); if (!sesConfig.isPropertyExists... |
System.out.println("dtde drop it2 "); | log.debug("dtde drop it2 "); | public void drop(DropTargetDropEvent dtde) { Transferable tr = dtde.getTransferable(); dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); DataFlavor[] dfs = dtde.getCurrentDataFlavors(); if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { try ... |
System.out.println("importData: unsupported data flavor"); | log.info("importData: unsupported data flavor"); | public void drop(DropTargetDropEvent dtde) { Transferable tr = dtde.getTransferable(); dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); DataFlavor[] dfs = dtde.getCurrentDataFlavors(); if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { try ... |
System.out.println("importData: I/O exception"); | log.warn("importData: I/O exception"); | public void drop(DropTargetDropEvent dtde) { Transferable tr = dtde.getTransferable(); dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); DataFlavor[] dfs = dtde.getCurrentDataFlavors(); if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { try ... |
System.out.println(ex.getMessage()); | log.warn(""+ex.getMessage()); | public void drop(DropTargetDropEvent dtde) { Transferable tr = dtde.getTransferable(); dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); DataFlavor[] dfs = dtde.getCurrentDataFlavors(); if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { try ... |
log.debug("paint from screen"); | protected void paintComponent(Graphics g) {// System.out.println("paint from screen"); screen.paintComponent3(g); if (rubberband.isAreaSelected() && !rubberband.isDragging()) { rubberband.erase(); rubberband.draw(); } keyPad.repaint(); } | |
System.out.println(macName); | log.info(macName); | protected void startRecordingMe() { String macName = (String)JOptionPane.showInputDialog(null, LangTool.getString("macro.message"), LangTool.getString("macro.title"), JOptionPane.PLAIN_MESSAGE); ... |
System.out.println(keyHandler.getRecordBuffer()); | log.debug(keyHandler.getRecordBuffer()); | protected void stopRecordingMe() { if (keyHandler.getRecordBuffer().length() > 0) { Macronizer.setMacro(newMacName,keyHandler.getRecordBuffer()); System.out.println(keyHandler.getRecordBuffer()); } keyHandler.stopRecording(); } |
System.out.println(exc.getMessage()); | log.warn(exc.getMessage()); | public void toggleDebug() { vt.toggleDebug(); try { vt.sendHeartBeat(); } catch (Exception exc) { System.out.println(exc.getMessage()); } } |
log.debug("paint from gui"); | public void update(Graphics g) {// System.out.println("paint from gui"); paint(g); } | |
session.doConnections(); | session.startNewSession(); | public SessionPopup(Session ses, MouseEvent me) { JMenuItem menuItem; Action action; JPopupMenu popup = new JPopupMenu(); session = ses; vt = session.getVT();// final Gui5250 g = session; screen = session.getScreen(); JMenuItem mi; final int pos = screen.getPosFromView(me.g... |
public DropTarget (Component c, DropTargetListener dtl) | public DropTarget () | public DropTarget (Component c, DropTargetListener dtl) { this (c, 0, dtl, true, null); } |
this (c, 0, dtl, true, null); | this (null, 0, null, true, null); | public DropTarget (Component c, DropTargetListener dtl) { this (c, 0, dtl, true, null); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.