org.eclipse.team.svn.ui.dialog.ReplaceWarningDialog.java Source code

Java tutorial

Introduction

Here is the source code for org.eclipse.team.svn.ui.dialog.ReplaceWarningDialog.java

Source

/*******************************************************************************
 * Copyright (c) 2005-2008 Polarion Software.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Alexander Gurov - Initial API and implementation
 *******************************************************************************/

package org.eclipse.team.svn.ui.dialog;

import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.team.svn.ui.SVNUIMessages;

/**
 * "Replace with..." warning dialog
 * 
 * @author Alexander Gurov
 */
public class ReplaceWarningDialog extends MessageDialog {

    public ReplaceWarningDialog(Shell parentShell) {
        super(parentShell, SVNUIMessages.ReplaceWarningDialog_Title, null,
                SVNUIMessages.ReplaceWarningDialog_Message, MessageDialog.QUESTION,
                new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0);
    }

}