/* * Copyright (c) 2003,2006 Declarative Engineering LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Declarative Engineering LLC * verson 1 which accompanies this distribution, and is available at * http://declarativeengineering.com/legal/DE_Developer_License_v1.txt */ package com.foundation.view.swt; public abstract class Dialog { private org.eclipse.swt.widgets.Dialog dialog = null; /** * Dialog constructor. */ public Dialog() { super(); }//Dialog()// /** * Gets the SWT dialog instance. * @return The SWT dialog. */ protected org.eclipse.swt.widgets.Dialog getSwtDialog() { return dialog; }//getSwtDialog()// /** * Sets the SWT dialog instance. * @return The SWT dialog. */ protected void setSwtDialog(org.eclipse.swt.widgets.Dialog dialog) { this.dialog = dialog; }//setSwtDialog()// /** * Gets the text displayed by the dialog. * @return The dialog text. */ public String getText() { return getSwtDialog().getText(); }//getText()// /** * Sets the dialog text. * @param text The text to be displayed in the dialog. */ public void setText(String text) { getSwtDialog().setText(text); }//setText()// }//Dialog//