2 * Copyright 2015 Samsung Electronics All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package oic.simulator.serviceprovider.view.dialogs;
19 import org.eclipse.jface.dialogs.IDialogConstants;
20 import org.eclipse.jface.wizard.IWizard;
21 import org.eclipse.jface.wizard.WizardDialog;
22 import org.eclipse.swt.widgets.Button;
23 import org.eclipse.swt.widgets.Composite;
24 import org.eclipse.swt.widgets.Shell;
27 * Dialog for handling wizards.
29 public class ResourceWizardDialog extends WizardDialog {
31 public ResourceWizardDialog(Shell parentShell, IWizard newWizard) {
32 super(parentShell, newWizard);
36 public boolean isHelpAvailable() {
41 public void finishPressed() {
42 super.finishPressed();
46 protected void createButtonsForButtonBar(Composite parent) {
47 super.createButtonsForButtonBar(parent);
48 Button finishButton = getButton(IDialogConstants.FINISH_ID);
49 if (finishButton != null) {
50 finishButton.setText(IDialogConstants.OK_LABEL);