-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26df199
commit 276312a
Showing
17 changed files
with
229 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased] | ||
|
||
## [1.4.9] - 2016-11-13 | ||
|
||
### Added | ||
|
||
- Better menubar integration on MacOS | ||
- Validation of number of lines improved (negative numbers are rejected) | ||
- Better menubar integration on Mac OS X | ||
|
||
### Changed | ||
|
||
- URLs pointing to SourceForge updated to point to Github | ||
|
||
### Fixed | ||
|
||
- Broken unit test | ||
|
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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/santiagolizardo/madcommander/AppConstants.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,30 @@ | ||
/** | ||
* This file is part of MadCommander, a file manager with two panels. | ||
* | ||
* MadCommander 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. | ||
* | ||
* MadCommander 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 MadCommander. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.santiagolizardo.madcommander; | ||
|
||
public final class AppConstants { | ||
|
||
private AppConstants() { | ||
|
||
} | ||
|
||
public final static String APP_NAME = "NeoCommander"; | ||
public final static String APP_VERSION = "1.4.9"; | ||
public final static String APP_URL = "https://github.com/santiagolizardo/neocommander"; | ||
public final static String DOWNLOAD_URL = "https://github.com/santiagolizardo/neocommander/releases"; | ||
|
||
} |
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
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
44 changes: 44 additions & 0 deletions
44
src/main/java/com/santiagolizardo/madcommander/util/OsDetector.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,44 @@ | ||
/** | ||
* This file is part of MadCommander, a file manager with two panels. | ||
* | ||
* MadCommander 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. | ||
* | ||
* MadCommander 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 MadCommander. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.santiagolizardo.madcommander.util; | ||
|
||
public class OsDetector { | ||
|
||
private static Os currentOs = null; | ||
|
||
public static void reset() { | ||
currentOs = null; | ||
} | ||
|
||
public static Os get() throws Exception { | ||
if (null != currentOs) { | ||
return currentOs; | ||
} | ||
final String osName = System.getProperty("os.name").toLowerCase(); | ||
if (osName.contains("windows")) { | ||
currentOs = Os.Windows; | ||
} else if (osName.contains("linux")) { | ||
currentOs = Os.Linux; | ||
} else if (osName.contains("osx") || osName.contains("os x")) { | ||
currentOs = Os.Osx; | ||
} | ||
if (currentOs == null) { | ||
throw new Exception("Unable to recognize OS with name: " + osName); | ||
} | ||
return currentOs; | ||
} | ||
} |
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.