Changeset 35661 in osm for applications/editors/josm/plugins/jna/src/org/openstreetmap
- Timestamp:
- 2020-12-06T02:26:39+01:00 (4 years ago)
- Location:
- applications/editors/josm/plugins/jna/src/org/openstreetmap/josm/plugins/jna
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/jna/src/org/openstreetmap/josm/plugins/jna/JNAPlugin.java
r35659 r35661 5 5 import org.openstreetmap.josm.plugins.PluginInformation; 6 6 import org.openstreetmap.josm.plugins.jna.mac.JosmMacNativeLogHandler; 7 import org.openstreetmap.josm.plugins.jna.win.JosmWinNativeLogHandler; 7 8 import org.openstreetmap.josm.tools.Logging; 8 9 import org.openstreetmap.josm.tools.PlatformManager; … … 12 13 */ 13 14 public class JNAPlugin extends Plugin { 15 14 16 /** 15 17 * Constructs a new {@code JNAPlugin} … … 20 22 if (PlatformManager.isPlatformOsx()) { 21 23 Logging.getLogger().addHandler(new JosmMacNativeLogHandler()); 24 } else if (PlatformManager.isPlatformWindows()) { 25 Logging.getLogger().addHandler(new JosmWinNativeLogHandler()); 22 26 } 23 27 } -
applications/editors/josm/plugins/jna/src/org/openstreetmap/josm/plugins/jna/JosmNativeLogHandler.java
r35659 r35661 38 38 39 39 private static boolean isLoggable(LogRecord record, Level level, BooleanProperty prop) { 40 return level.equals(record.getLevel()) && prop. isSet();40 return level.equals(record.getLevel()) && prop.get(); 41 41 } 42 42 -
applications/editors/josm/plugins/jna/src/org/openstreetmap/josm/plugins/jna/mac/ID.java
r35659 r35661 3 3 4 4 import com.sun.jna.Native; // NOSONAR 5 import com.sun.jna.NativeLibrary; // NOSONAR6 import com.sun.jna.NativeLong; // NOSONAR5 import com.sun.jna.NativeLibrary; 6 import com.sun.jna.NativeLong; 7 7 8 8 /**
Note:
See TracChangeset
for help on using the changeset viewer.