rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); | private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //data is a (simple) indirect block Ext2Utils.set32(data, (int)offset*4, va... | |
log.info("reserved triple indirect block: "+tripleIndirectBlockNr); | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | |
public abstract boolean addPermission(Permission permission); | boolean addPermission(Permission permission); | public abstract boolean addPermission(Permission permission); |
public abstract boolean checkPermission(Permission permission); | boolean checkPermission(Permission permission); | public abstract boolean checkPermission(Permission permission); |
public abstract Principal getPrincipal(); | Principal getPrincipal(); | public abstract Principal getPrincipal(); |
public abstract boolean isNegative(); | boolean isNegative(); | public abstract boolean isNegative(); |
public abstract Enumeration permissions(); | Enumeration permissions(); | public abstract Enumeration permissions(); |
public abstract boolean removePermission(Permission perm); | boolean removePermission(Permission perm); | public abstract boolean removePermission(Permission perm); |
public abstract void setNegativePermissions(); | void setNegativePermissions(); | public abstract void setNegativePermissions(); |
public abstract boolean setPrincipal(Principal user); | boolean setPrincipal(Principal user); | public abstract boolean setPrincipal(Principal user); |
int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); p--; | int p = Expr.intValue(val2) - 1; | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... |
{ | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | |
} | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... | |
int v3 = (val3 instanceof Double) ? ((Double) val3).intValue() : (int) Math.round(_number(context, val3)); | int v3 = Expr.intValue(val3); | public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));... |
throws NotImplementedException | public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | if (imageCapabilities == null) getImageCapabilities(); if (bufferCapabilities == null) bufferCapabilities = new BufferCapabilities(imageCapabilities, imageCapabilities, null); return bufferCapabilities; | public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); } |
throws NotImplementedException | public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | if (imageCapabilities == null) imageCapabilities = new ImageCapabilities(false); return imageCapabilities; | public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); } |
if (global) { Map ctx1 = (Map) variables.getLast(); Map ctx2 = (Map) parameters.getLast(); return (ctx1.containsKey(name) || ctx2.containsKey(name)); } | public boolean containsKey(QName name, int type) { Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ct... | |
if (global) { Map ctx = (Map) variables.getLast(); Object ret = ctx.get(name); if (ret == null) { ctx = (Map) parameters.getLast(); ret = ctx.get(name); } return ret; } | public Object get(QName name, Node context, int pos, int len) { //System.err.println("bindings.get: "+name); //System.err.println("\t"+toString()); Object ret = null; //if (parameters.size() > 1 && containsKey(name, PARAM)) // check that template defines parameter { Map cwp = (Map) withP... | |
if (next instanceof RETokenChar) { | if (next instanceof RETokenChar && ((RETokenChar)next).insens == insens) { | boolean chain(REToken next) { if (next instanceof RETokenChar) { RETokenChar cnext = (RETokenChar) next; // assume for now that next can only be one character int newsize = ch.length + cnext.ch.length; char[] chTemp = new char [newsize]; System.arraycopy(ch,0,chTemp,0,ch.length... |
&& e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) | && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST) { AdjustmentEvent ae = (AdjustmentEvent) e; boolean adjusting = ae.getValueIsAdjusting(); if (adjusting) setValueIsAdjusting(true); try { setValue(((AdjustmentEvent) e).getValue()); if (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0) | void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } |
} finally { if (adjusting) setValueIsAdjusting(false); } } | void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | |
if (!parentFile.exists()) { | if (parentFile!=null && !parentFile.exists()) { | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (!parentFile.exists()) { if (!pa... |
new Thread(new CommandShell((TextConsole) cm.createConsole(null, | new Thread(new CommandShell((TextConsole) cm.createConsole("Console 1", | public static void main(String[] argv) throws Exception { initEnv(); SwingTextScreenConsoleManager cm = new SwingTextScreenConsoleManager(); new Thread(new CommandShell((TextConsole) cm.createConsole(null, ConsoleManager.CreateOptions.TEXT | ConsoleManager.CreateOptions.SCROLLABL... |
public SampleModel getSampleModel() | public SampleModel getSampleModel (int width, int height) | public SampleModel getSampleModel() { return sampleModel; } |
return sampleModel; | if (width <= 0 || height <= 0) throw new IllegalArgumentException ("invalid dimension"); if (width * height < Math.min (width, height)) throw new IllegalArgumentException ("width * height > Integer.MAX_VALUE"); return sampleModel.createCompatibleSampleModel (width, height); | public SampleModel getSampleModel() { return sampleModel; } |
public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ | private byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ | public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ if(blockNo < blockCount) return fs.getBlock(firstBlock+blockNo); else throw new FileSystemException("Trying to get block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"); } |
public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { | private void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { | public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { if(blockNo < blockCount) fs.writeBlock(firstBlock+blockNo, data, false); else throw new FileSystemException("Trying to write block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"... |
return new UnixFileSystemView(); | defaultFileSystemView = new UnixFileSystemView(); | public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; } |
return null; | } return defaultFileSystemView; | public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; } |
public void addSelectionPath(TreePath value0) | public void addSelectionPath(TreePath path) | public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n... |
if (!isPathSelected(value0)) | if (!isPathSelected(path)) | public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n... |
setSelectionPath(value0); | setSelectionPath(path); | public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n... |
temp[temp.length - 1] = value0; | temp[temp.length - 1] = path; | public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n... |
leadPath = value0; fireValueChanged(new TreeSelectionEvent(this, value0, true, leadPath, value0)); | leadPath = path; fireValueChanged(new TreeSelectionEvent(this, path, true, leadPath, path)); | public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n... |
public void addSelectionPaths(TreePath[] value0) | public void addSelectionPaths(TreePath[] paths) | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
if (value0 != null) | if (paths != null) | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
for (int i = 0; i < value0.length; i++) | for (int i = 0; i < paths.length; i++) | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
v0 = value0[i]; | v0 = paths[i]; | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
leadPath = value0[value0.length - 1]; | leadPath = paths[paths.length - 1]; | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
leadPath, value0[0])); | leadPath, paths[0])); | public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length... |
protected boolean arePathsContiguous(TreePath[] value0) | protected boolean arePathsContiguous(TreePath[] paths) | protected boolean arePathsContiguous(TreePath[] value0) { return false; // TODO } |
protected boolean canPathsBeAdded(TreePath[] value0) | protected boolean canPathsBeAdded(TreePath[] paths) | protected boolean canPathsBeAdded(TreePath[] value0) { return false; // TODO } |
protected boolean canPathsBeRemoved(TreePath[] value0) | protected boolean canPathsBeRemoved(TreePath[] paths) | protected boolean canPathsBeRemoved(TreePath[] value0) { return false; // TODO } |
public boolean isPathSelected(TreePath value0) | public boolean isPathSelected(TreePath path) | public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; } |
if (selection[i].equals(value0)) | if (selection[i].equals(path)) | public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; } |
public boolean isRowSelected(int value0) | public boolean isRowSelected(int row) | public boolean isRowSelected(int value0) { return false; // TODO } |
public void removeSelectionPath(TreePath value0) | public void removeSelectionPath(TreePath path) | public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem... |
if (isPathSelected(value0)) | if (isPathSelected(path)) | public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem... |
if (selection[i].equals(value0)) | if (selection[i].equals(path)) | public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem... |
fireValueChanged(new TreeSelectionEvent(this, value0, false, leadPath, value0)); | fireValueChanged(new TreeSelectionEvent(this, path, false, leadPath, path)); | public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem... |
public void removeSelectionPaths(TreePath[] value0) | public void removeSelectionPaths(TreePath[] paths) | public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in... |
if (value0 != null) | if (paths != null) | public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in... |
for (int i = 0; i < value0.length; i++) | for (int i = 0; i < paths.length; i++) | public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in... |
v0 = value0[i]; | v0 = paths[i]; | public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in... |
leadPath, value0[0])); | leadPath, paths[0])); | public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in... |
public void setRowMapper(RowMapper value0) | public void setRowMapper(RowMapper rowMapper) | public void setRowMapper(RowMapper value0) { // TODO } |
public void setSelectionPaths(TreePath[] value0) | public void setSelectionPaths(TreePath[] paths) | public void setSelectionPaths(TreePath[] value0) { // TODO } |
entryBytes = readManifestEntry(super.getEntry(entry)); | ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no entry '" + entry + "'"); return false; } entryBytes = readManifestEntry(e); | private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { entryBytes = readManifestEntry(super.getEntry(entry)); } catch (IOException ioe) ... |
IIOAttr attr = (IIOAttr)it.next(); | IIOMetadataNodeAttr attr = (IIOMetadataNodeAttr)it.next(); | public Node cloneNode(boolean deep) { IIOMetadataNode newnode = new IIOMetadataNode(name); newnode.parent = null; newnode.obj = obj; if (deep) { for (int i=0; i < children.size(); i++) newnode.children.add(((Node)children.get(i)).cloneNode(deep)); } // clone attrs for (Iterato... |
throw new Error("not implemented"); | return Element.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC; | public short compareDocumentPosition(Node other) throws DOMException { throw new Error("not implemented"); } |
return new IIOAttr(name, val, this); | return new IIOMetadataNodeAttr(this, name, val); | public Attr getAttributeNode(String name) { String val = getAttribute(name); if (val != null) return new IIOAttr(name, val, this); return null; } |
throw new Error("not implemented"); | return null; | public String getBaseURI() { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public Object getFeature(String feature, String version) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public TypeInfo getSchemaTypeInfo() { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public String getTextContent() throws DOMException { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public Object getUserData(String key) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return true; | public boolean isDefaultNamespace(String namespaceURI) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return true; | public boolean isEqualNode(Node arg) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public String lookupNamespaceURI(String prefix) { throw new Error("not implemented"); } |
throw new Error("not implemented"); | return null; | public String lookupPrefix(String namespaceURI) { throw new Error("not implemented"); } |
attrs.put(name, new IIOAttr(name, value, this)); | attrs.put(name, new IIOMetadataNodeAttr(this, name, value)); | public void setAttribute(String name, String value) { Attr attr = (Attr) getAttributeNode(name); if (attr != null) attr.setValue(value); else attrs.put(name, new IIOAttr(name, value, this)); } |
throw new Error("not implemented"); | public void setIdAttribute(String name, boolean isId) throws DOMException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | public void setTextContent(String textContent) throws DOMException { throw new Error("not implemented"); } | |
throw new Error("not implemented"); | return null; | public Object setUserData(String key, Object data, UserDataHandler handler) { throw new Error("not implemented"); } |
AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox(); | AccessibleAWTCheckbox ac = new AccessibleAWTCheckbox(); | public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox(); accessibleContext = ac; addItemListener(ac); } return accessibleContext;} |
public Component getComponent() | public final Component getComponent() | public Component getComponent() { return null; } |
throws NotImplementedException | public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. } | |
if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { if (timer != null) timer.stop(); updateSize(); timer = null; scrollBar = null; } | public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. } | |
throws NotImplementedException | public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | |
if (timer == null) { JScrollPane scrollPane = getScrollPane(); if (scrollPane == null) updateSize(); else { scrollBar = scrollPane.getVerticalScrollBar(); if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { scrollBar = scrollPane.getHorizontalScrollBar(); if (scrollBar != null && scrollBar.getValueIsAdjust... | public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | |
throws NotImplementedException | protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; } | |
return null; | JScrollPane found = null; Component p = tree.getParent(); while (p != null && !(p instanceof JScrollPane)) p = p.getParent(); if (p instanceof JScrollPane) found = (JScrollPane) p; return found; | protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; } |
throws NotImplementedException | protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. } | |
if (timer == null) { timer = new Timer(200, this); timer.setRepeats(true); } timer.start(); | protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. } | |
if (startEditTimer != null) | if (tree != null && tree.isEnabled()) | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
startEditTimer.stop(); startEditTimer = null; } | if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); | int x = e.getX(); int y = e.getY(); TreePath path = getClosestPathForLocation(tree, x, y); | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
int row = getRowForPath(tree, path); | if (SwingUtilities.isLeftMouseButton(e)) checkForClickInExpandControl(path, x, y); | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
if (tree.isEditing() && row != editingRow) cancelEditing(tree); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); TreeCellRenderer tcr = getCellRenderer(); Icon icon; if (isLeaf) icon = UIManager.getIcon("Tree.leafIcon"); else if (tree.isExpanded(path)) icon = UIMan... | if (x > bounds.x && x <= (bounds.x + bounds.width)) | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
final TreePath editPath = path; if (startEditTimer != null) startEditTimer.stop(); startEditTimer = new Timer(WAIT_TILL_EDITING, new ActionListener() { public void actionPerformed(ActionEvent e) { startEditing(editPath, EDIT); } }); startEditTimer.setRepeats(false); startEditTimer.start(); } else { if (e.getClickCoun... | if (! startEditing(path, e)) | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... |
if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); tree.scrollPathToVisible(path); } else if (tree.isEditable()) startEditing(path, e); } | public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP... | |
treeModel = tree.getModel(); treeModel.addTreeModelListener(treeModelListener); | setModel(tree.getModel()); } else if (property.equals(JTree.CELL_RENDERER_PROPERTY)) { setCellRenderer(tree.getCellRenderer()); if (treeState != null) treeState.invalidateSizes(); | public void propertyChange(PropertyChangeEvent event) { String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } else i... |
public TreeHomeAction(int direction, String name) throws NotImplementedException | public TreeHomeAction(int dir, String name) | public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly } |
direction = dir; putValue(Action.NAME, name); | public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly } | |
throws NotImplementedException | public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly } | |
if (tree != null) { String command = (String) getValue(Action.NAME); if (command.equals("selectFirst")) { ensureRowsAreVisible(0, 0); tree.setSelectionInterval(0, 0); } if (command.equals("selectFirstChangeLead")) { ensureRowsAreVisible(0, 0); tree.setLeadSelectionPath(getPathForRow(tree, 0)); } if (command.equals("sel... | public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.