Changeset 6883 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2014-02-25T01:31:24+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/auth/AbstractCredentialsAgent.java
r6087 r6883 10 10 import org.openstreetmap.josm.gui.util.GuiHelper; 11 11 12 abstract publicclass AbstractCredentialsAgent implements CredentialsAgent {12 public abstract class AbstractCredentialsAgent implements CredentialsAgent { 13 13 14 14 protected Map<RequestorType, PasswordAuthentication> memoryCredentialsCache = new HashMap<RequestorType, PasswordAuthentication>(); -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsManager.java
r6349 r6883 27 27 * @return the single credential agent used in JOSM 28 28 */ 29 static public CredentialsManager getInstance() {29 public static CredentialsManager getInstance() { 30 30 if (instance == null) { 31 31 CredentialsAgent delegate; -
trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java
r6643 r6883 8 8 import org.openstreetmap.josm.gui.layer.WMSLayer; 9 9 10 abstract publicclass Grabber implements Runnable {10 public abstract class Grabber implements Runnable { 11 11 protected final MapView mv; 12 12 protected final WMSLayer layer; … … 27 27 return layer.getBaseImageWidth(); 28 28 } 29 29 30 int height(){ 30 31 return layer.getBaseImageHeight(); … … 81 82 } 82 83 83 abstract publicboolean loadFromCache(WMSRequest request);84 public abstract boolean loadFromCache(WMSRequest request); 84 85 85 86 public void cancel() { 86 87 canceled = true; 87 88 } 88 89 89 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r6869 r6883 93 93 * @return the message 94 94 */ 95 abstract publicString getPermissionMessage();95 public abstract String getPermissionMessage(); 96 96 97 97 /** … … 105 105 * @return the preference name and error message or null 106 106 */ 107 abstract publicPermissionPrefWithDefault getPermissionPref();108 109 abstract publicString[] getMandatoryParams();107 public abstract PermissionPrefWithDefault getPermissionPref(); 108 109 public abstract String[] getMandatoryParams(); 110 110 111 111 public String[] getOptionalParams() { … … 137 137 * @throws RequestHandlerForbiddenException 138 138 */ 139 final public void checkPermission() throws RequestHandlerForbiddenException 140 { 139 public final void checkPermission() throws RequestHandlerForbiddenException { 141 140 /* 142 141 * If the subclass defines a specific preference and if this is set … … 147 146 */ 148 147 PermissionPrefWithDefault permissionPref = getPermissionPref(); 149 if((permissionPref != null) && (permissionPref.pref != null)) 150 { 148 if (permissionPref != null && permissionPref.pref != null) { 151 149 if (!Main.pref.getBoolean(permissionPref.pref, permissionPref.defaultVal)) { 152 150 String err = MessageFormat.format("RemoteControl: ''{0}'' forbidden by preferences", myCommand);
Note:
See TracChangeset
for help on using the changeset viewer.