import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
-import java.security.AllPermission;
-import java.security.CodeSource;
-import java.security.PermissionCollection;
-import java.security.Permissions;
-import java.security.Policy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
return Jalview.getInstance() != null && Jalview.getInstance().QUIET;
}
- static
- {
- if (!Platform.isJS())
- /**
- * Java only
- *
- * @j2sIgnore
- */
- {
- // grab all the rights we can for the JVM
- Policy.setPolicy(new Policy()
- {
- @Override
- public PermissionCollection getPermissions(CodeSource codesource)
- {
- Permissions perms = new Permissions();
- perms.add(new AllPermission());
- return (perms);
- }
-
- @Override
- public void refresh()
- {
- }
- });
- }
- }
-
/**
* keep track of feature fetching tasks.
*
*/
void doMain(String[] args)
{
- if (!Platform.isJS())
- {
- System.setSecurityManager(null);
- }
-
if (args == null || args.length == 0 || (args.length == 1
&& (args[0] == null || args[0].length() == 0)))
{