+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.argeo.jcr.ui.explorer.editors;
import java.text.DateFormat;
import javax.jcr.version.VersionIterator;
import javax.jcr.version.VersionManager;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.argeo.ArgeoException;
import org.argeo.jcr.JcrUtils;
import org.argeo.jcr.PropertyDiff;
* */
public class NodeVersionHistoryPage extends FormPage implements
JcrExplorerConstants {
- private final static Log log = LogFactory
- .getLog(NodeVersionHistoryPage.class);
+ // private final static Log log = LogFactory
+ // .getLog(NodeVersionHistoryPage.class);
// Utils
protected DateFormat timeFormatter = new SimpleDateFormat(DATE_TIME_FORMAT);
protected void createFormContent(IManagedForm managedForm) {
ScrolledForm form = managedForm.getForm();
+ form.setText(JcrExplorerPlugin
+ .getMessage("nodeVersionHistoryPageTitle"));
tk = managedForm.getToolkit();
GridLayout twt = new GridLayout(1, false);
twt.marginWidth = twt.marginHeight = 5;
StringBuffer buf = new StringBuffer("");
Map<String, PropertyDiff> diffs = lst.get(i).getDiffs();
- props: for (String prop : diffs.keySet()) {
+ for (String prop : diffs.keySet()) {
PropertyDiff pd = diffs.get(prop);
- String propName = pd.getRelPath();
+ // String propName = pd.getRelPath();
Value refValue = pd.getReferenceValue();
Value newValue = pd.getNewValue();
String refValueStr = "";
Property.JCR_CREATED).getDate();
} catch (Exception e) {
- // Silent that info is optionnal
+ // Silent that info is optional
}
VersionDiff vd = new VersionDiff(lastUserName,
lastUpdate, diffs);