Changeset 16075 in josm
- Timestamp:
- 2020-03-08T12:37:01+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r12846 r16075 16 16 17 17 import org.openstreetmap.josm.gui.util.GuiHelper; 18 import org.openstreetmap.josm.gui.widgets.JMultilineLabel;19 18 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 20 19 import org.openstreetmap.josm.io.ChangesetQuery; 21 20 import org.openstreetmap.josm.spi.preferences.Config; 21 import org.openstreetmap.josm.tools.GBC; 22 22 23 23 /** … … 27 27 public class AdvancedChangesetQueryPanel extends JPanel { 28 28 29 private final JCheckBox cbUserRestriction = new JCheckBox(); 30 private final JCheckBox cbOpenAndCloseRestrictions = new JCheckBox(); 31 private final JCheckBox cbTimeRestrictions = new JCheckBox(); 32 private final JCheckBox cbBoundingBoxRestriction = new JCheckBox(); 29 private final JCheckBox cbUserRestriction = new JCheckBox(tr("Select changesets owned by specific users")); 30 private final JCheckBox cbOpenAndCloseRestrictions = new JCheckBox(tr("Select changesets depending on whether they are open or closed")); 31 private final JCheckBox cbTimeRestrictions = new JCheckBox(tr("Select changesets based on the date/time they have been created or closed")); 32 private final JCheckBox cbBoundingBoxRestriction = new JCheckBox(tr("Select only changesets related to a specific bounding box")); 33 33 private final UserRestrictionPanel pnlUserRestriction = new UserRestrictionPanel(); 34 34 private final OpenAndCloseStateRestrictionPanel pnlOpenAndCloseRestriction = new OpenAndCloseStateRestrictionPanel(); … … 47 47 JPanel pnl = new VerticallyScrollablePanel(new GridBagLayout()); 48 48 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 49 GridBagConstraints gc = newGridBagConstraints();49 GridBagConstraints gc = GBC.eol().fill(GridBagConstraints.HORIZONTAL); 50 50 51 51 // -- select changesets by a specific user 52 52 // 53 gc.anchor = GridBagConstraints.NORTHWEST;54 gc.weightx = 0.0;55 gc.fill = GridBagConstraints.HORIZONTAL;56 53 pnl.add(cbUserRestriction, gc); 57 54 cbUserRestriction.addItemListener(stateChangeHandler); 58 59 gc.gridx = 1;60 gc.weightx = 1.0;61 pnl.add(new JMultilineLabel(tr("Select changesets owned by specific users")), gc);62 63 gc.gridy = 1;64 gc.gridx = 1;65 gc.weightx = 1.0;66 55 pnl.add(pnlUserRestriction, gc); 67 56 68 57 // -- restricting the query to open and closed changesets 69 58 // 70 gc.gridy = 2;71 gc.gridx = 0;72 gc.anchor = GridBagConstraints.NORTHWEST;73 gc.weightx = 0.0;74 gc.fill = GridBagConstraints.HORIZONTAL;75 59 pnl.add(cbOpenAndCloseRestrictions, gc); 76 60 cbOpenAndCloseRestrictions.addItemListener(stateChangeHandler); 77 78 gc.gridx = 1;79 gc.weightx = 1.0;80 pnl.add(new JMultilineLabel(tr("Select changesets depending on whether they are open or closed")), gc);81 82 gc.gridy = 3;83 gc.gridx = 1;84 gc.weightx = 1.0;85 61 pnl.add(pnlOpenAndCloseRestriction, gc); 86 62 87 63 // -- restricting the query to a specific time 88 64 // 89 gc.gridy = 4;90 gc.gridx = 0;91 gc.anchor = GridBagConstraints.NORTHWEST;92 gc.weightx = 0.0;93 gc.fill = GridBagConstraints.HORIZONTAL;94 65 pnl.add(cbTimeRestrictions, gc); 95 66 cbTimeRestrictions.addItemListener(stateChangeHandler); 96 97 gc.gridx = 1;98 gc.weightx = 1.0;99 pnl.add(new JMultilineLabel(tr("Select changesets based on the date/time they have been created or closed")), gc);100 101 gc.gridy = 5;102 gc.gridx = 1;103 gc.weightx = 1.0;104 67 pnl.add(pnlTimeRestriction, gc); 105 68 … … 107 70 // -- restricting the query to a specific bounding box 108 71 // 109 gc.gridy = 6;110 gc.gridx = 0;111 gc.anchor = GridBagConstraints.NORTHWEST;112 gc.weightx = 0.0;113 gc.fill = GridBagConstraints.HORIZONTAL;114 72 pnl.add(cbBoundingBoxRestriction, gc); 115 73 cbBoundingBoxRestriction.addItemListener(stateChangeHandler); 116 117 gc.gridx = 1;118 gc.weightx = 1.0;119 pnl.add(new JMultilineLabel(tr("Select only changesets related to a specific bounding box")), gc);120 121 gc.gridy = 7;122 gc.gridx = 1;123 gc.weightx = 1.0;124 74 pnl.add(pnlBoundingBoxRestriction, gc); 125 75 126 127 gc.gridy = 8;128 gc.gridx = 0;129 gc.gridwidth = 2;130 gc.fill = GridBagConstraints.BOTH;131 gc.weightx = 1.0;132 gc.weighty = 1.0;133 76 pnl.add(new JPanel(), gc); 134 77 … … 231 174 class RestrictionGroupStateChangeHandler implements ItemListener { 232 175 protected void userRestrictionStateChanged() { 233 if (pnlUserRestriction == null)234 return;235 176 pnlUserRestriction.setVisible(cbUserRestriction.isSelected()); 236 177 } 237 178 238 179 protected void openCloseRestrictionStateChanged() { 239 if (pnlOpenAndCloseRestriction == null)240 return;241 180 pnlOpenAndCloseRestriction.setVisible(cbOpenAndCloseRestrictions.isSelected()); 242 181 } 243 182 244 183 protected void timeRestrictionsStateChanged() { 245 if (pnlTimeRestriction == null)246 return;247 184 pnlTimeRestriction.setVisible(cbTimeRestrictions.isSelected()); 248 185 } 249 186 250 187 protected void boundingBoxRestrictionChanged() { 251 if (pnlBoundingBoxRestriction == null)252 return;253 188 pnlBoundingBoxRestriction.setVisible(cbBoundingBoxRestriction.isSelected()); 254 189 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/BasicChangesetQueryPanel.java
r14214 r16075 10 10 import java.awt.event.ItemEvent; 11 11 import java.awt.event.ItemListener; 12 import java.awt.event.MouseAdapter;13 import java.awt.event.MouseEvent;14 12 import java.util.EnumMap; 15 13 import java.util.Map; … … 26 24 import org.openstreetmap.josm.gui.MapView; 27 25 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 28 import org.openstreetmap.josm.gui.widgets.JMultilineLabel;29 26 import org.openstreetmap.josm.io.ChangesetQuery; 30 27 import org.openstreetmap.josm.spi.preferences.Config; 28 import org.openstreetmap.josm.tools.GBC; 31 29 import org.openstreetmap.josm.tools.Logging; 32 30 … … 47 45 48 46 private transient Map<BasicQuery, JRadioButton> rbQueries; 49 private transient Map<BasicQuery, JMultilineLabel> lblQueries;50 47 private JCheckBox cbMyChangesetsOnly; 51 48 … … 55 52 ButtonGroup bgQueries = new ButtonGroup(); 56 53 rbQueries = new EnumMap<>(BasicQuery.class); 57 lblQueries = new EnumMap<>(BasicQuery.class);58 54 SelectQueryHandler selectedQueryHandler = new SelectQueryHandler(); 59 55 for (BasicQuery q: BasicQuery.values()) { … … 62 58 rbQueries.put(q, rb); 63 59 bgQueries.add(rb); 64 JMultilineLabel lbl = new JMultilineLabel(""); 65 lbl.addMouseListener(new MouseAdapter() { 66 @Override 67 public void mouseClicked(MouseEvent e) { 68 if (rb.isEnabled()) { 69 rb.setSelected(true); 70 } 71 } 72 }); 73 lblQueries.put(q, lbl); 74 } 75 76 GridBagConstraints gc = new GridBagConstraints(); 60 } 61 62 GridBagConstraints gc = GBC.eop().fill(GridBagConstraints.HORIZONTAL); 77 63 // -- most recent changes 78 gc.fill = GridBagConstraints.NONE;79 gc.anchor = GridBagConstraints.NORTHWEST;80 gc.insets = new Insets(0, 0, 5, 3);81 64 pnl.add(rbQueries.get(BasicQuery.MOST_RECENT_CHANGESETS), gc); 82 65 83 gc.gridx = 1;84 gc.fill = GridBagConstraints.HORIZONTAL;85 gc.weightx = 1.0;86 pnl.add(lblQueries.get(BasicQuery.MOST_RECENT_CHANGESETS), gc);87 88 66 // -- most recent changes 89 gc.gridx = 0;90 gc.gridy = 1;91 gc.fill = GridBagConstraints.NONE;92 gc.weightx = 0.0;93 67 pnl.add(rbQueries.get(BasicQuery.MY_OPEN_CHANGESETS), gc); 94 68 95 gc.gridx = 1;96 gc.fill = GridBagConstraints.HORIZONTAL;97 gc.weightx = 1.0;98 pnl.add(lblQueries.get(BasicQuery.MY_OPEN_CHANGESETS), gc);99 100 69 // -- changesets in map view 101 gc.gridx = 0;102 gc.gridy = 2;103 gc.fill = GridBagConstraints.NONE;104 gc.weightx = 0.0;105 70 pnl.add(rbQueries.get(BasicQuery.CHANGESETS_IN_MAP_VIEW), gc); 106 71 107 gc.gridx = 1;108 gc.fill = GridBagConstraints.HORIZONTAL;109 gc.weightx = 1.0;110 pnl.add(lblQueries.get(BasicQuery.CHANGESETS_IN_MAP_VIEW), gc);111 112 72 // -- checkbox my changesets only 113 gc.gridx = 0;114 gc.gridy = 3;115 73 gc.gridwidth = 2; 116 74 gc.insets = new Insets(5, 0, 3, 3); 117 gc.fill = GridBagConstraints.HORIZONTAL;118 gc.weightx = 1.0;119 75 cbMyChangesetsOnly = new JCheckBox(tr("Download my changesets only")); 120 76 pnl.add(cbMyChangesetsOnly, gc); … … 123 79 124 80 // grab remaining space 125 gc.gridx = 0; 126 gc.gridy = 4; 127 gc.gridwidth = 2; 128 gc.insets = new Insets(5, 0, 3, 3); 129 gc.fill = GridBagConstraints.BOTH; 130 gc.weightx = 1.0; 131 gc.weighty = 1.0; 132 pnl.add(new JPanel(), gc); 81 pnl.add(new JPanel(), GBC.eol().insets(5, 0, 3, 3).fill()); 133 82 134 83 return pnl; … … 163 112 */ 164 113 public void init() { 165 J MultilineLabellbl =lblQueries.get(BasicQuery.MOST_RECENT_CHANGESETS);114 JRadioButton lbl = rbQueries.get(BasicQuery.MOST_RECENT_CHANGESETS); 166 115 lbl.setText(tr("<html>Download the latest changesets</html>")); 167 116 168 117 // query for open changesets only possible if we have a current user which is at least 169 118 // partially identified 170 lbl = lblQueries.get(BasicQuery.MY_OPEN_CHANGESETS);119 lbl = rbQueries.get(BasicQuery.MY_OPEN_CHANGESETS); 171 120 if (UserIdentityManager.getInstance().isAnonymous()) { 172 121 rbQueries.get(BasicQuery.MY_OPEN_CHANGESETS).setEnabled(false); … … 179 128 180 129 // query for changesets in the current map view only if there *is* a current map view 181 lbl = lblQueries.get(BasicQuery.CHANGESETS_IN_MAP_VIEW);130 lbl = rbQueries.get(BasicQuery.CHANGESETS_IN_MAP_VIEW); 182 131 if (!MainApplication.isDisplayingMapView()) { 183 132 rbQueries.get(BasicQuery.CHANGESETS_IN_MAP_VIEW).setEnabled(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryDialog.java
r15714 r16075 154 154 WindowGeometry.centerInWindow( 155 155 getParent(), 156 new Dimension( 400, 400)156 new Dimension(600, 400) 157 157 ) 158 158 ).applySafe(this); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/OpenAndCloseStateRestrictionPanel.java
r12846 r16075 13 13 import javax.swing.JRadioButton; 14 14 15 import org.openstreetmap.josm.gui.widgets.JMultilineLabel;16 15 import org.openstreetmap.josm.io.ChangesetQuery; 17 16 import org.openstreetmap.josm.spi.preferences.Config; 17 import org.openstreetmap.josm.tools.GBC; 18 18 19 19 /** … … 27 27 private static final String PREF_QUERY_TYPE = PREF_ROOT + ".query-type"; 28 28 29 private final JRadioButton rbOpenOnly = new JRadioButton(); 30 private final JRadioButton rbClosedOnly = new JRadioButton(); 31 private final JRadioButton rbBoth = new JRadioButton(); 29 private final JRadioButton rbOpenOnly = new JRadioButton(tr("Query open changesets only")); 30 private final JRadioButton rbClosedOnly = new JRadioButton(tr("Query closed changesets only")); 31 private final JRadioButton rbBoth = new JRadioButton(tr("Query both open and closed changesets")); 32 32 33 33 /** … … 47 47 ) 48 48 )); 49 GridBagConstraints gc = new GridBagConstraints(); 50 gc.anchor = GridBagConstraints.NORTHWEST; 51 gc.fill = GridBagConstraints.HORIZONTAL; 52 gc.weightx = 0.0; 49 GridBagConstraints gc = GBC.eol().fill(GridBagConstraints.HORIZONTAL); 53 50 add(rbOpenOnly, gc); 54 55 gc.gridx = 1;56 gc.weightx = 1.0;57 add(new JMultilineLabel(tr("Query open changesets only")), gc);58 59 gc.gridy = 1;60 gc.gridx = 0;61 gc.weightx = 0.0;62 51 add(rbClosedOnly, gc); 63 64 gc.gridx = 1;65 gc.weightx = 1.0;66 add(new JMultilineLabel(tr("Query closed changesets only")), gc);67 68 gc.gridy = 2;69 gc.gridx = 0;70 gc.weightx = 0.0;71 52 add(rbBoth, gc); 72 73 gc.gridx = 1;74 gc.weightx = 1.0;75 add(new JMultilineLabel(tr("Query both open and closed changesets")), gc);76 53 77 54 ButtonGroup bgRestrictions = new ButtonGroup(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/TimeRestrictionPanel.java
r12846 r16075 24 24 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 25 25 import org.openstreetmap.josm.gui.help.HelpUtil; 26 import org.openstreetmap.josm.gui.widgets.JMultilineLabel;27 26 import org.openstreetmap.josm.gui.widgets.JosmTextField; 28 27 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 29 28 import org.openstreetmap.josm.io.ChangesetQuery; 30 29 import org.openstreetmap.josm.spi.preferences.Config; 30 import org.openstreetmap.josm.tools.GBC; 31 31 32 32 /** … … 36 36 public class TimeRestrictionPanel extends JPanel implements RestrictionPanel { 37 37 38 private final JRadioButton rbClosedAfter = new JRadioButton(); 39 private final JRadioButton rbClosedAfterAndCreatedBefore = new JRadioButton(); 38 private final JRadioButton rbClosedAfter = new JRadioButton( 39 tr("Only changesets closed after the following date/time")); 40 private final JRadioButton rbClosedAfterAndCreatedBefore = new JRadioButton( 41 tr("Only changesets closed after and created before a specific date/time")); 40 42 private final JosmTextField tfClosedAfterDate1 = new JosmTextField(); 41 43 private transient DateValidator valClosedAfterDate1; … … 163 165 // -- changesets closed after a specific date/time 164 166 // 165 GridBagConstraints gc = new GridBagConstraints(); 166 gc.anchor = GridBagConstraints.NORTHWEST; 167 gc.gridx = 0; 168 gc.fill = GridBagConstraints.HORIZONTAL; 169 gc.weightx = 0.0; 167 GridBagConstraints gc = GBC.eol().fill(GridBagConstraints.HORIZONTAL); 170 168 add(rbClosedAfter, gc); 171 172 gc.gridx = 1;173 gc.fill = GridBagConstraints.HORIZONTAL;174 gc.weightx = 1.0;175 add(new JMultilineLabel(tr("Only changesets closed after the following date/time")), gc);176 177 gc.gridx = 1;178 gc.gridy = 1;179 gc.fill = GridBagConstraints.HORIZONTAL;180 gc.weightx = 1.0;181 169 add(buildClosedAfterInputPanel(), gc); 182 170 183 171 // -- changesets closed after a specific date/time and created before a specific date time 184 172 // 185 gc = new GridBagConstraints();186 gc.anchor = GridBagConstraints.NORTHWEST;187 gc.gridy = 2;188 gc.gridx = 0;189 gc.fill = GridBagConstraints.HORIZONTAL;190 gc.weightx = 0.0;191 173 add(rbClosedAfterAndCreatedBefore, gc); 192 193 gc.gridx = 1;194 gc.fill = GridBagConstraints.HORIZONTAL;195 gc.weightx = 1.0;196 add(new JMultilineLabel(tr("Only changesets closed after and created before a specific date/time")), gc);197 198 gc.gridx = 1;199 gc.gridy = 3;200 gc.fill = GridBagConstraints.HORIZONTAL;201 gc.weightx = 1.0;202 174 add(buildClosedAfterAndCreatedBeforeInputPanel(), gc); 203 175 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/UserRestrictionPanel.java
r12846 r16075 7 7 import java.awt.GridBagConstraints; 8 8 import java.awt.GridBagLayout; 9 import java.awt.Insets;10 9 import java.awt.event.ItemEvent; 11 10 import java.awt.event.ItemListener; … … 22 21 import org.openstreetmap.josm.gui.help.HelpUtil; 23 22 import org.openstreetmap.josm.gui.preferences.server.UserNameValidator; 24 import org.openstreetmap.josm.gui.widgets.JMultilineLabel;25 23 import org.openstreetmap.josm.gui.widgets.JosmTextField; 26 24 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; … … 28 26 import org.openstreetmap.josm.spi.preferences.Config; 29 27 import org.openstreetmap.josm.tools.CheckParameterUtil; 28 import org.openstreetmap.josm.tools.GBC; 30 29 31 30 /** … … 38 37 39 38 private final ButtonGroup bgUserRestrictions = new ButtonGroup(); 40 private final JRadioButton rbRestrictToMyself = new JRadioButton(); 41 private final JRadioButton rbRestrictToUid = new JRadioButton(); 42 private final JRadioButton rbRestrictToUserName = new JRadioButton(); 39 private final JRadioButton rbRestrictToMyself = new JRadioButton(); // text is set in #startUserInput 40 private final JRadioButton rbRestrictToUid = new JRadioButton(tr("Only changesets owned by the user with the following user ID")); 41 private final JRadioButton rbRestrictToUserName = new JRadioButton(tr("Only changesets owned by the user with the following user name")); 43 42 private final JosmTextField tfUid = new JosmTextField(10); 44 43 private transient UidInputFieldValidator valUid; 45 44 private final JosmTextField tfUserName = new JosmTextField(10); 46 45 private transient UserNameValidator valUserName; 47 private final JMultilineLabel lblRestrictedToMyself = new JMultilineLabel(tr("Only changesets owned by myself"));48 46 49 47 /** … … 56 54 protected JPanel buildUidInputPanel() { 57 55 JPanel pnl = new JPanel(new GridBagLayout()); 58 GridBagConstraints gc = new GridBagConstraints(); 59 gc.fill = GridBagConstraints.HORIZONTAL; 60 gc.weightx = 0.0; 61 gc.insets = new Insets(0, 0, 0, 3); 62 pnl.add(new JLabel(tr("User ID:")), gc); 63 64 gc.gridx = 1; 65 pnl.add(tfUid, gc); 56 pnl.add(new JLabel(tr("User ID:")), GBC.std()); 57 58 pnl.add(tfUid, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 66 59 SelectAllOnFocusGainedDecorator.decorate(tfUid); 67 60 valUid = UidInputFieldValidator.decorate(tfUid); 68 61 69 // grab remaining space70 gc.gridx = 2;71 gc.weightx = 1.0;72 pnl.add(new JPanel(), gc);73 62 return pnl; 74 63 } … … 76 65 protected JPanel buildUserNameInputPanel() { 77 66 JPanel pnl = new JPanel(new GridBagLayout()); 78 GridBagConstraints gc = new GridBagConstraints(); 79 gc.fill = GridBagConstraints.HORIZONTAL; 80 gc.weightx = 0.0; 81 gc.insets = new Insets(0, 0, 0, 3); 82 pnl.add(new JLabel(tr("User name:")), gc); 83 84 gc.gridx = 1; 85 pnl.add(tfUserName, gc); 67 pnl.add(new JLabel(tr("User name:")), GBC.std()); 68 69 pnl.add(tfUserName, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 86 70 SelectAllOnFocusGainedDecorator.decorate(tfUserName); 87 71 valUserName = new UserNameValidator(tfUserName); 88 72 89 // grab remaining space90 gc.gridx = 2;91 gc.weightx = 1.0;92 pnl.add(new JPanel(), gc);93 73 return pnl; 94 74 } … … 105 85 106 86 ItemListener userRestrictionChangeHandler = new UserRestrictionChangedHandler(); 107 GridBagConstraints gc = new GridBagConstraints(); 108 gc.anchor = GridBagConstraints.NORTHWEST; 109 gc.gridx = 0; 110 gc.fill = GridBagConstraints.HORIZONTAL; 111 gc.weightx = 0.0; 87 GridBagConstraints gc = GBC.eol().fill(GridBagConstraints.HORIZONTAL); 88 112 89 add(rbRestrictToMyself, gc); 113 90 rbRestrictToMyself.addItemListener(userRestrictionChangeHandler); 114 91 115 gc.gridx = 1;116 gc.fill = GridBagConstraints.HORIZONTAL;117 gc.weightx = 1.0;118 add(lblRestrictedToMyself, gc);119 120 gc.gridx = 0;121 gc.gridy = 1;122 gc.fill = GridBagConstraints.HORIZONTAL;123 gc.weightx = 0.0;124 92 add(rbRestrictToUid, gc); 125 93 rbRestrictToUid.addItemListener(userRestrictionChangeHandler); 126 127 gc.gridx = 1;128 gc.fill = GridBagConstraints.HORIZONTAL;129 gc.weightx = 1.0;130 add(new JMultilineLabel(tr("Only changesets owned by the user with the following user ID")), gc);131 132 gc.gridx = 1;133 gc.gridy = 2;134 gc.fill = GridBagConstraints.HORIZONTAL;135 gc.weightx = 1.0;136 94 add(buildUidInputPanel(), gc); 137 95 138 gc.gridx = 0;139 gc.gridy = 3;140 gc.fill = GridBagConstraints.HORIZONTAL;141 gc.weightx = 0.0;142 96 add(rbRestrictToUserName, gc); 143 97 rbRestrictToUserName.addItemListener(userRestrictionChangeHandler); 144 98 145 gc.gridx = 1;146 gc.fill = GridBagConstraints.HORIZONTAL;147 gc.weightx = 1.0;148 add(new JMultilineLabel(tr("Only changesets owned by the user with the following user name")), gc);149 150 gc.gridx = 1;151 gc.gridy = 4;152 gc.fill = GridBagConstraints.HORIZONTAL;153 gc.weightx = 1.0;154 99 add(buildUserNameInputPanel(), gc); 155 100 … … 164 109 public void startUserInput() { 165 110 if (UserIdentityManager.getInstance().isAnonymous()) { 166 lblRestrictedToMyself.setText(tr("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)"));111 rbRestrictToMyself.setText(tr("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)")); 167 112 rbRestrictToMyself.setEnabled(false); 168 113 if (rbRestrictToMyself.isSelected()) { … … 170 115 } 171 116 } else { 172 lblRestrictedToMyself.setText(tr("Only changesets owned by myself"));117 rbRestrictToMyself.setText(tr("Only changesets owned by myself")); 173 118 rbRestrictToMyself.setEnabled(true); 174 119 rbRestrictToMyself.setSelected(true);
Note:
See TracChangeset
for help on using the changeset viewer.