-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split project settings and app settings into separate classes (#724)
* Split project settings and app settings into separate classes Move port validation to GripServer and common CLI to the helper class Make project settings reflect command-line port option No longer serializes the server port. Use the command-line option or the settings dialog to set it. Fixes #708 Enable projects to be uploaded via HTTP in UI mode * Move *BeanInfo classes to UI module. Fixes #717 * Ignore all unknown tags in save files
- Loading branch information
1 parent
92c589c
commit 26e7d96
Showing
23 changed files
with
327 additions
and
163 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
22 changes: 22 additions & 0 deletions
22
core/src/main/java/edu/wpi/grip/core/events/AppSettingsChangedEvent.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,22 @@ | ||
package edu.wpi.grip.core.events; | ||
|
||
import edu.wpi.grip.core.settings.AppSettings; | ||
|
||
import static com.google.common.base.Preconditions.checkNotNull; | ||
|
||
/** | ||
* An event fired when the app settings are changed. | ||
*/ | ||
public class AppSettingsChangedEvent { | ||
|
||
private final AppSettings appSettings; | ||
|
||
public AppSettingsChangedEvent(AppSettings appSettings) { | ||
this.appSettings = checkNotNull(appSettings, "appSettings"); | ||
} | ||
|
||
public AppSettings getAppSettings() { | ||
return appSettings; | ||
} | ||
|
||
} |
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
Oops, something went wrong.