public boolean setDrawOffset(Point drawOffset) { if (drawOffset.equals(this.drawOffset)) { return false; } this.drawOffset = drawOffset; return true; }
public boolean equals(Object object) { if (object == null || !CallHierarchyImageDescriptor.class.equals(object.getClass())) return false; CallHierarchyImageDescriptor other= (CallHierarchyImageDescriptor)object; return (fBaseImage.equals(other.fBaseImage) && fFlags == other.fFlags && fSize.equals(other.fSize)); }
@Override public boolean equals(Object object) { if (object == null || !CallHierarchyImageDescriptor.class.equals(object.getClass())) return false; CallHierarchyImageDescriptor other= (CallHierarchyImageDescriptor)object; return (fBaseImage.equals(other.fBaseImage) && fFlags == other.fFlags && fSize.equals(other.fSize)); }
@Override public boolean equals(Object object) { if (object == null || !JavaElementImageDescriptor.class.equals(object.getClass())) return false; JavaElementImageDescriptor other= (JavaElementImageDescriptor)object; return (fBaseImage.equals(other.fBaseImage) && fFlags == other.fFlags && fSize.equals(other.fSize)); }
public boolean equals(Object object) { if (object == null || !JavaElementImageDescriptor.class.equals(object.getClass())) return false; JavaElementImageDescriptor other= (JavaElementImageDescriptor)object; return (fBaseImage.equals(other.fBaseImage) && fFlags == other.fFlags && fSize.equals(other.fSize)); }
public boolean equals(Object object) { if (object == null || !SQLImageDescriptor.class.equals(object.getClass())) { return false; } SQLImageDescriptor other = (SQLImageDescriptor) object; return (_fBaseImage.equals(other._fBaseImage) && _fFlags == other._fFlags && _fSize.equals(other._fSize)); }
@Override public boolean equals(Object object) { if (object == null || !CallHierarchyImageDescriptor.class.equals(object.getClass())) return false; CallHierarchyImageDescriptor other= (CallHierarchyImageDescriptor)object; return (fBaseImage.equals(other.fBaseImage) && fFlags == other.fFlags && fSize.equals(other.fSize)); }
private void clearPacked( Point oldSize ) { if( !oldSize.equals( getSize() ) ) { packed = false; } }
public void layoutIfNecessary() { if (dirtySize != null && control != null && control instanceof Composite) { if (control.getSize().equals(dirtySize)) { ((Composite)control).layout(flushChildren); flushChildren = false; } } dirtySize = null; } }
/** * Fires a selection event to all selection listener of the action's * text widget if the current selection differs from the given selection. * * @param oldSelection the old selection * @since 3.0 */ protected void fireSelectionChanged(Point oldSelection) { Point selection= fTextWidget.getSelection(); if (oldSelection == null || !selection.equals(oldSelection)) doFireSelectionChanged(selection); }
public void layoutIfNecessary() { if (dirtySize != null && control instanceof Composite) { if (control.getSize().equals(dirtySize)) { ((Composite) control).layout(flushChildren); flushChildren = false; } } dirtySize = null; } }
protected void checkChangedHorizontalAndTopPixel() { Point newHorizontalAndTopPixel = computeHorizontalAndTopPixel(); if (!newHorizontalAndTopPixel.equals(fLastHorizontalAndTopPixel)) { fLastHorizontalAndTopPixel = newHorizontalAndTopPixel; fPainter.redrawScrollBars(); } }
void notifyResize( Point oldSize ) { if( !oldSize.equals( getSize() ) ) { notifyListeners( SWT.Resize, new Event() ); } }
void notifyMove( Point oldLocation ) { if( !oldLocation.equals( getLocation() ) ) { notifyListeners( SWT.Move, new Event() ); } }
private void updatePopupLocation(boolean force) { if (! force && fSnapPosition == SNAP_POSITION_LOWER_RIGHT) return; packPopup(); Point loc= computePopupLocation(fSnapPosition); if (loc != null && ! loc.equals(fPopup.getLocation())) { fPopup.setLocation(loc); // XXX workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=170774 // fPopup.moveBelow(fEditor.getSite().getShell().getShells()[0]); } }
@Override void notifyResize( Point oldSize ) { super.notifyResize( oldSize ); if( !oldSize.equals( getSize() ) ) { repaint( getClientArea() ); } }
protected void updatePopupLocation() { packPopup(); Point loc = computePopupLocation(); if (loc != null && !loc.equals(popup.getLocation())) { popup.setLocation(loc); } }
@Override public void setBounds( Rectangle bounds ) { Point oldSize = getSize(); super.setBounds( bounds ); if( !oldSize.equals( getSize() ) ) { layoutItems(); } }
private static void renderSelection( Text text ) { Point newValue = text.getSelection(); boolean changed = hasChanged( text, PROP_SELECTION, newValue, ZERO_SELECTION ); if( !changed ) { changed = hasChanged( text, PROP_TEXT, text.getText() ) && !newValue.equals( ZERO_SELECTION ); } if( changed ) { RemoteObject remoteObject = getRemoteObject( text ); remoteObject.set( PROP_SELECTION, new JsonArray().add( newValue.x ).add( newValue.y ) ); } }
@Override void notifyResize( Point oldSize ) { if( !oldSize.equals( getSize() ) && !TextSizeUtil.isTemporaryResize() ) { clearCachedHeights(); updateAllItems(); updateScrollBars(); adjustTopItemIndex(); } super.notifyResize( oldSize ); }