blob: e5f68724277dc02c219fac094798a72c93e8faa0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014 IBM Corporation and others.
* 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:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.wst.server.ui.tests.dialog;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.wst.server.ui.DeleteServerDialogExtension;
public class DeleteServerDialogTestExtension extends
DeleteServerDialogExtension {
public static final String BUTTON_TEXT = "Just testing";
public DeleteServerDialogTestExtension() {
}
@Override
public void createControl(Composite parent) {
Button testButton = new Button(parent, SWT.CHECK);
testButton.setText(BUTTON_TEXT);
testButton.setSelection(true);
}
@Override
public boolean isEnabled() {
return true;
}
@Override
public void performPreDeleteAction(IProgressMonitor monitor) {
// do nothing
}
@Override
public void performPostDeleteAction(IProgressMonitor monitor) {
// TODO Auto-generated method stub
}
}