From: <kp...@us...> - 2007-09-23 17:12:27
|
Revision: 10727 http://jedit.svn.sourceforge.net/jedit/?rev=10727&view=rev Author: kpouer Date: 2007-09-23 10:12:23 -0700 (Sun, 23 Sep 2007) Log Message: ----------- if a buffer is temporary, we don't send messages on EditBus when saving it Modified Paths: -------------- jEdit/trunk/org/gjt/sp/jedit/Buffer.java Modified: jEdit/trunk/org/gjt/sp/jedit/Buffer.java =================================================================== --- jEdit/trunk/org/gjt/sp/jedit/Buffer.java 2007-09-23 11:38:29 UTC (rev 10726) +++ jEdit/trunk/org/gjt/sp/jedit/Buffer.java 2007-09-23 17:12:23 UTC (rev 10727) @@ -1985,7 +1985,8 @@ if(!getPath().equals(oldPath)) { - jEdit.updatePosition(oldSymlinkPath,this); + if (!isTemporary()) + jEdit.updatePosition(oldSymlinkPath,this); setMode(); } else @@ -2000,12 +2001,15 @@ propertiesChanged(); } - EditBus.send(new BufferUpdate(this, - view,BufferUpdate.DIRTY_CHANGED)); + if (!isTemporary()) + { + EditBus.send(new BufferUpdate(this, + view,BufferUpdate.DIRTY_CHANGED)); - // new message type introduced in 4.0pre4 - EditBus.send(new BufferUpdate(this, - view,BufferUpdate.SAVED)); + // new message type introduced in 4.0pre4 + EditBus.send(new BufferUpdate(this, + view,BufferUpdate.SAVED)); + } } } //}}} } //}}} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |