⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 projectmodel.java

📁 一个eclipse插件源代码。用于web开发
💻 JAVA
字号:
/*
 * $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/project/ProjectModel.java,v 1.2 2004/12/29 09:45:30 wang_j Exp $
 * $Revision: 1.2 $
 * $Date: 2004/12/29 09:45:30 $
 *
 * ====================================================================
 *
 * 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.project;

import java.util.Hashtable;

import org.eclipse.core.resources.IFile;
import org.w3c.dom.Document;
import org.w3c.dom.Node;

import com.webpump.ui.base.data.BaseModel;

/**
 * Project Info's Data Model 
 * 
 * @author wang_j
 * @version 2.0 2004-02-11 
 */
public class ProjectModel extends BaseModel{
	
	
	public ProjectModel()
	{
		super();		
	}
	
	public ProjectModel(IFile file)
	{
		super(file);		
	}
	
	
	/**
	 * parse the Project Info's xml to Model
	 */
	protected void processDocument(Document doc, Hashtable lineTable)
	{	
		//解释工程信息为ProjectInfo
		Node rootNode = doc.getDocumentElement();
		if (m_objDataObject == null) {
			m_objDataObject = new ProjectInfo();
			m_objDataObject.setModel(this);
			m_objDataObject.setInTheModel(true);

		}
		m_objDataObject.parse(rootNode, lineTable);		    	
	}




}

⌨️ 快捷键说明

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