rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
CurrentArray.setFieldAxis(newfieldaxis); | CurrentArray.addAxis(newfieldaxis); | public Object action (SaxDocumentHandler handler, Attributes attrs) { // create new object appropriately FieldAxis newfieldaxis = new FieldAxis(); newfieldaxis.setAttributes(attrs); // set XML attributes from passed list // Every axis must have *either* axisId *or* an axisId... |
*/ | public Object action (SaxDocumentHandler handler, Attributes attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on Attributes. Just dumb copy for now. DataIOStyleAttribs = attribListToHashtable(attrs); // clear out the... | |
Log.debugln("ADDING TAGGED DATA to ("+TaggedLocatorObj+") : ["+thisString+"]"); | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // only do something here IF we are reading in data at the moment // is this needed?? if (DataNodeLevel > 0) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); ... | |
Log.errorln("Got Href Formatted Number Data:["+thisData.trim()+ "]["+bytes_added+"]["+bytes_to_add+"]"); | private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_... | |
Log.errorln("Got Href Formatted Character Data:["+thisData+ "]["+bytes_added+"]["+bytes_to_add+"]"); | private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_... | |
Integer numOfBits = ((BinaryIntegerDataFormat) currentDataFormat).getBits(); int numOfBytes = numOfBits.intValue()/8; int myValue = convertBytesToInteger (numOfBytes, endian, data, bytes_added); | int myValue = convertBytesToInteger (bytes_to_add, endian, data, bytes_added); | private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_... |
Log.infoln(") "); | Log.infoln(") ["+CurrentDataFormat+"]"); | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// this stuff slows down the... |
return addr; | return (byte[]) addr.clone(); | public byte[] getAddress() { return addr; } |
"Button.background", new ColorUIResource(light), | "Button.background", new ColorUIResource(Color.LIGHT_GRAY), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Button.darkShadow", new ColorUIResource(shadow), | "Button.darkShadow", new ColorUIResource(Color.BLACK), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Button.foreground", new ColorUIResource(darkShadow), "Button.highlight", new ColorUIResource(highLight), "Button.light", new ColorUIResource(highLight), | "Button.foreground", new ColorUIResource(Color.BLACK), "Button.highlight", new ColorUIResource(Color.WHITE), "Button.light", new ColorUIResource(Color.LIGHT_GRAY), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Button.shadow", new ColorUIResource(shadow), | "Button.shadow", new ColorUIResource(Color.GRAY), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"CheckBox.icon", BasicIconFactory.getCheckBoxIcon(), | "CheckBox.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } }, | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
new BorderUIResource.CompoundBorderUIResource(null, null), | new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(B... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"InternalFrame.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } }, | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | |
"RadioButton.icon", BasicIconFactory.getRadioButtonIcon(), | "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } }, | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Slider.thumbWidth", new Integer(10), | "Slider.thumbWidth", new Integer(11), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.closedIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeClosed.png"))), | "Tree.font", new FontUIResource(new Font("Helvetica", Font.PLAIN, 12)), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Tree.hash", new ColorUIResource(Color.gray), "Tree.leafIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeLeaf.png"))), | "Tree.hash", new ColorUIResource(new Color(128, 128, 128)), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Tree.openIcon", new IconUIResource(new ImageIcon(getClass().getResource( "/gnu/javax/swing/plaf/gtk/icons/TreeOpen.png"))), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | |
"Tree.rowHeight", new Integer(19), | "Tree.rowHeight", new Integer(20), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
"Tree.selectionForeground", new ColorUIResource(Color.white), "Tree.textBackground", new ColorUIResource(Color.white), | "Tree.selectionForeground", new ColorUIResource(new Color(255, 255, 255)), "Tree.textBackground", new ColorUIResource(new Color(255, 255, 255)), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... |
if ( (attrib=getEncoding()) !=null) writeOut(outputstream, " encoding=\"" + attrib+"\""); | if ( (attrib=getEncoding()) !=null) { writeOut(outputstream, " encoding=\""); writeOut(outputstream, attrib); writeOut(outputstream, "\""); } | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " endian=\"" + attrib + "\""); | { writeOut(outputstream, " endian=\""); writeOut(outputstream, attrib); writeOut(outputstream, "\""); } | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " readId=\"" + attrib + "\""); | { writeOut(outputstream, " readId=\""); writeOut(outputstream, attrib); writeOut(outputstream, "\""); } | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
writeOut(outputstream, " readIdRef=\"" + attrib + "\""); | { writeOut(outputstream, " readIdRef=\""); writeOut(outputstream, attrib); writeOut(outputstream, "\""); } | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... |
private void addNonNull(Component c) | private void addNonNull(Component c, Object constraints) | private void addNonNull(Component c) { if (c != null) add(c); } |
add(c); | add(c, constraints); | private void addNonNull(Component c) { if (c != null) add(c); } |
addNonNull(h); | addNonNull(h, JScrollPane.COLUMN_HEADER); | public void setColumnHeader(JViewport h) { if (columnHeader == h) return; JViewport old = columnHeader; removeNonNull(old); columnHeader = h; addNonNull(h); firePropertyChange("columnHeader", old, h); sync(); } |
addNonNull(c); | addNonNull(c, JScrollPane.LOWER_RIGHT_CORNER); | public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP... |
addNonNull(c); | addNonNull(c, JScrollPane.UPPER_RIGHT_CORNER); | public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP... |
addNonNull(c); | addNonNull(c, JScrollPane.LOWER_LEFT_CORNER); | public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP... |
addNonNull(c); | addNonNull(c, JScrollPane.UPPER_LEFT_CORNER); | public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP... |
addNonNull(h); | addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); | public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old != null) { BoundedRang... |
addNonNull(v); | addNonNull(v, JScrollPane.ROW_HEADER); | public void setRowHeader(JViewport v) { if (rowHeader == v) return; JViewport old = rowHeader; removeNonNull(old); rowHeader = v; addNonNull(v); firePropertyChange("rowHeader", old, v); sync(); } |
addNonNull(v); | addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); | public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null) { BoundedRangeModel... |
addNonNull(v); | addNonNull(v, JScrollPane.VIEWPORT); | public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v); revalidate(); repai... |
* (has to be instanciated via XDF::Array ONLY) | * (has to be instanciated via Array ONLY) | public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via XDF::Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (i... |
writeChar(sb.toString()); | writeBuffer(sb.toString()); | private void cvtToPDF() { try { openOutputFile(); // Create the printparameters to be used in the transform of the // input stream PrintParameterList printParms = new PrintParameterList(); printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS... |
dw = new java.io.PrintStream(fw); | if (ifs.isSelected()) dw = new java.io.PrintStream(ifsfw); else dw = new java.io.PrintStream(fw); | private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ... |
System.out.println("Starting Output"); | updateStatus("Starting Output"); | private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ... |
cvtToText(); | cvtToPDF(); | public void run() { cvtToText(); } |
ifsSave.setEnabled(true); | private void doItemStateChanged(ItemEvent e) { pcPathInfo.setEnabled(false); ifsPathInfo.setEnabled(false); pcSave.setEnabled(false); if (e.getStateChange() == ItemEvent.SELECTED) { if (pc.isSelected()) { pcPathInfo.setEnabled(true); pcSave.setEnabled(true); ... | |
WizardPage page; | private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard... | |
page = new WizardPage(WizardPage.PREVIOUS | | pagePDF = new WizardPage(WizardPage.PREVIOUS | | private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard... |
page.setName(LangTool.getString("spool.titlePage2")); | pagePDF.setName(LangTool.getString("spool.titlePage2PDF")); | private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard... |
page.getContentPane().add(pageTwo(), BorderLayout.CENTER); wizard.add(page); | pagePDF.getContentPane().add(pageTwoPDF(), BorderLayout.CENTER); wizard.add(pagePDF); pageText = new WizardPage(WizardPage.PREVIOUS | WizardPage.FINISH | WizardPage.CANCEL | WizardPage.HELP); pageText.setName(LangTool.getString("spool.titlePage2Txt")); pageText.getContentPane().add(pageTwoText(), BorderLayout.CENTER)... | private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard... |
two.add(statusBar,BorderLayout.SOUTH); | if (((String)cvtType.getSelectedItem()).equals( LangTool.getString("spool.toText"))) { twoText.add(statusBar,BorderLayout.SOUTH); e.setNewPage(pageText); } else { twoPDF.add(statusBar,BorderLayout.SOUTH); e.setNewPage(pagePDF); } | public void nextBegin(WizardEvent e) {// System.out.println(e.getCurrentPage().getName() + " Next Begin"); two.add(statusBar,BorderLayout.SOUTH); } |
String fileName = pcPathInfo.getText().trim(); | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... | |
File f = File.createTempFile(number.getText().trim(),suffix,dir); | String tempFile = spooledFile.getText().trim() + '_' + jobName.getText().trim() + '_' + user.getText().trim() + '_' + spooledFileNumber.getText().trim() + '_' + number.getText().trim(); File f = File.createTempFile(tempFile,suffix,dir); | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... |
fw = new FileOutputStream(fileName); | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... | |
bos = PdfWriter.getInstance(document,fw); | if (ifs.isSelected()) { bos = PdfWriter.getInstance(document,ifsfw); } else { bos = PdfWriter.getInstance(document,fw); } | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... |
System.out.println("Cannot open"); | System.out.println("Cannot open 1 " + _ex.getMessage()); | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... |
catch(Exception _ex) { System.out.println("Cannot open"); | catch(Exception _ex2) { System.out.println("Cannot open 2 " + _ex2.getMessage()); | public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr... |
contentPane.add(statusBar, BorderLayout.SOUTH); contentPane.add(spoolPanel, BorderLayout.CENTER); | private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo... | |
spoolPanel.add(spoolData, BorderLayout.CENTER); | private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo... | |
cvtType.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool.toText"))) nextButton.setEnabled(false); else nextButton.setEnabled(true); } }); | private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo... | |
spoolInfo.add(new JLabel("")); | spoolInfo.add(ifsSave); | private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo... |
e.setNewPage(page); | public void previousBegin(WizardEvent e){// System.out.println(e.getCurrentPage().getName() + " Prev Begin"); contentPane.add(statusBar,BorderLayout.SOUTH); } | |
statusBar.setText(stat); | cvtToText(); | public void run() { statusBar.setText(stat); } |
if (sessionArgs == null || sess.getCount() > 0) { | if (sessionArgs == null || sess.getCount() > 0 || sessions.containsKey("emul.showConnectDialog")) { | void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ... |
out = conn.getObjectOutputStream(); | out = conn.startObjectOutputStream(); | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
in = conn.getObjectInputStream(); | in = conn.startObjectInputStream(); | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
if(cls == Void.TYPE){ | if (returncode == RETURN_NACK) { returnval = in.readObject(); } else if(cls == Void.TYPE) { | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
in.readObject(); }else returnval = ((RMIObjectInputStream)in).readValue(cls); | } else { returnval = ((RMIObjectInputStream)in).readValue(cls); | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
catch (IOException e3) { | } catch (IOException e3) { | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
throw (Exception)returnval; | if (returncode == RETURN_NACK) throw (Exception)returnval; else throw new RemoteException("unexpected returncode: " + returncode); | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut... |
if (!( type().kind().value() == TCKind._tk_alias && has._type().kind().value() == kind ) ) | protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + type... | |
public void insert_Value(Serializable x, TypeCode typecode) | public void insert_Value(Serializable x, TypeCode c_typecode) { if (typecode != null && typecode.kind() == TCKind.tk_value_box) { has = new gnuValueHolder(x, typecode); } else | public void insert_Value(Serializable x, TypeCode typecode) { type(typecode); insert_Value(x); } |
} | public void insert_Value(Serializable x, TypeCode typecode) { type(typecode); insert_Value(x); } | |
has._read(input); | if (!(has instanceof universalHolder) && (kind == TCKind._tk_value_box)) { Field vField = has.getClass().getField("value"); BoxedValueHelper helper; try { Class helperClass = Class.forName(ObjectCreator.toHelperName(a_type.id())); helper = (BoxedValueHelper) helperClass.newInstance(); | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
catch (BadKind ex) | catch (Exception ex) | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
throw new MARSHAL("Bad kind: " + ex.getMessage()); | helper = null; } Object content = Vio.read(input, helper); vField.set(has, content); } else has._read(input); | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
catch (IOException ex) | catch (Exception ex) | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
throw new MARSHAL("IO exception: " + ex.getMessage()); | MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
else if (xKind == TCKind._tk_null || xKind == TCKind._tk_objref || xKind == TCKind._tk_value || xKind == TCKind._tk_value_box ) output.write_long(0); | public void write_value(org.omg.CORBA.portable.OutputStream output) { if (has != null) has._write(output); } | |
return new QuadSegment(P1.getX(), P1.getY(), cp.getX(), cp.getY(), P2.getX(), P2.getY()); | QuadSegment segment = null; try { segment = (QuadSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); segment.cp = (Point2D) cp.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment; | public Object clone() { return new QuadSegment(P1.getX(), P1.getY(), cp.getX(), cp.getY(), P2.getX(), P2.getY()); } |
conPath2 = new File(GlobalConfigure.instance().getProperty( | conPath2 = new File(GlobalConfigure.getInstance().getProperty( | public static void loadMacros(Session session, Macronizer macros, JMenu menu) { final Session ses = session; Vector mv = new Vector(); Action action; menu.addSeparator(); String[] macrosList = Macronizer.getMacroList(); for (int x = 0; x < macrosList.length; x++) { mv.add(macros... |
scriptDir(GlobalConfigure.instance().getProperty( | scriptDir(GlobalConfigure.getInstance().getProperty( | public static void loadMacros(Session session, Macronizer macros, JMenu menu) { final Session ses = session; Vector mv = new Vector(); Action action; menu.addSeparator(); String[] macrosList = Macronizer.getMacroList(); for (int x = 0; x < macrosList.length; x++) { mv.add(macros... |
public CheckboxMenuItem(String label, boolean state) { super(label); this.state = state; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); } | CheckboxMenuItem() { this("", false); } | public CheckboxMenuItem(String label, boolean state) { super(label); this.state = state; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); } |
public synchronized void addItemListener(ItemListener listener) { | addItemListener(ItemListener listener) { | public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); enableEvents(AWTEvent.ITEM_EVENT_MASK); } |
public synchronized void setState(boolean state) { | setState(boolean state) { | public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } } |
cp.setState(state); } | cp.setState (state); | public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } } |
} | public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } } | |
public final void add(VmMethod method, int pc, int offset) { addressTable.add(method, pc, offset); | public final void add(VmMethod method, int pc, int offset, int inlineDepth) { addressTable.add(method, pc, offset, inlineDepth); | public final void add(VmMethod method, int pc, int offset) { addressTable.add(method, pc, offset); } |
if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); | if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
text = bufferedKeys + text; | if (text != null) { text = bufferedKeys + text; } | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
bufferedKeys = ""; | bufferedKeys = null; | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
while (strokenizer.hasMoreKeyStrokes() && !done) { | while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked && !isStatusErrorCode() && !done) { | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
if (s != null) | if (s != null) { | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
System.out.println(" mnemonic " + s); | System.out.println(" send keys mnemonic " + s); | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ... |
statusErrorCode = true; setKeyboardLocked(true); | setPrehelpState(true); | public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ... |
statusErrorCode = false; setKeyboardLocked(false); | setPrehelpState(false); | public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ... |
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); | return false; | protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); } boolean updateField = false; boolean numericError = false; boolean updatePos = fals... |
return (flags & SYNTETIC) != 0; } | return (flags & SYNTHETIC) != 0; } | boolean isSyntetic() { return (flags & SYNTETIC) != 0; } |
if (stopMatchingIfSatisfied) break; | private boolean matchP(CharIndexed input, REMatch mymatch, boolean tryOnly) { REMatch.REMatchList newMatch = new REMatch.REMatchList(); REToken tk; for (int i=0; i < options.size(); i++) { // In order that the backtracking can work, // each option must be chained to the next token. // But the chain method ... | |
Thread printerThread = new PrinterThread(planes.screen, font, numCols, | Thread printerThread = new PrinterThread(this, font, numCols, | public final void printMe() { Thread printerThread = new PrinterThread(planes.screen, font, numCols, numRows, colorBg, defaultPrinter, (Session) gui); printerThread.start(); } |
sb.append(vt.getASCIIChar(abyte0[163 + f] & 0xff)); | sb.append(vt.ebcdic2uni(abyte0[163 + f] & 0xff)); | private boolean getMbrSize(String member) { boolean flag = true; if(ftpOutputStream == null) { printFTPInfo("Not connected to any server!"); return false; } if(!loggedIn) { printFTPInfo("Login was not successful! Aborting!"); return false; } Socket socket... |
public XDF getOwner (XDF obj) { | public XDF getOwner () { | public XDF getOwner (XDF obj) { return owner; } |
g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 8); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 10, y + 2, x + 10, y + 2); | g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 8); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 10, y + 2, x + 10, y + 2); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 8, y + 4, x + 8, y + 4); | public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.