-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option "-J-Djava.awt.headless=true" für des Batchmode ergänzt und den
Code entsprechend angepasst und bereinigt. Dadurch sollten potentielle Raceconditions verhindert sein.
- Loading branch information
Showing
8 changed files
with
224 additions
and
217 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
/* | ||
* This program developed in Java is based on the netbeans platform and is used | ||
* to design and to analyse composite structures by means of analytical and | ||
* numerical methods. | ||
* | ||
* Further information can be found here: | ||
* http://www.elamx.de | ||
* | ||
* Copyright (C) 2021 Technische Universität Dresden - Andreas Hauffe | ||
* | ||
* This file is part of eLamX². | ||
* | ||
* eLamX² is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* eLamX² is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with eLamX². If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.elamx.core; | ||
|
||
import javax.swing.UIManager; | ||
import org.openide.modules.ModuleInstall; | ||
import org.openide.util.NbPreferences; | ||
|
||
public class Installer extends ModuleInstall { | ||
|
||
@Override | ||
public void restored() { | ||
String osName = System.getProperty("os.name").toLowerCase(); | ||
boolean isMacOs = osName.startsWith("mac os x"); | ||
|
||
System.setProperty("nb.useSwingHtmlRendering", "true"); | ||
System.setProperty("ps.quickSearch.disabled.global", "true"); | ||
|
||
if (!isMacOs) { | ||
UIManager.put("NbMainWindow.showCustomBackground", Boolean.TRUE); | ||
RootFrame.init(); | ||
} | ||
} | ||
|
||
@Override | ||
public void validate() throws IllegalStateException { | ||
NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatLightLaf"); | ||
super.validate(); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/OverriddenMethodBody | ||
} | ||
} | ||
/* | ||
* This program developed in Java is based on the netbeans platform and is used | ||
* to design and to analyse composite structures by means of analytical and | ||
* numerical methods. | ||
* | ||
* Further information can be found here: | ||
* http://www.elamx.de | ||
* | ||
* Copyright (C) 2021 Technische Universität Dresden - Andreas Hauffe | ||
* | ||
* This file is part of eLamX². | ||
* | ||
* eLamX² is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* eLamX² is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with eLamX². If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.elamx.core; | ||
|
||
import java.awt.GraphicsEnvironment; | ||
import javax.swing.UIManager; | ||
import org.openide.modules.ModuleInstall; | ||
import org.openide.util.NbPreferences; | ||
|
||
public class Installer extends ModuleInstall { | ||
|
||
@Override | ||
public void restored() { | ||
String osName = System.getProperty("os.name").toLowerCase(); | ||
boolean isMacOs = osName.startsWith("mac os x"); | ||
boolean headless = GraphicsEnvironment.isHeadless(); | ||
GlobalProperties.getDefault().setHeadless(headless); | ||
|
||
System.setProperty("nb.useSwingHtmlRendering", "true"); | ||
System.setProperty("ps.quickSearch.disabled.global", "true"); | ||
|
||
if (!isMacOs && !headless) { | ||
UIManager.put("NbMainWindow.showCustomBackground", Boolean.TRUE); | ||
RootFrame.init(); | ||
} | ||
} | ||
|
||
@Override | ||
public void validate() throws IllegalStateException { | ||
NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatLightLaf"); | ||
super.validate(); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/OverriddenMethodBody | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
build.xml.data.CRC32=4bed86ab | ||
build.xml.data.CRC32=8ec9ce05 | ||
build.xml.script.CRC32=de738262 | ||
build.xml.stylesheet.CRC32=15ca8a54@2.74.1 | ||
build.xml.stylesheet.CRC32=15ca8a54@2.94 | ||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | ||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | ||
nbproject/build-impl.xml.data.CRC32=4bed86ab | ||
nbproject/build-impl.xml.data.CRC32=8ec9ce05 | ||
nbproject/build-impl.xml.script.CRC32=5661ff42 | ||
nbproject/build-impl.xml.stylesheet.CRC32=49aa68b0@2.74.1 | ||
nbproject/build-impl.xml.stylesheet.CRC32=49aa68b0@2.94 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters