nescconfigurationfile.java

来自「plugin for eclipse」· Java 代码 · 共 46 行

JAVA
46
字号
/*
 * Created on May 9, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package isis.anp.nesc.ot;

/**
 * @author sallai
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class NesCConfigurationFile extends NesCComponentFile {

	Configuration configuration;
	
	public void outline(Outline o) {
		o.append("/* NesC Configuration File: " + this.getFileName() + " */\n");
		o.incTabs();
			super.outline(o);
			configuration.outline(o);
		o.decTabs();
	}

	/**
	 * @param configObj
	 */
	public void setConfiguration(Configuration config) {
		this.configuration = config;
		if(config!=null) {
			config.setConfigurationFile(this);
		}
		
	}

	/* (non-Javadoc)
	 * @see parser.nesc.ot.NesCComponentFile#getComponent()
	 */
	public Component getComponent() {
		return configuration;
	}

}

⌨️ 快捷键说明

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