📄 adddatasourcedialog.java
字号:
/*
* $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/dialog/AddDataSourceDialog.java,v 1.1.1.1 2004/07/01 09:07:44 wang_j Exp $
* $Revision: 1.1.1.1 $
* $Date: 2004/07/01 09:07:44 $
*
* ====================================================================
*
* The NanJing HopeRun(IT-FOREST) Software License, Version 2.0.0
*
* Copyright 2003-2004 by NanJing HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and
* IT Forest Corporation
* All rights reserved.
*
* This software is the confidential and proprietary information of
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
* You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into with
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
*/
package com.webpump.ui.dialog;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
import com.webpump.ui.base.gui.BaseDialog;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
/**
* Class for layout of adddialog .
*
* @author luo_sa
* @version 2.0.0 2004-3-5
*/
public class AddDataSourceDialog extends BaseDialog {
private AddDataSourcePage m_objAddPage;
/** title of the dialog */
private String m_strTitle;
/** description of the dialog */
private String m_strDescription;
/** text on the label of the dialog */
private String m_strLabel;
private String m_strValue;
private String m_strReturnValue;
private Object m_object;
/**
* Constructor
*
* @param strWindowTitle
* @param strTitle
* @param strDescription
* @param strLabel
* @param strValue
*/
public AddDataSourceDialog(String strWindowTitle, String strTitle, String strDescription, String strLabel, String strValue, Object object) {
super();
m_strTitle = strTitle;
m_strDescription = strDescription;
m_strLabel = strLabel;
m_strValue = strValue;
m_object = object;
setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWPACK);
setDialogSettings(WebpumpIDEPlugin.getDefault().getDialogSettings());
setWindowTitle(strWindowTitle);
}
/**
* Add page to this dialog
*/
public void addPages() {
super.addPages();
m_objAddPage = new AddDataSourcePage(m_strTitle, m_strDescription, m_strLabel, m_strValue, m_object);
addPage(m_objAddPage);
}
/**
* Get values of the page when finishPage
*/
protected void finishPage(IProgressMonitor monitor)
throws InterruptedException, CoreException {
m_strReturnValue = m_objAddPage.getValue();
}
/**
* Get the value return from addpage.
* @return
*/
public String getValue() {
return m_strReturnValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -