Mailing List svn-list@magnolia.info Message #6964
From: svn@magnolia.info
Subject: [16861] formatting only, no changes
Date: Thu, 17 Jul 2008 13:18:55 +0200 (CEST)
To: svn-list@magnolia.info

[16861] formatting only, no changes ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; } #logmsg pre { background: #eee; padding: 1em; } #logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;} #logmsg dl { margin: 0; } #logmsg dt { font-weight: bold; } #logmsg dd { margin: 0; padding: 0 0 0.5em 0; } #logmsg dd:before { content:'\00bb';} #logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; } #logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; } #logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; } #logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; } #logmsg table th.Corner { text-align: left; } #logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; } #header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} -->
Revision
16861
Author
fgiust
Date
2008-07-17 13:18:54 +0200 (Thu, 17 Jul 2008)

Log Message

formatting only, no changes

Modified Paths

Diff

Modified: magnolia/trunk/magnolia-module-admininterface/src/main/java/info/magnolia/module/admininterface/SaveHandlerImpl.java (16860 => 16861)


--- magnolia/trunk/magnolia-module-admininterface/src/main/java/info/magnolia/module/admininterface/SaveHandlerImpl.java	2008-07-16 19:40:31 UTC (rev 16860)
+++ magnolia/trunk/magnolia-module-admininterface/src/main/java/info/magnolia/module/admininterface/SaveHandlerImpl.java	2008-07-17 11:18:54 UTC (rev 16861)
@@ -86,7 +86,8 @@
 /**
  * This class handels the saving in the dialogs. It uses the mgnlSaveInfo parameters sendend from the browser to store
  * the data in the node.The structure of the parameter is the following: <br>
- * <code>name, type, valueType, isRichEditValue, encoding</code> <p/> To find the consts see ControlImpl <table>
+ * <code>name, type, valueType, isRichEditValue, encoding</code> <p/> To find the consts see ControlImpl
+ * <table>
  * <tr>
  * <td>name</td>
  * <td>the name of the field</td>
@@ -231,8 +232,8 @@
 
                 // FIX for MAGNOLIA-1814
                 // mark page as changed also for nested paragraph changes
-                if(this.getRepository().equals(ContentRepository.WEBSITE)){
-                    while(node.getItemType().equals(ItemType.CONTENTNODE)){
+                if (this.getRepository().equals(ContentRepository.WEBSITE)) {
+                    while (node.getItemType().equals(ItemType.CONTENTNODE)) {
                         node = node.getParent();
                         node.updateMetaData();
                     }
@@ -311,7 +312,7 @@
                 if (log.isDebugEnabled()) {
                     log.debug("Date has no value. Deleting node data" + name);
                 }
-                if(node.hasNodeData(name)){
+                if (node.hasNodeData(name)) {
                     node.deleteNodeData(name);
                 }
             }
@@ -355,7 +356,8 @@
 
     /**
      * Clean up the linebreaks and
-     * <p>, <br>
+     * <p>
+     * , <br>
      * tags returned by the rich text editors
      * @param valueStr
      * @return the cleaned string
@@ -434,7 +436,7 @@
             link = StringUtils.replace(link, "$", "\\$");
 
             imageOrDowloadMatcher.appendReplacement(res, "$1" + link + "$5"); //$NON-NLS-1$
-            if(link.startsWith(filesNode.getHandle())){
+            if (link.startsWith(filesNode.getHandle())) {
                 String fileNodeName = StringUtils.removeStart(link, filesNode.getHandle() + "/");
                 fileNodeName = StringUtils.substringBefore(fileNodeName, "/");
                 usedFiles.add(fileNodeName);
@@ -444,7 +446,7 @@
         // delete not used files
         for (Iterator iter = filesNode.getNodeDataCollection().iterator(); iter.hasNext();) {
             NodeData fileNodeData = (NodeData) iter.next();
-            if(!usedFiles.contains(fileNodeData.getName())){
+            if (!usedFiles.contains(fileNodeData.getName())) {
                 fileNodeData.delete();
             }
         }
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster