-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
49 changed files
with
114 additions
and
100 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
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
84 changes: 42 additions & 42 deletions
84
app-nb/core-nb/src/main/java/org/mapton/core_nb/tool/app/MapTool.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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
/* | ||
* Copyright 2019 Patrik Karlström. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.mapton.core_nb.tool.app; | ||
|
||
import org.controlsfx.control.action.Action; | ||
import org.mapton.api.MToolApp; | ||
import org.openide.awt.Actions; | ||
import org.openide.util.lookup.ServiceProvider; | ||
import se.trixon.almond.util.Dict; | ||
import se.trixon.almond.util.fx.FxActionSwing; | ||
import se.trixon.almond.util.icons.material.MaterialIcon; | ||
|
||
/** | ||
* | ||
* @author Patrik Karlström | ||
*/ | ||
@ServiceProvider(service = MToolApp.class) | ||
public class MapTool implements MToolApp { | ||
|
||
@Override | ||
public Action getAction() { | ||
FxActionSwing action = new FxActionSwing(Dict.MAP.toString(), () -> { | ||
Actions.forID("Window", "org.mapton.core_nb.ui.MapTopComponent").actionPerformed(null); | ||
}); | ||
action.setGraphic(MaterialIcon._Maps.MAP.getImageView(ICON_SIZE)); | ||
|
||
return action; | ||
} | ||
} | ||
/* | ||
* Copyright 2019 Patrik Karlström. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.mapton.core_nb.tool.app; | ||
|
||
import org.controlsfx.control.action.Action; | ||
import org.mapton.api.MToolApp; | ||
import org.openide.util.lookup.ServiceProvider; | ||
import se.trixon.almond.nbp.Almond; | ||
import se.trixon.almond.util.Dict; | ||
import se.trixon.almond.util.fx.FxActionSwing; | ||
import se.trixon.almond.util.icons.material.MaterialIcon; | ||
|
||
/** | ||
* | ||
* @author Patrik Karlström | ||
*/ | ||
@ServiceProvider(service = MToolApp.class) | ||
public class MapTool implements MToolApp { | ||
|
||
@Override | ||
public Action getAction() { | ||
FxActionSwing action = new FxActionSwing(Dict.MAP.toString(), () -> { | ||
Almond.openAndActivateTopComponent("MapTopComponent"); | ||
}); | ||
action.setGraphic(MaterialIcon._Maps.MAP.getImageView(ICON_SIZE)); | ||
|
||
return action; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ | |
# limitations under the License. | ||
# | ||
app.copyright=\u00a9 2018\u20132020 Patrik Karlstr\u00f6m | ||
app.date=2020-04-04 | ||
app.date=2020-04-12 | ||
app.description=Some kind of map application | ||
app.licenseUri=https://www.apache.org/licenses/LICENSE-2.0.html | ||
app.licenseUriTitle=Apache, Version 2.0 | ||
app.name=Mapton | ||
app.uri=https://mapton.org | ||
app.uriTitle=mapton.org | ||
app.version=2.0.0 | ||
app.version=2.0.1 | ||
authors=Patrik Karlstr\u00f6m <[email protected]> | ||
libraries=Almond-NBP;Apache Commons (csv, io, lang3, logging, text);Apache NetBeans Platform 11.3;OpenHMS SqlBuilder;H2 Database Engine;NASA WorldWind;JXMapViewer2;MapJfx;j2html;jsoup;GMapsFX;Material Design Icons | ||
thanksTo=Magnus Myhrberg;eox.at | ||
thanksTo=Magnus Myhrberg;eox.at;Peter C Mehlitz |
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
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
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
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.