All this is configurable, I was only wondering why it was configurable
for copy, but not for move.

Oliver


On Tue, 19 Oct 2004 14:39:45 +0200, Thomas Draier
<[EMAIL PROTECTED]> wrote:
> i remember i had some problems with this : if somebody changes the
> display name, he does not understand why moving or renaming the file
> would reset the value he set. that would be nice to update it only if
> it has not been modified (i.e. if it was equals to the filename before
> the move operation). but in that case, i think it should be updated.
> thomas
> 
> Le 19 oct. 04, � 13:31, Oliver Zeigermann a �crit :
> 
> 
> 
> > Folks,
> >
> > I was wondering why the display name was not updated upon a move and
> > added this. If this breaks anything or is non sense I will undo it
> > ASAP.
> >
> > Oliver
> >
> >
> > On 19 Oct 2004 11:30:08 -0000, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> >> ozeigermann    2004/10/19 04:30:08
> >>
> >>   Modified:    src/share/org/apache/slide/macro
> >> MacroPropertyUpdater.java
> >>   Log:
> >>   Added update of display name to move as well
> >>
> >>   Revision  Changes    Path
> >>   1.7       +12 -3
> >> jakarta-slide/src/share/org/apache/slide/macro/
> >> MacroPropertyUpdater.java
> >>
> >>   Index: MacroPropertyUpdater.java
> >>   ===================================================================
> >>   RCS file:
> >> /home/cvs/jakarta-slide/src/share/org/apache/slide/macro/
> >> MacroPropertyUpdater.java,v
> >>   retrieving revision 1.6
> >>   retrieving revision 1.7
> >>   diff -u -r1.6 -r1.7
> >>   --- MacroPropertyUpdater.java 1 Sep 2004 10:28:53 -0000       1.6
> >>   +++ MacroPropertyUpdater.java 19 Oct 2004 11:30:08 -0000      1.7
> >>   @@ -149,6 +149,15 @@
> >>
> >>             boolean anyThingUpdated = false;
> >>
> >>   +         // update display name (if changed)
> >>   +         if (this.updateDisplayName) {
> >>   +            String displayName = getFilename(event.getTargetURI());
> >>   +            if (!displayName.equals(destNrd.getName())) {
> >>   +               destNrd.setName(displayName);
> >>   +               anyThingUpdated = true;
> >>   +            }
> >>   +         }
> >>   +
> >>             // update owner (if changed)
> >>             if (this.updateOwnerOnMove) {
> >>                String newOwner =
> >> event.getToken().getCredentialsToken().getPublicCredentials();
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to