Author: bobtarling Date: 2010-12-04 09:33:08-0800 New Revision: 18876 Modified: trunk/src/argouml-app/src/org/argouml/kernel/ProjectSettings.java
Log: Set project dirty rather than use deprecated method to manipulate save button when project settings change Modified: trunk/src/argouml-app/src/org/argouml/kernel/ProjectSettings.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/kernel/ProjectSettings.java?view=diff&pathrev=18876&r1=18875&r2=18876 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/kernel/ProjectSettings.java (original) +++ trunk/src/argouml-app/src/org/argouml/kernel/ProjectSettings.java 2010-12-04 09:33:08-0800 @@ -82,7 +82,21 @@ /* Generation preferences: */ private String headerComment = "Your copyright and other header comments"; + + private Project project; + /** + * Create a new set of project settings for the given project, + * based on the application defaults. <p> + * + * The constructor is not public, since this + * class is only created from the Project.. + * @param project the project owning these settings + */ + ProjectSettings(Project project) { + this(); + this.project = project; + } /** * Create a new set of project settings, @@ -230,7 +244,7 @@ UndoManager.getInstance().addMemento(memento); } memento.redo(); - ProjectManager.getManager().setSaveEnabled(true); + project.setDirty(true); } /** ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2687853 To unsubscribe from this discussion, e-mail: [[email protected]].
