hibernatecfmodel.java

来自「eclipse的hibernate插件,支持eclipse2.*版本」· Java 代码 · 共 90 行

JAVA
90
字号
/* * Created on 2003-7-28 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */package com.tanghan.plugin.hibernate.editor;import java.io.PrintWriter;import org.apache.log4j.Logger;import org.eclipse.core.resources.IFile;import org.eclipse.pde.core.IEditable;import com.tanghan.util.Log;import com.tanghan.util.TanghanException;import com.tanghan.util.XMLUtility;/** * @author Jerry Tang * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */public class HibernateCFModel	extends AbstractHibernateCFModel	implements IEditable {	private boolean dirty = false;	private boolean editable = true;	private static Logger log = Log.getInstanse().getLogger(HibernateCFModel.class);		/**	 * Constructor HibernateCFModel.	 * 	 * @param file	 */		public HibernateCFModel(IFile file) {			} 	/**	 * Constructor HibernateCFModel.	 * @param file	 */	public HibernateCFModel() {	} 			/* (non-Javadoc)	 * @see org.eclipse.pde.core.IEditable#isDirty()	 */	public boolean isDirty() {		return dirty;	}	/* (non-Javadoc)	 * @see org.eclipse.pde.core.IEditable#save(java.io.PrintWriter)	 */	public void save(PrintWriter writer) {		try{			XMLUtility.document2Writer(this.doc,writer);			writer.flush();		}catch (TanghanException ex){			log.debug(" save(PrintWriter writer) ",ex);		}	}	/* (non-Javadoc)	 * @see org.eclipse.pde.core.IEditable#setDirty(boolean)	 */	public void setDirty(boolean dirty) {		this.dirty = dirty;	}	/**	 * Returns the editable.	 * @return boolean	 */	public boolean isEditable() {		return editable;	}	/**	 * Sets the editable.	 * @param editable The editable to set	 */	public void setEditable(boolean editable) {		this.editable = editable;	}}

⌨️ 快捷键说明

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