@Test public void testGetExistingSettingsYieldsSameInstance() { final ProjectImpl projectImpl = this.project; final UserSettings settings = projectImpl.getSettings( "test" ); assertSame( settings, projectImpl.getSettings( "test" ) ); }
@Override public UserSettings getSettings( final String aName ) { UserSettings result = this.settings.get( aName ); if ( result == null ) { result = new UserSettingsImpl( aName ); this.settings.put( aName, result ); } return result; }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public UserSettings getSettings( final String aName ) { UserSettings result = this.settings.get( aName ); if ( result == null ) { result = new UserSettingsImpl( aName ); this.settings.put( aName, result ); } return result; } }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public UserSettings getSettings( final String aName ) { UserSettings result = this.settings.get( aName ); if ( result == null ) { result = new UserSettingsImpl( aName ); this.settings.put( aName, result ); } return result; } ProjectImpl(); }
ProjectImpl implements Project, ProjectProperties, PropertyChangeListener { @Override public UserSettings getSettings( final String aName ) { UserSettings result = this.settings.get( aName ); if ( result == null ) { result = new UserSettingsImpl( aName ); this.settings.put( aName, result ); } return result; } 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 UserSettings getSettings( final String aName ) { UserSettings result = this.settings.get( aName ); if ( result == null ) { result = new UserSettingsImpl( aName ); this.settings.put( aName, result ); } return result; } 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 );  }