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

Java tutorial

Introduction

Here is the source code for org.eclipse.team.svn.ui.dialog.SetPropertyWithOverrideDialog.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:
 *    Sergiy Logvin - 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;

/**
 * Property ovewrite warning dialog
 *
 * @author Sergiy Logvin
 */
public class SetPropertyWithOverrideDialog extends MessageDialog {

    public SetPropertyWithOverrideDialog(Shell parentShell, String existingName) {
        super(parentShell, SVNUIMessages.SetPropertyWithOverrideDialog_Title, null,
                SVNUIMessages.format(SVNUIMessages.SetPropertyWithOverrideDialog_Message,
                        new String[] { existingName }),
                MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0);
    }

}