Changeset 10367 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
- Timestamp:
- 2016-06-12T23:40:12+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r10183 r10367 18 18 import javax.swing.AbstractAction; 19 19 import javax.swing.BorderFactory; 20 import javax.swing.JButton; 20 21 import javax.swing.JCheckBox; 21 22 import javax.swing.JLabel; … … 23 24 24 25 import org.openstreetmap.josm.data.oauth.OAuthToken; 25 import org.openstreetmap.josm.gui.SideButton;26 26 import org.openstreetmap.josm.gui.preferences.server.OAuthAccessTokenHolder; 27 27 import org.openstreetmap.josm.gui.util.GuiHelper; … … 195 195 196 196 JPanel pnl1 = new JPanel(new FlowLayout(FlowLayout.LEFT)); 197 pnl1.add(new SideButton(new RetrieveRequestTokenAction()));197 pnl1.add(new JButton(new RetrieveRequestTokenAction())); 198 198 gc.fill = GridBagConstraints.HORIZONTAL; 199 199 gc.weightx = 1.0; … … 269 269 protected JPanel buildActionPanel() { 270 270 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 271 pnl.add(new SideButton(new BackAction()));272 pnl.add(new SideButton(new RetrieveAccessTokenAction()));271 pnl.add(new JButton(new BackAction())); 272 pnl.add(new JButton(new RetrieveAccessTokenAction())); 273 273 return pnl; 274 274 } … … 292 292 putValue(NAME, tr("Back")); 293 293 putValue(SHORT_DESCRIPTION, tr("Go back to step 1/3")); 294 putValue(SMALL_ICON, ImageProvider.get("dialogs", "previous"));294 new ImageProvider("dialogs", "previous").getResource().getImageIcon(this); 295 295 } 296 296 … … 349 349 protected JPanel buildActionPanel() { 350 350 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 351 pnl.add(new SideButton(new RestartAction()));352 pnl.add(new SideButton(new TestAccessTokenAction()));351 pnl.add(new JButton(new RestartAction())); 352 pnl.add(new JButton(new TestAccessTokenAction())); 353 353 return pnl; 354 354 } … … 368 368 putValue(NAME, tr("Restart")); 369 369 putValue(SHORT_DESCRIPTION, tr("Go back to step 1/3")); 370 putValue(SMALL_ICON, ImageProvider.get("dialogs", "previous"));370 new ImageProvider("dialogs", "previous").getResource().getImageIcon(this); 371 371 } 372 372 … … 389 389 RetrieveRequestTokenAction() { 390 390 putValue(NAME, tr("Retrieve Request Token")); 391 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));391 new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this); 392 392 putValue(SHORT_DESCRIPTION, tr("Click to retrieve a Request Token")); 393 393 } … … 425 425 RetrieveAccessTokenAction() { 426 426 putValue(NAME, tr("Retrieve Access Token")); 427 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));427 new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this); 428 428 putValue(SHORT_DESCRIPTION, tr("Click to retrieve an Access Token")); 429 429 } … … 462 462 TestAccessTokenAction() { 463 463 putValue(NAME, tr("Test Access Token")); 464 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small"));464 new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this); 465 465 putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token")); 466 466 }
Note:
See TracChangeset
for help on using the changeset viewer.