Changeset 33997 in osm for applications/editors/josm/plugins/indoorhelper/src/controller
- Timestamp:
- 2018-01-12T16:06:40+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
r33976 r33997 2 2 * Indoorhelper is a JOSM plug-in to support users when creating their own indoor maps. 3 3 * Copyright (C) 2016 Erik Gruschka 4 * Copyright (C) 2018 Rebecca Schmidt 4 5 * 5 6 * This program is free software: you can redistribute it and/or modify … … 112 113 // Shortcuts 113 114 SpaceShortcut = Shortcut.registerShortcut("mapmode:space", 114 tr("IndoorHelper <SPACE> Shortcut"), KeyEvent.VK_SPACE, Shortcut.DIRECT);115 "", KeyEvent.VK_SPACE, Shortcut.DIRECT); 115 116 this.SpaceAction = new SpaceAction(); 116 117 MainApplication.registerActionShortcut(SpaceAction,SpaceShortcut); 117 118 118 119 EnterShortcut = Shortcut.registerShortcut("mapmode:ALT", 119 tr("IndoorHelper <ENTER> Shortcut"), KeyEvent.VK_ENTER, Shortcut.DIRECT);120 "", KeyEvent.VK_ENTER, Shortcut.DIRECT); 120 121 this.EnterAction = new EnterAction(); 121 122 MainApplication.registerActionShortcut(EnterAction,EnterShortcut); … … 188 189 List<Tag> tags = new ArrayList<>(); 189 190 if (toolboxView.getLevelCheckBoxStatus() == false && !levelValue.equals("")) { 190 tags.add(new Tag( tr("level"),levelValue));191 tags.add(new Tag("level",levelValue)); 191 192 } 192 193 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 193 tags.add(new Tag( tr("level_name"),toolboxView.getLevelNameText()));194 tags.add(new Tag("level_name",toolboxView.getLevelNameText())); 194 195 } 195 196 if (!toolboxView.getNameText().isEmpty()) { 196 tags.add(new Tag( tr("name"), toolboxView.getNameText()));197 tags.add(new Tag("name", toolboxView.getNameText())); 197 198 } 198 199 if (!toolboxView.getRefText().isEmpty()) { 199 tags.add(new Tag( tr("ref"), toolboxView.getRefText()));200 tags.add(new Tag("ref", toolboxView.getRefText())); 200 201 } 201 202 if (!toolboxView.getRepeatOnText().isEmpty()){ 202 tags.add(new Tag( tr("repeat_on"),toolboxView.getRepeatOnText()));203 tags.add(new Tag("repeat_on",toolboxView.getRepeatOnText())); 203 204 } 204 205 if (!toolboxView.getLevelNameText().isEmpty() && !toolboxView.getLevelCheckBoxStatus()) { 205 tags.add(new Tag( tr("level_name"),toolboxView.getLevelNameText()));206 tags.add(new Tag("level_name",toolboxView.getLevelNameText())); 206 207 } 207 208 … … 273 274 @Override 274 275 public void actionPerformed(ActionEvent e) { 275 String topic = tr("ToolB"); 276 HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse(tr("/"))); 276 String topic = "indoorHelper"; 277 //Open HelpBrowser for short description about the plugin 278 HelpBrowser.setUrlForHelpTopic(Optional.ofNullable(topic).orElse("/")); 277 279 } 278 280 } … … 545 547 546 548 List<Tag> tags = new ArrayList<>(); 547 tags.add(new Tag( tr("level"),levelNum));549 tags.add(new Tag("level",levelNum)); 548 550 549 551 //Add level tag
Note:
See TracChangeset
for help on using the changeset viewer.