rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
DataIOStyleAttribs = new Hashtable(); int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (value != null) DataIOStyleAttribs.put(name, value); } | DataIOStyleAttribs.clear(); DataIOStyleAttribs = attribListToHashtable(attrs); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen... |
String readIdRef = (String) DataIOStyleAttribs.get("readIdRef"); if (readIdRef != null) { XMLDataIOStyle readObj = null; if (ReadObj.containsKey(readIdRef)) { XMLDataIOStyle refReadObj = (XMLDataIOStyle) ReadObj.get(readIdRef); try { readObj = (XMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupported... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen... | |
DataIOStyleAttribs = new Hashtable (); | if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } 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()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat... |
DataIOStyleAttribs = new Hashtable(); | String readId = readObj.getReadId(); if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } 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()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa... |
ValueAttribs.clear(); | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // grab parent node name // this special call will find the first parent node name // that doesnt match XDFNodeName.VALUEGROUP String parentNodeName = getParentNodeName(XDFNodeName.VALUEGROUP... | |
CurrentValueListParameter = new Hashtable(); | CurrentValueListParameter.clear(); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... |
CurrentValueListParameter = attribListToHashtable(attrs); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... | |
int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); } | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa... | |
startElementHandlerHashtable.put(XDFNodeName.VALUE, new nullStartElementHandlerFunc()); | startElementHandlerHashtable.put(XDFNodeName.VALUE, new valueStartElementHandlerFunc()); | private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa... |
JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); | JPanel passPanel = new JPanel(); passPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 5)); passPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 10 , 0)); | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... |
setPassButton.setPreferredSize(new Dimension(150, 27)); | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | |
password.setPreferredSize(new Dimension(password.getWidth(), 27)); | private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta... | |
public DataFormat getDatatype() | public String getDatatype() | public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } |
return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); | return (String) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); | public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); } |
attribHash.put("units", new XMLAttribute(null, Constants.OBJECT_TYPE)); | attribHash.put("units", new XMLAttribute(new Units(), Constants.OBJECT_TYPE)); | private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ... |
public DataFormat setDatatype(DataFormat datatype) | public String setDatatype(String strDatatype) | public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); } |
return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); | if (Utility.isValidDatatype(strDatatype)) return (String) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(strDatatype); else return null; | public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); } |
+ "Copyright (C) 2005 Free Software Foundation\n" | + "Copyright (C) 2006 Free Software Foundation\n" | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith... |
public void shutdownOutput() | public void shutdownOutput() throws IOException | public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); } |
Graphics2D g2 = getDrawingArea(); | public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font... | |
Graphics2D g2 = getDrawingArea(); | public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font... | |
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { | public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { | public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... |
System.out.println(" we got a null graphic object "); | public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... | |
lock.notify(); | lock.notifyAll(); | public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro... |
g2d = (Graphics2D)bi.getGraphics(); | g2d = getDrawingArea(); | public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G... |
while (bi == null) | while (bi == null) { System.out.println(" bi = null "); | public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r... |
} | public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r... | |
lock.notifyAll(); | public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r... | |
lock.notifyAll(); | public int getHeight() { synchronized (lock) { return bi.getHeight(); } } | |
if (bi == null || bi.getWidth() != width || bi.getHeight() != height) | if (bi == null || bi.getWidth() != width || bi.getHeight() != height) { | public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this... |
lock.notify(); | lock.notifyAll(); | public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this... |
lock.notifyAll(); | public int getWidth() { synchronized (lock) { return bi.getWidth(); } } | |
while (bi == null) | while (bi == null) { System.out.println( " bi = null wa "); | public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina... |
lock.notifyAll(); | public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina... | |
lock.notify(); | lock.notifyAll(); | public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel... |
DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS); | Object params = attributes.get(DH_PARAMETERS); | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... |
if (params != null) | if (params instanceof DHGenParameterSpec) | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... |
l = params.getPrimeSize(); m = params.getExponentSize(); | DHGenParameterSpec jceSpec = (DHGenParameterSpec) params; l = jceSpec.getPrimeSize(); m = jceSpec.getExponentSize(); } else if (params instanceof DHParameterSpec) { DHParameterSpec jceSpec = (DHParameterSpec) params; l = jceSpec.getP().bitLength(); m = jceSpec.getL(); | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g... |
return currentThread().isInterrupted(); | VmThread current = VmThread.currentThread(); if (current != null) { return current.isInterrupted(true); } else { return false; } | public static boolean interrupted() { return currentThread().isInterrupted(); } |
return vmThread.isInterrupted(); | return vmThread.isInterrupted(false); | public boolean isInterrupted() { return vmThread.isInterrupted(); } |
if (vmThread.isInterrupted(true)) { throw new InterruptedException(); } | public final synchronized void join() throws InterruptedException { while (isAlive()) { /* wait sets this.state = WAITING; */ wait(); /* wait sets this.state = RUNNING; */ } } | |
return preferredScrollableViewportSize; | return preferredViewportSize; | public Dimension getPreferredScrollableViewportSize() { return preferredScrollableViewportSize; } |
this.preferredScrollableViewportSize = new Dimension(450,400); | this.preferredViewportSize = new Dimension(450,400); | protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); ... |
preferredScrollableViewportSize = p; | preferredViewportSize = p; | public void setPreferredScrollableViewportSize(Dimension p) { preferredScrollableViewportSize = p; revalidate(); repaint(); } |
par.replace(index, 1, new Element[]{ child1, child2 }); | Element[] add = new Element[]{ child1, child2 }; par.replace(index, 1, add); documentEvent.addEdit(new ElementEdit(par, index, new Element[]{ el }, add)); | void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element... |
Element element = getCharacterElement(position); return element.getParentElement(); | BranchElement root = (BranchElement) getDefaultRootElement(); int start = root.getStartOffset(); int end = root.getEndOffset(); if (position >= end) position = end - 1; else if (position < start) position = start; Element par = root.positionToElement(position); assert par != null : "The paragraph element must not be ... | public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); } |
fireChangedUpdate(ev); | public void setCharacterAttributes(int offset, int length, AttributeSet attributes, boolean replace) { DefaultDocumentEvent ev = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.CHANGE); // Modify the element structure so that the interval begins at an element /... | |
public int getFreeBlocksCount() { | public synchronized int getFreeBlocksCount() { | public int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); } |
public int getFreeInodesCount() { | public synchronized int getFreeInodesCount() { | public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); } |
public int getUsedDirsCount() { | public synchronized int getUsedDirsCount() { | public int getUsedDirsCount() { return Ext2Utils.get16(data, 16); } |
public void setFreeBlocksCount(int count) { | public synchronized void setFreeBlocksCount(int count) { | public void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); } |
public void setFreeInodesCount(int count) { | public synchronized void setFreeInodesCount(int count) { | public void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); } |
public void setUsedDirsCount(int count) { | public synchronized void setUsedDirsCount(int count) { | public void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); } |
groupDescriptorLock = new Object(); superblockLock = new Object(); | public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); } | |
synchronized(blockCache) { if(blockCache.containsKey(key)) result=(Block)blockCache.get(key); else{ byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); result=new Block(this, nr, data); blockCache.put(key, result); } } return result.getData(); | synchronized(blockCache) { if(blockCache.containsKey(key)) { result=(Block)blockCache.get(key); return result.getData(); } } byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); synchronized(blockCache) { if(!blockCache.containsKey(key)) { result=new Block(this, nr, data);... | public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //chec... |
synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } | gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); | protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } |
synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } | superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); | protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } } |
synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } | gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); | protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } } |
synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } | gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); | protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } } |
groupDescriptors[i].updateGroupDescriptors(); | groupDescriptors[i].updateGroupDescriptor(); | protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptors(); superblock.update(); } |
RETokenOneOf(int subIndex, Vector options, boolean negative) { | RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) { | RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } |
this.options = options; | options = new Vector(); | RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } |
for (int i = 0; i < optionsStr.length(); i++) options.addElement(new RETokenChar(subIndex,optionsStr.charAt(i),insens)); | RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } | |
Structure structure = new Structure(); | XMLDeclaration xmlDecl = new XMLDeclaration(); DocumentType doctype = new DocumentType(xdf); | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... |
href.setSystemId("xdf_table"); | href.setSystemId("xdf_table.dat"); | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... |
structure.addArray(array); xdf.addStructure(structure); | xdf.addArray(array); | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... |
System.out.println("-----\nPRINT OUT STRUCTURE\n-----"); | public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r... | |
System.out.println(nbCopyedFile + " file(s) copyed"); | System.out.println(nbCopyedFile + " file(s) copied"); | public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copyed"); } |
Class iClass = Class.forName(cn); | Class iClass = ObjectCreator.forName(cn); | private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.t... |
a.addAttribute(Bold, new Boolean(b)); | a.addAttribute(Bold, Boolean.valueOf(b)); | public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, new Boolean(b)); } |
a.addAttribute(Italic, new Boolean(b)); | a.addAttribute(Italic, Boolean.valueOf(b)); | public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, new Boolean(b)); } |
a.addAttribute(StrikeThrough, new Boolean(b)); | a.addAttribute(StrikeThrough, Boolean.valueOf(b)); | public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, new Boolean(b)); } |
a.addAttribute(Subscript, new Boolean(b)); | a.addAttribute(Subscript, Boolean.valueOf(b)); | public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, new Boolean(b)); } |
a.addAttribute(Superscript, new Boolean(b)); | a.addAttribute(Superscript, Boolean.valueOf(b)); | public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, new Boolean(b)); } |
a.addAttribute(Underline, new Boolean(b)); | a.addAttribute(Underline, Boolean.valueOf(b)); | public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, new Boolean(b)); } |
if (newDoc != null) | public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("document")) { Document oldDoc = (Document) e.getOldValue(); oldDoc.removeDocumentListener(documentListener); Document newDoc = (Document) e.getNewValue(); ... | |
AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... | |
textComponent.getDocument().addDocumentListener(documentListener); | Document doc = textComponent.getDocument(); if (doc != null) doc.addDocumentListener(documentListener); | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); ... |
int button = event.getButton(); | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | |
if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) | if (SwingUtilities.isLeftMouseButton(event)) { if (event.isShiftDown() && getDot() != -1) { | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... |
else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); | } | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... |
else event.consume(); | } | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... |
AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(... | |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJDialog(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } |
return null; | return super.createDefaultEditorKit(); | protected EditorKit createDefaultEditorKit() { return null; // TODO } // createDefaultEditorKit() |
return null; | return super.paramString(); | protected String paramString() { return null; // TODO } // paramString() |
super.replaceSelection(content); | public void replaceSelection(String content) { // TODO } // replaceSelection() | |
super.setDocument(document); | public void setDocument(Document document) { // TODO } // setDocument() | |
super.setEditorKit(editor); | public final void setEditorKit(EditorKit editor) { // TODO } // setEditorKit() | |
if (sPrettyXDFOutput) writeOut(outputstream, indent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
String newindent = indent + sPrettyXDFOutputIndentation; | String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
if (sPrettyXDFOutput) writeOut(outputstream, newindent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, newindent); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
protected void resolve() { | protected void resolve(PluginRegistryModel registry) { | protected void resolve() { // Do nothing } |
protected void unresolve() { | protected void unresolve(PluginRegistryModel registry) { | protected void unresolve() { // Do nothing } |
{ | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | |
} | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | |
IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.... | if (name.length() == 0) return null; | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... |
return result; | if (name.startsWith("/")) return null; if (name.endsWith("/")) return getInstance(name.substring(0, name.length() - 1), Registry.RAW_ENCODING_ID); int i = name.indexOf("/"); if (i == -1) return getInstance(name, Registry.RAW_ENCODING_ID); String kpgName = name.substring(0, i); String formatName = name.substring(i + ... | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... |
public static final Set getNames() | public static synchronized final Set getNames() | public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.