rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
g.drawLine(x + 1, y + 1, x + w - 2, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 2);
g.setColor(darkShadow); g.drawRect(x, y, w - 1, h - 1); g.drawRect(x + 1, y + 1, w - 3, h - 3);
private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha...
if (!sLoaders.contains(cl))
if (cl!=null && !sLoaders.contains(cl))
public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(cl); } loaders = new Cl...
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized(iNode) { try{ if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = ...
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized (iNode) { try { if (len + off > getLength()) throw new IOException("Can't read past the file!"); l...
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to i...
private void rereadInode() throws IOException{ int iNodeNr = iNode.getINodeNr(); try{ iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); }catch(FileSystemException fse) { throw new IOException(fse); } }
private void rereadInode() throws IOException { int iNodeNr = iNode.getINodeNr(); try { iNode = ((Ext2FileSystem) getFileSystem()).getINode(iNodeNr); } catch (FileSystemException ex) { final IOException ioe = new IOException(); ioe.initCause(ex); throw ioe; } }
private void rereadInode() throws IOException{ int iNodeNr = iNode.getINodeNr(); try{ iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); }catch(FileSystemException fse) { throw new IOException(fse); } }
if(!canWrite()) throw new ReadOnlyFileSystemException("FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized(iNode) { try{ if(length<getLength()) { lon...
if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized (iNode) { try { if (length < ge...
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 inode does not get //flushed between reading it and...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } try{ synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } try { synchronized (iNode) { if (fileOffset > getLength()) throw new IOException( "Can't write beyond the end o...
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to i...
Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); Class[] stubprototype = new Class[] { RemoteRef.class }; Constructor con = scls.getConstructor(stubprototype); return (Remote)(con.newInstance(new Object[]{obj})); ...
Remote stub = (Remote)stubs.get(obj); if (stub == null)
public static Remote toStub(Remote obj) throws NoSuchObjectException { Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); // JDK 1.2 stubs Class[] stubprototype = new Class[] { RemoteRef.class }...
return stub;
public static Remote toStub(Remote obj) throws NoSuchObjectException { Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); // JDK 1.2 stubs Class[] stubprototype = new Class[] { RemoteRef.class }...
poa.checkDiscarding();
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
String holder = toHelperName(idl); Class holderClass = Class.forName(holder);
String helper = toHelperName(idl); Class helperClass = Class.forName(helper);
public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = holderClass.getMethod("read", new Class[] ...
holderClass.getMethod("read",
helperClass.getMethod("read",
public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = holderClass.getMethod("read", new Class[] ...
int year = defaultCentury + calendar.get(Calendar.YEAR); calendar.set(Calendar.YEAR, year);
int year = calendar.get(Calendar.YEAR);
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
{
public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar...
}
public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar...
{
Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
}
Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ...
else getClientProperties().remove(key);
public final void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); }
new UIDefaults.ProxyLazyValue ("javax.swing.plaf.metal.MetalCheckBoxIcon"), "CheckBox.checkIcon",
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark...
JarURLConnection(URL url) throws MalformedURLException {
protected JarURLConnection(URL url) throws MalformedURLException {
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
String url_string = url.toExternalForm();
if (! url.getProtocol().equals("jar")) throw new MalformedURLException(url + ": Not jar protocol.");
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string);
String spec = url.getFile(); int bang = spec.indexOf("!/"); if (bang == -1) throw new MalformedURLException(url + ": No `!/' in spec.");
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
if (url_string.indexOf("!/") == -1) throw new MalformedURLException(url_string);
jarFileURL = new URL(spec.substring(0, bang));
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
String real_url_string = url_string.substring(4, url_string.indexOf("!/")); real_url = new URL(real_url_string); if (url_string.length() == (url_string.indexOf("!/") + 1)) entry_name = ""; else entry_name = url_string.substring(url_string.indexOf("!/") + 2); }
entryName = spec.length() == (bang + 2) ? null : spec.substring(bang + 2); }
JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde...
getAttributes() throws IOException { return(getJarEntry().getAttributes()); }
public Attributes getAttributes() throws IOException { JarEntry entry = getJarEntry(); return entry != null ? entry.getAttributes() : null; }
getAttributes() throws IOException{ return(getJarEntry().getAttributes());}
getCertificates() throws IOException { return(getJarEntry().getCertificates()); }
public Certificate[] getCertificates() throws IOException { JarEntry entry = getJarEntry(); return entry != null ? entry.getCertificates() : null; }
getCertificates() throws IOException{ return(getJarEntry().getCertificates());}
getEntryName() { return(entry_name); }
public String getEntryName() { return entryName; }
getEntryName(){ return(entry_name);}
getJarEntry() throws IOException { if (jar_file == null) jar_file = getJarFile();
public JarEntry getJarEntry() throws IOException { JarFile jarFile = getJarFile();
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
return(jar_file.getJarEntry(entry_name)); }
return jarFile != null ? jarFile.getJarEntry(entryName) : null; }
getJarEntry() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getJarEntry(entry_name));}
getJarFile() throws IOException;
public abstract JarFile getJarFile() throws IOException;
getJarFile() throws IOException;
getJarFileURL() { return(real_url); }
public URL getJarFileURL() { return jarFileURL; }
getJarFileURL(){ return(real_url);}
getMainAttributes() throws IOException { return(getManifest().getMainAttributes()); }
public Attributes getMainAttributes() throws IOException { Manifest manifest = getManifest(); return manifest != null ? manifest.getMainAttributes() : null; }
getMainAttributes() throws IOException{ return(getManifest().getMainAttributes());}
getManifest() throws IOException { if (jar_file == null) jar_file = getJarFile();
public Manifest getManifest() throws IOException { JarFile file = getJarFile();
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
return(jar_file.getManifest()); }
return file != null ? file.getManifest() : null; }
getManifest() throws IOException{ if (jar_file == null) jar_file = getJarFile(); return(jar_file.getManifest());}
public AccessibleJApplet()
protected AccessibleJApplet()
public AccessibleJApplet() { super(); // Nothing to do here. }
if (log.isDebugEnabled()) { log.debug("getHardwareAddress(" + address + ", " + myAddress + ", " + device.getId() + ", " + timeout + ")"); }
public HardwareAddress getHardwareAddress(ProtocolAddress address, ProtocolAddress myAddress, Device device, long timeout) throws TimeoutException, NetworkException { final long start = System.currentTimeMillis(); long lastReq = 0; if (address.equals(myAddress)) { // This is simple, just return my address ret...
public Frame() { this(""); }
Frame() { this(""); }
public Frame() { this(""); }
public void addNotify() { if (peer == null) peer = getToolkit().createFrame(this); super.addNotify(); }
addNotify() { if (menuBar != null) menuBar.addNotify(); if (peer == null) peer = getToolkit ().createFrame (this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createFrame(this); super.addNotify(); }
public int getCursorType() { return (getCursor().getType()); }
getCursorType() { return(getCursor().getType()); }
public int getCursorType() { return (getCursor().getType()); }
public static Frame[] getFrames() { String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); }
getFrames() { String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); }
public static Frame[] getFrames() { //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); // see finalize() comment String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); }
public Image getIconImage() { return (icon); }
getIconImage() { return(icon); }
public Image getIconImage() { return (icon); }
public MenuBar getMenuBar() { return (menuBar); }
getMenuBar() { return(menuBar); }
public MenuBar getMenuBar() { return (menuBar); }
public int getState() { return state; }
public int getState () { return (state & ICONIFIED) != 0 ? ICONIFIED : NORMAL; }
public int getState() { /* FIXME: State might have changed in the peer... Must check. */ return state; }
public String getTitle() { return (title); }
getTitle() { return(title); }
public String getTitle() { return (title); }
public boolean isResizable() { return (resizable); }
isResizable() { return(resizable); }
public boolean isResizable() { return (resizable); }
protected String paramString() { return (getClass().getName()); }
paramString() { return(getClass().getName()); }
protected String paramString() { return (getClass().getName()); }
public void remove(MenuComponent menu) { menuBar.remove(menu); }
remove(MenuComponent menu) { menuBar.remove(menu); }
public void remove(MenuComponent menu) { menuBar.remove(menu); }
public void setCursor(int type) { setCursor(new Cursor(type)); }
setCursor(int type) { setCursor(new Cursor(type)); }
public void setCursor(int type) { setCursor(new Cursor(type)); }
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
public synchronized void setMenuBar(MenuBar menuBar) { this.menuBar = menuBar; if (peer != null) ((FramePeer) peer).setMenuBar(menuBar); }
setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); ((FramePeer) peer).setMenuBar(menuBar); } this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { this.menuBar = menuBar; if (peer != null) ((FramePeer) peer).setMenuBar(menuBar); }
public synchronized void setResizable(boolean resizable) { this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable); }
setResizable(boolean resizable) { this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable); }
public synchronized void setResizable(boolean resizable) { this.resizable = resizable; if (peer != null) ((FramePeer) peer).setResizable(resizable); }
public synchronized void setTitle(String title) { this.title = title; if (peer != null) ((FramePeer) peer).setTitle(title); }
setTitle(String title) { this.title = title; if (peer != null) ((FramePeer) peer).setTitle(title); }
public synchronized void setTitle(String title) { this.title = title; if (peer != null) ((FramePeer) peer).setTitle(title); }
}
private void setActions(String str) { if ("read".equals(str)) actions = READ; else if ("write".equals(str)) actions = WRITE; else if ("read,write".equals(str) || "write,read".equals(str)) actions = READ | WRITE; else throw new IllegalArgumentException("illegal action " + str); }
public abstract Object get(String name, Object defvalue)
public abstract boolean get(String name, boolean defvalue)
public abstract Object get(String name, Object defvalue) throws IOException, IllegalArgumentException;
return read_value((Class) null);
return Vio.read(this);
public Serializable read_value() { return read_value((Class) null); }
String ln = String.valueOf(f.length());
String ln = NumberUtils.size(f.length());
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
sb.append("B ");
sb.append(" ");
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
for (int j = 0; j < LEFT_MARGIN + 4; j++, sb.append(' '))
for (int j = 0; j < LEFT_MARGIN + 3; j++, sb.append(' '))
private void printList(File[] list, PrintStream out) { if (list != null) { Arrays.sort(list, new Comparator<File>() { public int compare(File f1, File f2) { boolean b1 = f1.isDirectory(); boolean b2 = f2.isDirectory(); return ...
throw new IOException("ftp protocol handler not yet implemented."); /*
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
*/
protected URLConnection openConnection(URL url) throws IOException { // If a hostname is set, then we need to switch protocols to ftp // in order to transfer this from the remote host. String host = url.getHost(); if ((host != null) && (! host.equals(""))) { throw new IOException("ftp protoco...
protected void acceptDrag (int dragOperation)
protected void acceptDrag(int dragOperation) throws NotImplementedException
protected void acceptDrag (int dragOperation) { // FIXME: implement this }
protected void acceptDrop (int dropOperation)
protected void acceptDrop(int dropOperation) throws NotImplementedException
protected void acceptDrop (int dropOperation) { // FIXME: implement this }
protected DataFlavor[] getCurrentDataFlavors ()
protected DataFlavor[] getCurrentDataFlavors() throws NotImplementedException
protected DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; }
protected Transferable getTransferable() throws InvalidDnDOperationException
protected Transferable getTransferable() throws InvalidDnDOperationException, NotImplementedException
protected Transferable getTransferable() throws InvalidDnDOperationException { // FIXME: implement this return null; }
protected void rejectDrag ()
protected void rejectDrag() throws NotImplementedException
protected void rejectDrag () { // FIXME: implement this }
protected void rejectDrop ()
protected void rejectDrop() throws NotImplementedException
protected void rejectDrop () { // FIXME: implement this }
this("",null);
init("", null); updateUI();
public AbstractButton() { this("",null); }
e.setSource(this);
ActionEvent ae = new ActionEvent( this, e.getID(), getActionCommand(), e.getWhen(), e.getModifiers());
protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); }
listeners[i].actionPerformed(e);
listeners[i].actionPerformed(ae);
protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); }
return getModel().getActionCommand();
String ac = model.getActionCommand(); if (ac != null) return ac; else return text;
public String getActionCommand() { return getModel().getActionCommand(); }
public void setActionCommand(String aCommand)
public void setActionCommand(String actionCommand)
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); }
getModel().setActionCommand(aCommand);
model.setActionCommand(actionCommand);
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); }
compareTo(Object obj) { return(compareTo((CollationKey)obj)); }
public int compareTo (CollationKey ck) { int max = Math.min (key.length, ck.key.length); for (int i = 0; i < max; ++i) { if (key[i] != ck.key[i]) return key[i] - ck.key[i]; } return key.length - ck.key.length; }
compareTo(Object obj){ return(compareTo((CollationKey)obj));}
equals(Object obj) { if (obj == null) return(false);
public boolean equals (Object obj) { if (! (obj instanceof CollationKey)) return false;
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
if (!(obj instanceof CollationKey)) return(false);
CollationKey ck = (CollationKey) obj;
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
CollationKey ck = (CollationKey)obj;
if (ck.collator != collator) return false;
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
if (!ck.collator.equals(collator)) return(false);
if (!ck.getSourceString ().equals (getSourceString ())) return false;
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
if (!ck.getSourceString().equals(getSourceString())) return(false);
if (!ck.toByteArray ().equals (toByteArray ())) return false;
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
if (!ck.toByteArray().equals(toByteArray())) return(false); return(true); }
return true; }
equals(Object obj){ if (obj == null) return(false); if (!(obj instanceof CollationKey)) return(false); CollationKey ck = (CollationKey)obj; if (!ck.collator.equals(collator)) return(false); if (!ck.getSourceString().equals(getSourceString())) return(false); if (!ck.toByteArray().equals(toByteArray()))...
getSourceString() { return(str); }
public String getSourceString() { return originalText; }
getSourceString(){ return(str);}
hashCode() { return(key.hashCode()); }
public int hashCode() { long h = originalText.hashCode(); for (int i = key.length - 1; i >= 0; --i) h ^= key[i] * (i + 1); return (int) ((h >> 32) ^ h); }
hashCode(){ return(key.hashCode());}
toByteArray() { return(key); }
public byte[] toByteArray() { return key; }
toByteArray(){ return(key);}
{
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } TemplateNode ret = new CallTemplateNode(name, withParams2); if (childre...
}
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } TemplateNode ret = new CallTemplateNode(name, withParams2); if (childre...
Object value = p.getValue(stylesheet, mode, context, pos, len);
if (t.hasParam(p.name)) { Object value = p.getValue(stylesheet, mode, context, pos, len);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
} TemplateNode t = stylesheet.getTemplate(mode, name); if (t != null) {
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi...
{
public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); }
}
public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); }
StringBuffer buf = new StringBuffer(getClass().getName());
StringBuffer buf = new StringBuffer("call-template");
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
frame.setVisible(true);
public void deiconifyFrame(JInternalFrame frame) { final JDesktopPane p = frame.getDesktopPane(); //frame.setVisible(true); if (p != null) { p.setSelectedFrame(frame); } }
frame.setVisible(false);
public void iconifyFrame(JInternalFrame frame) { final JDesktopPane p = frame.getDesktopPane(); //frame.setVisible(false); if ((p != null) && (p.getSelectedFrame() == frame)) { p.setSelectedFrame(null); } }
frame.dispose();
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
frame.dispose();
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
frame.dispose();
public void actionPerformed(ActionEvent e) { //if (frame == null) { frame = new JFrame("Desktop color"); colorChooser = new JColorChooser(); frame.add(colorChooser, BorderLayout.CENTER); ...
frame.dispose();
public void actionPerformed(ActionEvent event) { desktop.setBackground(colorChooser.getColor()); frame.setVisible(false); }
frame.dispose();
public void actionPerformed(ActionEvent event) { desktop.setBackground(oldColor); frame.setVisible(false); }
if (hostname == "")
if (hostname.equals(""))
protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } }
throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost());
{ InetAddress addr1 = getHostAddress(url1); InetAddress addr2 = getHostAddress(url2);
protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); }
String host1 = url1.getHost(); String host2 = url2.getHost(); if (host1 != null && host2 != null) return host1.equalsIgnoreCase(host2); return host1 == null && host2 == null;
protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); }