exceptionconfig.java

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

JAVA
101
字号
/*
 * $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/exception/data/ExceptionConfig.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.data;

import java.io.PrintWriter;
import org.eclipse.core.runtime.CoreException;
import com.webpump.ui.base.data.*;
import com.webpump.ui.perspective.MacroResource;
import com.webpump.ui.perspective.WebpumpIDEPlugin;

/**
 * Class for defining the members who will be shown in the tree part of the editor.
 * 
 * @author zhao_f
 * @version 2.0.0 2004-2-13
 */
public class ExceptionConfig extends BaseDataObject
{
	final static String INDENT = "   ";
	
	/** name of this node*/		
	private String m_strName=WebpumpIDEPlugin.getResourceString(MacroResource.EXCEPTIONCONFIG_NAME);
	
	/** the object whose type is GlobalExceptions*/
	private GlobalExceptions m_objGlobalExceptions;
	
	/** the object whose type is ActionList*/
	private ActionList m_objActionList;
	
	/**
	 * the constructor which initiate the value of m_GlobalExceptions and m_ActionList.
	 * @param globalExceptions
	 * @param actionList
	 */
	public ExceptionConfig (GlobalExceptions globalExceptions,ActionList actionList)
	{
		m_objGlobalExceptions = globalExceptions;
		m_objActionList = actionList;
		
	}
	
	/**
	 * Restore the Property
	 * @param name
	 * @param oldValue
	 * @param newValue
	 */
	public void restoreProperty(String name, Object oldValue, Object newValue)
		throws CoreException {
		super.restoreProperty(name, oldValue, newValue);
	}
	
	/**
	 * Write this node in "exception.xml"
	 * @param indent
	 * @param writer
	 */
	public void write(String indent, PrintWriter writer) {

	}

	/**
	 * Return the children nodes in the form of Object group whose members are m_GlobalExceptions and m_ActionList.
	 */
	public Object[] getChild()
	{	
		Object[] objArray = new Object[2];
		objArray[0] = m_objGlobalExceptions;
		objArray[1] = m_objActionList;
		
		
		return objArray;
	}

	/**
	 * Return the name of this node
	 */
	public String toString()
	{
		return m_strName;
	}	
}

⌨️ 快捷键说明

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