@Test public void testSetLastModified() { final Date date = new Date(); this.project.setLastModified( date ); assertEquals( date, this.project.getLastModified() ); assertTrue( this.project.isChanged() ); }
@Override public void setLastModified( final Date aLastModified ) { final Date old = this.lastModified; this.lastModified = aLastModified; this.propertyChangeSupport.firePropertyChange( PROPERTY_LAST_MODIFIED, old, aLastModified ); setChanged( true ); }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public void setLastModified( final Date aLastModified ) { final Date old = this.lastModified; this.lastModified = aLastModified; this.propertyChangeSupport.firePropertyChange( PROPERTY_LAST_MODIFIED, old, aLastModified ); setChanged( true ); } }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public void setLastModified( final Date aLastModified ) { final Date old = this.lastModified; this.lastModified = aLastModified; this.propertyChangeSupport.firePropertyChange( PROPERTY_LAST_MODIFIED, old, aLastModified ); setChanged( true ); } ProjectImpl(); }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public void setLastModified( final Date aLastModified ) { final Date old = this.lastModified; this.lastModified = aLastModified; this.propertyChangeSupport.firePropertyChange( PROPERTY_LAST_MODIFIED, old, aLastModified ); setChanged( true ); } ProjectImpl(); void addPropertyChangeListener( final PropertyChangeListener aListener ); @Override DataSetImpl getDataSet(); @Override File getFilename(); @Override Date getLastModified(); @Override String getName(); @Override UserSettings getSettings( final String aName ); @Override String getSourceVersion(); @Override boolean isChanged(); @Override void propertyChange( final PropertyChangeEvent aEvent ); @Override final void readData( final Reader aReader ); void removePropertyChangeListener( final PropertyChangeListener aListener ); @Override void setCapturedData( final AcquisitionResult aCapturedData ); @Override void setChanged( final boolean aChanged ); @Override void setFilename( final File aFilename ); @Override void setLastModified( final Date aLastModified ); @Override void setName( final String aName ); @Override void setSettings( final UserSettings aSettings ); @Override void setSourceVersion( final String aSourceVersion ); @Override void visit( final ProjectVisitor aVisitor ); @Override void writeData( final Writer aWriter ); }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public void setLastModified( final Date aLastModified ) { final Date old = this.lastModified; this.lastModified = aLastModified; this.propertyChangeSupport.firePropertyChange( PROPERTY_LAST_MODIFIED, old, aLastModified ); setChanged( true ); } ProjectImpl(); void addPropertyChangeListener( final PropertyChangeListener aListener ); @Override DataSetImpl getDataSet(); @Override File getFilename(); @Override Date getLastModified(); @Override String getName(); @Override UserSettings getSettings( final String aName ); @Override String getSourceVersion(); @Override boolean isChanged(); @Override void propertyChange( final PropertyChangeEvent aEvent ); @Override final void readData( final Reader aReader ); void removePropertyChangeListener( final PropertyChangeListener aListener ); @Override void setCapturedData( final AcquisitionResult aCapturedData ); @Override void setChanged( final boolean aChanged ); @Override void setFilename( final File aFilename ); @Override void setLastModified( final Date aLastModified ); @Override void setName( final String aName ); @Override void setSettings( final UserSettings aSettings ); @Override void setSourceVersion( final String aSourceVersion ); @Override void visit( final ProjectVisitor aVisitor ); @Override void writeData( final Writer aWriter );  }