Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/epf-richtext/org.eclipse.epf.common.ui/src/org/eclipse/epf/common/ui/MessageCallback.java')
-rw-r--r--extraplugins/epf-richtext/org.eclipse.epf.common.ui/src/org/eclipse/epf/common/ui/MessageCallback.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/extraplugins/epf-richtext/org.eclipse.epf.common.ui/src/org/eclipse/epf/common/ui/MessageCallback.java b/extraplugins/epf-richtext/org.eclipse.epf.common.ui/src/org/eclipse/epf/common/ui/MessageCallback.java
deleted file mode 100644
index dfef39b6621..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.epf.common.ui/src/org/eclipse/epf/common/ui/MessageCallback.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 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 implementation
- *******************************************************************************/
-package org.eclipse.epf.common.ui;
-
-import org.eclipse.epf.common.AbstractActivator;
-import org.eclipse.epf.common.IMessageCallback;
-import org.eclipse.epf.common.ui.util.MsgDialog;
-
-/**
- * message callback implementation
- *
- * @author Jinhua Xi
- * @since 1.5
- *
- */
-public class MessageCallback implements IMessageCallback {
-
- public void displayWarning(AbstractActivator plugin, String title, String msg, String reason) {
- displayWarning(plugin, title, msg, reason, null, null);
- }
-
- public void displayWarning(AbstractActivator plugin, String msg, String reason, Throwable ex) {
- displayWarning(plugin, msg, reason, null, ex);
- }
-
- public void displayWarning(AbstractActivator plugin, String msg, String reason,
- String details, Throwable ex) {
- String title = CommonUIPlugin.getDefault().getWorkbench().getDisplay().getActiveShell().getText();
- displayWarning(plugin, title, msg, reason, details, ex);
- }
-
- public void displayWarning(AbstractActivator plugin, String title, String msg, String reason,
- String details, Throwable ex) {
- MsgDialog dlg = CommonUIPlugin.getDefault().getMsgDialog(plugin);
- dlg.displayWarning(title, msg, reason, details, ex);
- }
-
- public void displayError(AbstractActivator plugin, String title, String msg) {
- displayError(plugin, title, msg, null, null, null);
- }
-
- public void displayError(AbstractActivator plugin, String title, String msg, Throwable ex) {
- displayError(plugin, title, msg, null, null, ex);
- }
- public void displayError(AbstractActivator plugin, String title, String msg, String reason, String details, Throwable ex) {
- MsgDialog dlg = CommonUIPlugin.getDefault().getMsgDialog(plugin);
- dlg.displayError(title, msg, reason, details, ex);
-
- }
-
-}

Back to the top