-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from hastebrot/refactor-extract-toolkitapp
refactor(Framework): Extract ToolkitApplication.
- Loading branch information
Showing
5 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
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
41 changes: 41 additions & 0 deletions
41
...ects/testfx-core/src/main/java/org/loadui/testfx/framework/launch/ToolkitApplication.java
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2013-2014 SmartBear Software | ||
* | ||
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European | ||
* Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work | ||
* except in compliance with the Licence. | ||
* | ||
* You may obtain a copy of the Licence at: | ||
* http://ec.europa.eu/idabc/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the | ||
* Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the Licence for the specific language governing permissions | ||
* and limitations under the Licence. | ||
*/ | ||
package org.loadui.testfx.framework.launch; | ||
|
||
import javafx.application.Application; | ||
import javafx.stage.Stage; | ||
import javafx.stage.StageStyle; | ||
|
||
public class ToolkitApplication extends Application { | ||
|
||
//--------------------------------------------------------------------------------------------- | ||
// STATIC FIELDS. | ||
//--------------------------------------------------------------------------------------------- | ||
|
||
public static final StageFuture primaryStageFuture = StageFuture.create(); | ||
|
||
//--------------------------------------------------------------------------------------------- | ||
// METHODS. | ||
//--------------------------------------------------------------------------------------------- | ||
|
||
@Override | ||
public void start(Stage primaryStage) throws Exception { | ||
primaryStage.initStyle(StageStyle.UNDECORATED); | ||
primaryStage.setTitle(getClass().getSimpleName()); | ||
primaryStageFuture.set(primaryStage); | ||
} | ||
|
||
} |
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