Skip to content

Commit

Permalink
NETBEANS-951: terminate application in headless mode (apache#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdedic authored Jun 12, 2018
1 parent 25f29be commit fd2a2de
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions o.n.core/src/org/netbeans/core/GuiRunLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.NbBundle;
import org.openide.util.RequestProcessor;
import org.openide.util.lookup.ServiceProvider;
import org.openide.windows.WindowManager;

Expand Down Expand Up @@ -67,12 +68,19 @@ public GuiRunLevel() {
Splash.getInstance().increment(10);

if (CLIOptions.isGui()) {
//---------------------------------------------------------------------------------------------------------
// initialize main window AFTER the setup wizard is finished

initializeMainWindow ();
StartLog.logProgress ("Main window initialized"); // NOI18N
Splash.getInstance().increment(1);
//---------------------------------------------------------------------------------------------------------
// initialize main window AFTER the setup wizard is finished

initializeMainWindow ();
StartLog.logProgress ("Main window initialized"); // NOI18N
Splash.getInstance().increment(1);
} else {
RequestProcessor.getDefault().post(new Runnable() {
@Override
public void run() {
maybeDie(null);
}
});
}

// -----------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit fd2a2de

Please sign in to comment.