Changeset 27863 in osm for applications/editors/josm/plugins/colorscheme
- Timestamp:
- 2012-02-18T18:03:10+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/colorscheme
- Files:
-
- 2 edited
-
build.xml (modified) (4 diffs)
-
src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/colorscheme/build.xml
r26605 r27863 18 18 ** 19 19 ** To build against the core in ../../core, create a correct manifest and deploy to 20 ** SVN, 20 ** SVN, 21 21 ** set the properties commit.message and plugin.main.version 22 22 ** and run … … 27 27 <project name="colorscheme" default="dist" basedir="."> 28 28 <property name="commit.message" value="Uses new constructor for Plugin"/> 29 <property name="plugin.main.version" value="4 394"/>29 <property name="plugin.main.version" value="4968"/> 30 30 <property name="josm" location="../../core/dist/josm-custom.jar"/> 31 31 <property name="plugin.dist.dir" value="../../dist"/> … … 87 87 </target> 88 88 <!-- 89 ************************** Publishing the plugin *********************************** 89 ************************** Publishing the plugin *********************************** 90 90 --> 91 91 <!-- 92 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 92 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 93 93 ** property ${coreversion.info.entry.revision} 94 94 ** … … 136 136 </target> 137 137 <!-- 138 ** commits the plugin.jar 138 ** commits the plugin.jar 139 139 --> 140 140 <target name="commit-dist"> 141 141 <echo> 142 142 ***** Properties of published ${plugin.jar} ***** 143 Commit message : '${commit.message}' 143 Commit message : '${commit.message}' 144 144 Plugin-Mainversion: ${plugin.main.version} 145 145 JOSM build version: ${coreversion.info.entry.revision} 146 146 Plugin-Version : ${version.entry.commit.revision} 147 ***** / Properties of published ${plugin.jar} ***** 148 147 ***** / Properties of published ${plugin.jar} ***** 148 149 149 Now commiting ${plugin.jar} ... 150 150 </echo> -
applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java
r21563 r27863 28 28 29 29 import org.openstreetmap.josm.Main; 30 import org.openstreetmap.josm.gui.preferences.ColorPreference; 30 import org.openstreetmap.josm.gui.preferences.display.ColorPreference; 31 31 import org.openstreetmap.josm.gui.preferences.PreferenceDialog; 32 32 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 33 33 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 34 import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting; 35 import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting; 34 36 import org.openstreetmap.josm.tools.GBC; 35 37 36 public class ColorSchemePreference implements PreferenceSetting { 38 public class ColorSchemePreference implements SubPreferenceSetting { 37 39 private static final String PREF_KEY_SCHEMES_PREFIX = "colorschemes."; 38 40 private static final String PREF_KEY_SCHEMES_NAMES = PREF_KEY_SCHEMES_PREFIX + "names"; … … 53 55 * @see org.openstreetmap.josm.gui.preferences.PreferenceSetting#addGui(org.openstreetmap.josm.gui.preferences.PreferenceDialog) 54 56 */ 57 @Override 55 58 public void addGui(final PreferenceTabbedPane gui) { 56 59 JPanel panel = new JPanel(new GridBagLayout()); … … 125 128 JScrollPane scrollpane = new JScrollPane(panel); 126 129 scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 )); 127 gui.displaycontent.addTab(tr("Color Schemes"), scrollpane); 130 gui.getDisplayPreference().displaycontent.addTab(tr("Color Schemes"), scrollpane); 131 } 132 133 @Override 134 public TabPreferenceSetting getTabPreferenceSetting(final PreferenceTabbedPane gui) { 135 return gui.getDisplayPreference(); 128 136 } 129 137 … … 141 149 } 142 150 151 @Override 143 152 public boolean ok() { 144 153 return false;// nothing to do 154 } 155 156 @Override 157 public boolean isExpert() { 158 return false; 145 159 } 146 160
Note:
See TracChangeset
for help on using the changeset viewer.
