applicationmanager.java

来自「PIY(Program It Yourself)是一个基于Java的应用程序开发」· Java 代码 · 共 31 行

JAVA
31
字号
package piy;

import java.io.*;

/**
* This class is primarily in place to allow actions to retrieve 
* information about the currently running project.
* @author David Vivash
* @version 1.0, 20/04/01
*/
public class ApplicationManager 
{

	private Application app = null;
	private static ApplicationManager instance = null; 

	private ApplicationManager() {
	}

	public static ApplicationManager getInstance() {
		return (instance == null) ? instance = new ApplicationManager() :
									instance;
	}
	
	protected void setApplication(Application app) {
		this.app = app;
	}
	
	public Application getApplication() { return app; }
	
}

⌨️ 快捷键说明

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