sqlsection.java
来自「一个eclipse插件源代码。用于web开发」· Java 代码 · 共 96 行
JAVA
96 行
/*
* $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/sql/SQLSection.java,v 1.1.1.1 2004/07/01 09:07:52 wang_j Exp $
* $Revision: 1.1.1.1 $
* $Date: 2004/07/01 09:07:52 $
*
* ====================================================================
*
* 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.sql;
import java.util.Vector;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.pde.internal.ui.editor.PDEFormSection;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.TableEditor;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
import org.eclipse.update.ui.forms.internal.*;
import com.webpump.ui.base.gui.BasePage;
import com.webpump.ui.perspective.MacroResource;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
/**
* Class for section to show SQL.
*
* @author luo_sa
* @version 2.0.0 2004-2-24
*/
public class SQLSection extends PDEFormSection {
/** text to show SQL */
private Text m_textShowSQL;
/** table to write value of parameters */
private Table m_tableShowParas;
/** editor to add a text to table */
private TableEditor m_objTableEditor;
/** number of parameters */
private int iNumOfParas = 0;
/** data to which this section perform */
private KeyAndValue m_objKeyAndValue;
/***/
private boolean m_blisten = true;
//ParameterList parameterlist;
private ParameterValue[] parametervalue;
/**
* Constructor
* @param page
*/
public SQLSection(BasePage page) {
super(page);
setHeaderText(WebpumpIDEPlugin.getResourceString(MacroResource.SQLSECTION_HEADER_TEXT));
}
/**
* Create the layout of this section
*
*/
public Composite createClient(Composite parent, FormWidgetFactory factory) {
Composite container = factory.createComposite(parent);
final GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
container.setLayout(gridLayout);
{
final Label label = factory.createLabel(container, "", SWT.NONE);
}
{
m_textShowSQL = factory.createText(container, "" , SWT.BORDER | SWT.MULTI|SWT.V_SCROLL);
final GridData gridData_1 = new GridData(GridData.FILL_BOTH);
gridData_1.verticalSpan = 5;
m_textShowSQL.setLayoutData(gridData_1);
//监
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?