/** * Fires the given property change event to all listeners * registered with this compare editor input. * @param event the property change event * @since 3.3 */ protected void firePropertyChange(PropertyChangeEvent event) { Utilities.firePropertyChange(fListenerList, event); }
/** * Sets the title which will be used when presenting the compare result. * This method must be called before the editor is opened. * * @param title the title to use for the CompareEditor */ public void setTitle(String title) { String oldTitle = fTitle; fTitle= title; Utilities.firePropertyChange(fListenerList, this, PROP_TITLE, oldTitle, title); }
/** * Sets the title which will be used when presenting the compare result. * This method must be called before the editor is opened. * * @param title the title to use for the CompareEditor */ public void setTitle(String title) { String oldTitle = fTitle; fTitle= title; Utilities.firePropertyChange(fListenerList, this, PROP_TITLE, oldTitle, title); }
/** * Fire the given property change event to all listeners * registered with this compare editor input. * @param event the property change event * @since 3.3 */ protected void firePropertyChange(PropertyChangeEvent event) { Utilities.firePropertyChange(fListenerList, event); }
private void fireDirtyState(boolean state) { Utilities.firePropertyChange(fListenerList, this, CompareEditorInput.DIRTY_STATE, null, Boolean.valueOf(state)); }
private void fireDirtyState(boolean state) { Utilities.firePropertyChange(fListenerList, this, CompareEditorInput.DIRTY_STATE, null, new Boolean(state)); }
private void setDirty(Object source, boolean dirty) { Assert.isNotNull(source); boolean oldDirty= fDirty || fDirtyViewers.size() > 0; if (dirty) fDirtyViewers.add(source); else fDirtyViewers.remove(source); boolean newDirty= fDirty || fDirtyViewers.size() > 0; if (DEBUG) System.out.println("setDirty("+source+", "+dirty+"): " + newDirty); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if (oldDirty != newDirty) Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, new Boolean(oldDirty), new Boolean(newDirty)); }
/** * Sets the dirty state of this input to the given * value and sends out a <code>PropertyChangeEvent</code> if the new value differs from the old value. * * @param dirty the dirty state for this compare input */ public void setDirty(boolean dirty) { boolean oldDirty = fDirty || fDirtyViewers.size() > 0; fDirty= dirty; if (!fDirty) fDirtyViewers.clear(); if (oldDirty != dirty) Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, new Boolean(oldDirty), new Boolean(dirty)); }
public static void firePropertyChange(ListenerList<IPropertyChangeListener> listenerList, Object source, String property, Object old, Object newValue) { PropertyChangeEvent event= new PropertyChangeEvent(source, property, old, newValue); firePropertyChange(listenerList, event); }
public static void firePropertyChange(ListenerList listenerList, Object source, String property, Object old, Object newValue) { PropertyChangeEvent event= new PropertyChangeEvent(source, property, old, newValue); firePropertyChange(listenerList, event); }
/** * Sets the dirty state of this input to the given value and sends out a * <code>PropertyChangeEvent</code> if the new value differs from the old * value. Direct calling this method with parameter dirty equal to * <code>false</code> when there are unsaved changes in viewers, results in * inconsistent state. The dirty state of compare input should be based only * on the information if there are changes in viewers for left or right * side. * * @param dirty * the dirty state for this compare input */ public void setDirty(boolean dirty) { boolean oldDirty = isSaveNeeded(); fLeftDirty = dirty; fRightDirty = dirty; if (oldDirty != isSaveNeeded()) { Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, Boolean.valueOf(oldDirty), Boolean.valueOf(isSaveNeeded())); } }
/** * Sets the dirty state of right site of this input to the given value and * sends out a <code>PropertyChangeEvent</code> if the new value for whole * input differs from the old value. Direct calling this method with * parameter dirty equal to <code>false</code> when there are unsaved * changes in right viewer, results in inconsistent state. The dirty state * of compare input should be based only on the information if there are * changes in viewers for right side. * * @param dirty * the dirty state for this compare input * @since 3.7 * @noreference This method is not intended to be referenced by clients. * @nooverride This method is not intended to be re-implemented or extended * by clients. */ protected void setRightDirty(boolean dirty) { boolean oldDirty = isSaveNeeded(); fRightDirty = dirty; if (oldDirty != isSaveNeeded()) { Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, Boolean.valueOf(oldDirty), Boolean.valueOf(isSaveNeeded())); } }
/** * Sets the dirty state of left site of this input to the given value and * sends out a <code>PropertyChangeEvent</code> if the new value for whole * input differs from the old value. Direct calling this method with * parameter dirty equal to <code>false</code> when there are unsaved * changes in left viewer, results in inconsistent state. The dirty state of * compare input should be based only on the information if there are * changes in viewers for left side. * * @param dirty * the dirty state for this compare input * @since 3.7 * @noreference This method is not intended to be referenced by clients. * @nooverride This method is not intended to be re-implemented or extended * by clients. */ protected void setLeftDirty(boolean dirty) { boolean oldDirty = isSaveNeeded(); fLeftDirty = dirty; if (oldDirty != isSaveNeeded()) { Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, Boolean.valueOf(oldDirty), Boolean.valueOf(isSaveNeeded())); } }
Utilities.firePropertyChange(fListenerList, this, DIRTY_STATE, Boolean.valueOf(oldDirty), Boolean.valueOf(newDirty));