001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (C) Alkacon Software (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.gwt.client.ui.restore;
029
030import org.opencms.gwt.client.Messages;
031
032/**
033 * Message accessor class for the 'Undo changes' dialog.<p>
034 */
035public final class CmsRestoreMessages {
036
037    /**
038     * Hide default constructor.<p>
039     */
040    private CmsRestoreMessages() {
041
042        // do nothing
043    }
044
045    /**
046     * Message accessor.<p>
047     *
048     * @return the message text
049     */
050    public static String messageConfirmRestore() {
051
052        return Messages.get().key(Messages.GUI_RESTORE_CONFIRM_MESSAGE_0);
053        //return "Do you really want to undo all changes that were not published?";
054    }
055
056    /**
057     * Message accessor.<p>
058     *
059     * @return the message text
060     */
061    public static String messageDateModified() {
062
063        return Messages.get().key(Messages.GUI_RESTORE_INFO_OFFLINE_DATE_0);
064    }
065
066    /**
067     * Message accessor.<p>
068     *
069     * @return the message text
070     */
071    public static String messageDateModifiedOnline() {
072
073        return Messages.get().key(Messages.GUI_RESTORE_INFO_ONLINE_DATE_0);
074    }
075
076    /**
077     * Message accessor.<p>
078     *
079     * @param onlinePath the path of the resource in the online project
080     * @param offlinePath the path of the resource in the offline path
081     *
082     * @return the message text
083     */
084    public static String messageMoved(String onlinePath, String offlinePath) {
085
086        return Messages.get().key(Messages.GUI_RESTORE_RESOURCE_MOVED_2, onlinePath, offlinePath);
087    }
088
089    /**
090     * Message accessor.<p>
091     *
092     * @return the message text
093     */
094    public static String messageRestoreCancel() {
095
096        return Messages.get().key(Messages.GUI_CANCEL_0);
097    }
098
099    /**
100     * Message accessor.<p>
101     *
102     * @return the message text
103     */
104    public static String messageRestoreDialogTitle() {
105
106        return Messages.get().key(Messages.GUI_RESTORE_DIALOG_TITLE_0);
107    }
108
109    /**
110     * Message accessor.<p>
111     *
112     * @return the message text
113     */
114    public static String messageRestoreOk() {
115
116        return Messages.get().key(Messages.GUI_OK_0);
117    }
118
119    /**
120     * Message accessor.<p>
121     *
122     * @return the message text
123     */
124    public static String messageUndoMove() {
125
126        return Messages.get().key(Messages.GUI_RESTORE_CHECKBOX_UNDO_MOVE_0);
127    }
128}