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

📄 mainapplication.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
/* * Created on 25.04.2005 */package net.sourceforge.ganttproject.application;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import net.sourceforge.ganttproject.GanttProject;import org.eclipse.core.runtime.IPlatformRunnable;/** * @author bard */public class MainApplication implements IPlatformRunnable {    private Object myLock = new Object();    // The hack with waiting is necessary because when you    // launch Runtime Workbench in Eclipse, it exists as soon as    // GanttProject.main() method exits    // without Eclipse, Swing thread continues execution. So we wait until main    // window closes    public Object run(Object args) throws Exception {        Thread.currentThread().setContextClassLoader(                getClass().getClassLoader());        String[] cmdLine = (String[]) args;        WindowAdapter closingListener = new WindowAdapter() {            public void windowClosed(WindowEvent e) {                myLock.notify();            }        };        GanttProject.setWindowListener(closingListener);        GanttProject.main(cmdLine);        synchronized (myLock) {            myLock.wait();        }        return null;    }}

⌨️ 快捷键说明

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