exceptionname.java
来自「一个eclipse插件源代码。用于web开发」· Java 代码 · 共 101 行
JAVA
101 行
/*
* $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/exception/data/ExceptionName.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.util.Hashtable;
import java.io.PrintWriter;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.pde.core.*;
import org.w3c.dom.*;
import com.webpump.ui.base.data.*;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
/**
* class for defining the data structure of the child node <exception> in "excepton.xml"
*
* @author zhao_f
* @version 2.0.0 2004-2-13
*/
public class ExceptionName extends BaseObject{
final static String INDENT = " ";
/** the exception names in "exception.xml" */
private String m_strExceptionName = "";
/**
* Parse the given node and get its attribute whose name is "name"
* @param node
* @param linetable
*/
protected void parse(Node node, Hashtable lineTable) {
bindSourceLocation(node, lineTable);
m_strExceptionName = getNodeAttribute(node, "name");
addComments(node);
}
/**
* 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) {
writeComments(writer);
writer.print(indent + "<exception");
writeIfDefined(" ", writer, "name", WebpumpIDEPlugin.filterXML(m_strExceptionName));
writer.println("/>");
}
/**
* Get the exception name parsed from this node
*/
public String toString()
{
return m_strExceptionName;
}
/**
* Set the exception name using the given parameter
* @param strExceptionName which is used to set the exception name
*/
public void setExceptionName(String strExceptionName)
{
m_strExceptionName = strExceptionName;
fireStructureChanged(this, ModelChangedEvent.CHANGE);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?