rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
System.out.println("\nrenameVariables block: " + block); | private void renameVariables(IRBasicBlock block) { System.out.println("\nrenameVariables block: " + block); doRenameVariables(block); Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); rewritePhiParams(b); } it = block.getDominatedBlocks().iterat... | |
System.out.println("\nrewritePhiParams block: " + block); | private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q;... | |
SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); | if (!aq.isDeadCode()) { SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); } else { aq.setDeadCode(true); } | private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q;... |
uninstallDefaultChoosers(); | public void uninstallUI(JComponent c) { uninstallListeners(); uninstallDefaults(); pane = null; chooser = null; } | |
if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) | if (title == null || mnemonicKey == 0 || (index > -1 && title.charAt(index) != mnemonicKey)) | public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) index = -1;... |
if (isLinux && e.getKeyCode() == e.VK_ALT_GRAPH) { | if (isLinux && e.getKeyCode() == KeyEvent.VK_ALT_GRAPH) { | void processVTKeyReleased(KeyEvent e){ displayInfo(e); if (isLinux && e.getKeyCode() == e.VK_ALT_GRAPH) { isAltGr = false; } int keycode = e.getKeyCode(); if (e.isAltDown() || e.isShiftDown() || e.isControlDown() || e.isActionKey() || keycode == Key... |
String currentValue = getValue(); if(currentValue == null) currentValue = new String (); currentValue.concat(text); setValue(currentValue); | StringBuffer newValue = new StringBuffer (); String currentValue; if ( (currentValue = getValue()) != null ) newValue.append(currentValue); newValue.append(text); setValue(newValue.toString()); | public void addText (String text) { String currentValue = getValue(); if(currentValue == null) currentValue = new String (); // yes, this can happen currentValue.concat(text); setValue(currentValue); } |
dialog.show(); | dialog.setVisible(true); | public static void doEntry(Frame parent, String propKey, Properties props2) { props = props2; confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); sdn = new JCheckBox(LangTool.getString(... |
public InvalidOpcodeException(String s) { super(s); | public InvalidOpcodeException() { super(); | public InvalidOpcodeException(String s) { super(s); } |
public KeyStoreException(String msg) | public KeyStoreException() | public KeyStoreException(String msg) { super(msg); } |
super(msg); | public KeyStoreException(String msg) { super(msg); } | |
super.addRequestProperty(key, value); | public void addRequestProperty(String key, String value) { String old = requestHeaders.getValue(key); if (old == null) { requestHeaders.put(key, value); } else { requestHeaders.put(key, old + "," + value); } } | |
if (isRedirect(response) && getInstanceFollowRedirects()) | if (response.isRedirect() && getInstanceFollowRedirects()) | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... |
if (response.getCode() == 404) { | if (response.isError()) | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... |
throw new FileNotFoundException(url.toString()); } | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | |
if (response.isError()) { int code = response.getCode(); if (code == 404 || code == 410) throw new FileNotFoundException(url.toString()); throw new IOException("Server returned HTTP response code " + code + " for URL " + url.toString()); } | public InputStream getInputStream() throws IOException { if (!connected) { connect(); } if (!doInput) { throw new ProtocolException("doInput is false"); } return responseSink; } | |
if (connected) throw new IllegalStateException("Already connected"); | public Map getRequestProperties() { return requestHeaders; } | |
if (key == null) return null; | public String getRequestProperty(String key) { return requestHeaders.getValue(key); } | |
super.setRequestProperty(key, value); | public void setRequestProperty(String key, String value) { requestHeaders.put(key, value); } | |
iNode.decLocked(); | public void setLength(long length) throws IOException { if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inod... | |
jComponent.doLayout(); | public void beginValidate() { jComponent.doLayout(); } | |
super(toolkit, canvas, new JCanvas()); this.canvas = canvas; | super(toolkit, canvas, new SwingCanvas(canvas)); | public SwingCanvasPeer(SwingToolkit toolkit, Canvas canvas) { super(toolkit, canvas, new JCanvas()); this.canvas = canvas; SwingToolkit.add(canvas, jComponent); SwingToolkit.copyAwtProperties(canvas, jComponent); } |
res.put("gnu.classpath.home.url", "system: res.put("gnu.classpath.vm.shortname", "jnode"); | public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); r... | |
} | public char last() { if (count == 0) return DONE; current = getEndIndex() - 1; return array[current]; } | |
point.x = size.width + xOffset; | point.x = xOffset; | protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... |
point.y = screenLoc.y - screenBounds.y + size.height - yOffset - popupSize.height; | point.y = size.height - yOffset - popupSize.height; | protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh... |
return elt.getAttributes(); | return getElement().getAttributes(); | public AttributeSet getAttributes() { return elt.getAttributes(); } |
View parent = getParent(); | public Container getContainer() { return parent != null ? parent.getContainer() : null; } | |
return elt.getEndOffset(); | return getElement().getEndOffset(); | public int getEndOffset() { return elt.getEndOffset(); } |
return elt.getStartOffset(); | return getElement().getStartOffset(); | public int getStartOffset() { return elt.getStartOffset(); } |
View parent = getParent(); | public ViewFactory getViewFactory() { return parent != null ? parent.getViewFactory() : null; } | |
public void setParent(View a) | public void setParent(View parent) | public void setParent(View a) { parent = a; } |
parent = a; | this.parent = parent; | public void setParent(View a) { parent = a; } |
public void setSize(int w, int h) { width = w; height = h; } | public void setSize(float width, float height) { } | public void setSize(int w, int h) { width = w; height = h; } |
if (rect == null) return; | public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); } | |
setSelectionPath(temp); | public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); } | |
revalidate(); repaint(); | public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); } | |
if (text == null) { return; | if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); | public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu... |
if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } | protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro... | |
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); | resetError(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... |
NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); | try { return ((DatagramChannelImpl) ch).getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { throw new IllegalStateException(ioe); } | public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); } |
if (name != null && value != null) ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); | if (this.attribHash.containsKey(name)) { ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); } else Log.errorln("Error: cant set XMLAttribute:["+name+"], doesnt exist in object:"+this); | protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v... |
rp.setBackground(UIManager.getColor("control")); | protected void installDefaults(JRootPane rp) { // Is this ok? rp.setBackground(UIManager.getColor("control")); } | |
x = x + 5; y = y + 5; if (collapsed) { | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | |
g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, y + 3, 5, 2); g.drawLine(x + 7, y + 5, x + 6, y + 6); g.drawLine(x + 1, y + 1, x + 1, y + 1); g.drawLine(x, y + 2, x, y + 5); g.drawLine(x + 1, y + 6, x + 1, y + 6); g.drawLine(x + 2, y + 7, x + 5, y + 7);... | Color dark = new Color(99, 130, 191); Color light = new Color(163, 184, 204); Color white = Color.white; | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... |
g.setColor(new Color(204, 204, 255)); g.drawLine(x + 3, y + 2, x + 4, y + 2); g.drawLine(x + 2, y + 3, x + 2, y + 4); g.drawLine(x + 3, y + 5, x + 3, y + 5); g.drawLine(x + 5, y + 3, x + 5, y + 3); | x += 8; y += 6; final int w = 6; final int wHalf = (w >> 2); g.setColor(light); g.drawOval(x, y, w, w); g.setColor(dark); g.fillOval(x + 1, y + 1, w - 1, w - 1); if (collapsed) g.fillRect(x + w, y + wHalf + 1, w, 2); else g.fillRect(x + wHalf + 1, y + w, 2, w); g.setColor(white); g.fillRect(x + wHalf + 1, y + wHalf ... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... |
g.setColor(new Color(153, 153, 204)); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 5, x + 2, y + 5); g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 5, y + 2, x + 5, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 5); g.setColor(new Color(102, 102, 153)); g.drawLine(x + 2, y + 1, x + 5, y + 1); g.d... | public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ... | |
return new HorizontalSliderThumbIcon(); | if (horizontalSliderThumbIcon == null) horizontalSliderThumbIcon = new HorizontalSliderThumbIcon(); return horizontalSliderThumbIcon; | public static Icon getHorizontalSliderThumbIcon() { return new HorizontalSliderThumbIcon(); } |
return new VerticalSliderThumbIcon(); | if (verticalSliderThumbIcon == null) verticalSliderThumbIcon = new VerticalSliderThumbIcon(); return verticalSliderThumbIcon; | public static Icon getVerticalSliderThumbIcon() { return new VerticalSliderThumbIcon(); } |
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_LIMIT) { throw new KeyAgreementException("encoded private key is too long"); } byte[] lengthBytes = { (byt... | writeKey(k); | public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA... |
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_LIMIT) { throw new KeyAgreementException("encoded public key is too long"); } byte[] lengthBytes = { (byte)... | writeKey(k); | public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L... |
drawLine(currStart, currEnd, g, rect.x, rect.y); | drawLine(currStart, currEnd, g, rect.x, rect.y + metrics.getAscent()); | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... |
this.hide(); | this.setVisible(false); | private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.hide(); this.dispose(); } |
return new StyleSheet(); | StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; | protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. return new StyleSheet(); } |
boolean graphicsDebugMode = false; | public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; boolean graphicsDebugMode = false; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoub... | |
if (delimiter !=null) writeOut(outputstream, " delimiter =\"" + delimiter + "\""); writeOut(outputstream, " repeatable=\"" + repeatable + "\""); if (recordTerminator !=null) writeOut(outputstream, " recordTerminator=\"" + recordTerminator + "\"/>"); | if (delimiter !=null) { writeOut(outputstream, " delimiter =\""); writeOutAttribute(outputstream, delimiter); writeOut(outputstream, "\""); } writeOut(outputstream, " repeatable=\""); writeOutAttribute(outputstream, repeatable); writeOut(outputstream, "\""); if (recordTerminator !=null) { writeOut(outputstream, " rec... | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ... |
fireScreenChanged(1); | updateDirty(); | protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ... |
if (oldRows != numRows || oldCols != numCols) fireScreenSizeChanged(); | public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols; planes.setSize(rows); } | |
boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { | if (indent!=null) | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... |
} | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... | |
String moreIndent = super.sPrettyXDFOutputIndentation; | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... | |
if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput) | writeOut(outputstream, "<read"); Hashtable xmlInfo = getXMLInfo(); ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); synchronized(attribs) { int stop = attribs.size(); for (int i = 0; i < stop; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\"" + item.... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... |
String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeOu... | writeOut(outputstream, indent); | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... |
if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "< if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); | writeOut(outputstream, "</read>"); if (niceOutput) { writeOut(outputstream,Constants.NEW_LINE); } | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ... |
final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } line = lineNr; | final String location = getLocationInfo(); | public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line... |
return cname + "!" + mname + " (" + linePrefix + line + ")"; | return cname + "!" + mname + " (" + location + ")"; | public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line... |
registerAPI(BlockDeviceAPI.class, this); | registerAPI(FSBlockDeviceAPI.class, this); | public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); } |
if (codePage.toLowerCase().startsWith("870")) { | if (codePage.toLowerCase().startsWith("870-pl")) { | public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ... |
setSelected(false); | public void windowClosing(WindowEvent event) { } | |
public Offset add (Extent byteSize) { | public Offset add (int byteSize) { | public Offset add (Extent byteSize) { return null; } |
public Gui5250Frame(My5250 m) { | public Gui5250Frame(My5250 m, int seq) { | public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } |
sequence = seq; | public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } | |
this.setTitle("tn5250j - 0.5.2"); | String release = "0"; String version = ".5"; String subVer= ".2b"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer); | private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF... |
sessionPane.addChangeListener(this); centerFrame(); | private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF... | |
if (isSpecified("-noembed",args)) { | if (isSpecified("-noembed",args) && sessionCount > 0) { | synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"... |
public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); } | public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } | public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } | public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } | public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } | public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } | public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); } | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... |
JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); | MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); | private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch... |
Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = desktop.getIndexOf(ses); Runnable tc = new Runnable () { public void run() { JInt... | public void onSessionChanged(SessionChangeEvent changeEvent) { } | |
JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); | MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); | private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1].... |
JInternalFrame[] frames = desktop.getAllFrames(); | MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index); | public void removeSessionView(Session targetSession) { JInternalFrame[] frames = desktop.getAllFrames(); } |
for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible()) | for (int i = 0; i < mb.getMenuCount(); i++) { JMenu m = mb.getMenu(i); if (m != null && m.isPopupMenuVisible()) | private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ... |
} | private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ... | |
return new LineSegment(P1, P2); | LineSegment segment = null; try { segment = (LineSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment; | public Object clone() { return new LineSegment(P1, P2); } |
if (this.equals (READING)) | if (getName().equals(READING.getName())) | protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att... |
if (this.equals (LANGUAGE)) | if (getName().equals(LANGUAGE.getName())) | protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att... |
if (this.equals (INPUT_METHOD_SEGMENT)) | if (getName().equals(INPUT_METHOD_SEGMENT.getName())) | protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att... |
bad.minor = Minor.Any; | public static AdapterNonExistent extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (AdapterNonExistent) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("AdapterNonExistent expe... | |
drawing = true; | public void clearScreen() { for (int x = 0; x < lenScreen; x++) { screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); } dirty.setBounds(tArea.getBounds());// dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); } | |
row = 0; sb = new StringBuffer(); | public void createFileInstance(String fileName) throws FileNotFoundException { fout = new PrintStream(new FileOutputStream(fileName)); } | |
firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); | firePropertyChange("enabled", !this.enabled, this.enabled); | public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); } } |
return null; | KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component focused = kfm.getPermanentFocusOwner(); JTextComponent textComp = null; if (focused instanceof JTextComponent) textComp = (JTextComponent) focused; return textComp; | protected final JTextComponent getFocusedComponent() { return null; // TODO } |
String paramId = newparameter.getParamId(); if (paramId != null) { if (ParamObj.containsKey(paramId)) Log.warnln("More than one param node with paramId=\""+paramId+"\", using latest node." ); ParamObj.put(paramId, newparameter); } String paramIdRef = newparameter.getParamIdRef(); if (paramIdRef != null) { if (... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM... | |
String readIdRef = readObj.getReadIdRef(); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | |
if (readIdRef != null) { | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... | |
if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System... | DataIOStyleAttribs.clear(); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.