@Test public void testClearOriginalValue() { Object originalValue = new Object(); property.setOriginalValue(originalValue, true); assertEquals(originalValue, property.getOriginalValue()); assertTrue(property.isOverridden()); property.clearOriginalValue(null); assertNull(property.getOriginalValue()); assertFalse(property.isOverridden()); }
protected void clearOriginalValue(T originalValue) { resetValue(); }
BaseProjectProperty implements IProjectProperty<T> { protected void clearOriginalValue(T originalValue) { resetValue(); } }
BaseProjectProperty implements IProjectProperty<T> { protected void clearOriginalValue(T originalValue) { resetValue(); } BaseProjectProperty(ICascadingJob job); }
BaseProjectProperty implements IProjectProperty<T> { protected void clearOriginalValue(T originalValue) { resetValue(); } BaseProjectProperty(ICascadingJob job); void setKey(String propertyKey); String getKey(); void setJob(ICascadingJob job); void setOverridden(boolean overridden); @SuppressWarnings("unchecked") T getCascadingValue(); boolean isOverridden(); T getDefaultValue(); T getValue(); @SuppressWarnings("unchecked") void setValue(T value); void resetValue(); boolean allowOverrideValue(T cascadingValue, T candidateValue); T getOriginalValue(); final void onCascadingProjectChanged(); }
BaseProjectProperty implements IProjectProperty<T> { protected void clearOriginalValue(T originalValue) { resetValue(); } BaseProjectProperty(ICascadingJob job); void setKey(String propertyKey); String getKey(); void setJob(ICascadingJob job); void setOverridden(boolean overridden); @SuppressWarnings("unchecked") T getCascadingValue(); boolean isOverridden(); T getDefaultValue(); T getValue(); @SuppressWarnings("unchecked") void setValue(T value); void resetValue(); boolean allowOverrideValue(T cascadingValue, T candidateValue); T getOriginalValue(); final void onCascadingProjectChanged();  }