Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/BaseDialog.java')
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/BaseDialog.java91
1 files changed, 0 insertions, 91 deletions
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/BaseDialog.java b/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/BaseDialog.java
deleted file mode 100644
index ad92d9f2255..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.epf.richtext/src/org/eclipse/epf/richtext/dialogs/BaseDialog.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 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
- *******************************************************************************/
-//------------------------------------------------------------------------------
-// Copyright (c) 2005, 2007 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 implementation
-//------------------------------------------------------------------------------
-package org.eclipse.epf.richtext.dialogs;
-
-import org.eclipse.epf.common.serviceability.Logger;
-import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * The base class for all dialogs used by the rich text editor.
- *
- * @author Kelvin Low
- * @since 1.0
- */
-public class BaseDialog extends Dialog {
-
- // A logger for logging runtime warnings and errors.
- protected Logger logger;
-
- // The OK button.
- protected Button okButton;
-
- // The Cancel button.
- protected Button cancelButton;
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent shell
- */
- public BaseDialog(Shell parent) {
- super(parent);
- logger = RichTextPlugin.getDefault().getLogger();
- }
-
- @Override
- protected Control createDialogArea(Composite parent) {
- Composite composite = (Composite) super.createDialogArea(parent);
- GridLayout layout = (GridLayout) composite.getLayout();
- layout.marginWidth = 10;
- layout.marginHeight = 10;
- layout.numColumns = 2;
- GridData gridData = (GridData) composite.getLayoutData();
- gridData.verticalIndent = 10;
- return composite;
- }
-
- @Override
- protected void createButtonsForButtonBar(Composite parent) {
- // Create the OK button.
- createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
- true);
-
- // Create the Cancel button.
- createButton(parent, IDialogConstants.CANCEL_ID,
- IDialogConstants.CANCEL_LABEL, false);
-
- // Set help context for the OK button.
- okButton = super.getButton(IDialogConstants.OK_ID);
-
- // Set help context for the Cancel button.
- cancelButton = super.getButton(IDialogConstants.CANCEL_ID);
- }
-
-}

Back to the top