exceptionform.java

来自「一个eclipse插件源代码。用于web开发」· Java 代码 · 共 98 行

JAVA
98
字号
/*
 * $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/exception/ExceptionForm.java,v 1.1.1.1 2004/07/01 09:07:45 wang_j Exp $
 * $Revision: 1.1.1.1 $
 * $Date: 2004/07/01 09:07:45 $
 *
 * ====================================================================
 *
 * 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.exception;

import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;

import com.webpump.ui.base.gui.*;

/**
 * Class for the layout of the editor page.
 * 
 * @author zhao_f
 * @version 2.0.0 2004-2-13
 */
public class ExceptionForm extends BaseForm{
	
	/** the tree part of the editor page*/
	private ExceptionDetailSection m_objExceptionDetailSection;
	
	/** the table part of the editor page*/
	private ExceptionAllSection m_objExceptionAllSection;
	
	/**
	 * the constructor for the Exception editor layout
	 * @param page
	 */	
	public ExceptionForm(BasePage page) {
		super(page);
	}
	
	/**
	 * Define the layout of the editor page
	 * @param parent 
	 */
	protected void createFormClient(Composite parent) {
		//Define the layout 
		GridLayout layout = new GridLayout();
		parent.setLayout(layout);
		layout.makeColumnsEqualWidth=true;
		layout.numColumns = 2;
		layout.marginWidth = 10;
		layout.horizontalSpacing=15;
		GridData gd ;
	    
	    //Define the tree section
		m_objExceptionDetailSection= new ExceptionDetailSection(page);
		Control control = m_objExceptionDetailSection.createControl(parent, getFactory());
		gd = new GridData(GridData.FILL_BOTH);
		control.setLayoutData(gd);
  
        //Defjine the table section
		m_objExceptionAllSection = new ExceptionAllSection(page);
		control = m_objExceptionAllSection.createControl(parent, getFactory());
		gd = new GridData(GridData.FILL_BOTH);
		control.setLayoutData(gd);
		
		//Register the two section
		registerSection(m_objExceptionDetailSection);
		registerSection(m_objExceptionAllSection);
		
	}

    /**
     * Return the tree part 
     */
	public ExceptionDetailSection getExceptionDetailSection()
	{
		return m_objExceptionDetailSection;
	}
	
	/**
	 * Return the table part
	 */
	public ExceptionAllSection getExceptionAllSection()
	{
		return m_objExceptionAllSection;
	}	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?