Changeset 3232 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2010-05-11T09:25:21+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r3098 r3232 11 11 import java.net.Authenticator; 12 12 import java.net.ProxySelector; 13 import java.security.AllPermission; 14 import java.security.CodeSource; 15 import java.security.PermissionCollection; 16 import java.security.Permissions; 17 import java.security.Policy; 13 18 import java.util.Collection; 14 19 import java.util.HashMap; … … 130 135 I18n.init(); 131 136 137 Policy.setPolicy(new Policy() { 138 // Permissions for plug-ins loaded when josm is started via webstart 139 private PermissionCollection pc; 140 141 { 142 pc = new Permissions(); 143 pc.add(new AllPermission()); 144 } 145 146 @Override 147 public void refresh() { } 148 149 @Override 150 public PermissionCollection getPermissions(CodeSource codesource) { 151 return pc; 152 } 153 }); 154 132 155 Thread.setDefaultUncaughtExceptionHandler(new BugReportExceptionHandler()); 133 156 // http://stuffthathappens.com/blog/2007/10/15/one-more-note-on-uncaught-exception-handlers/
Note:
See TracChangeset
for help on using the changeset viewer.