Subversion Repositories pub

Compare Revisions

Ignore whitespace Rev 64 → Rev 65

/pluggablejs/trunk/src/net/outlyer/plugins/PluginEnvironment.java
65,8 → 65,6
// so the lower the number the better to reduce unexpected side effects
private static int linesToCheckForSupport = 1;
 
static final String EXPORTED_SANDBOX_VARIABLE = "$net.outlyer.runtime.sandbox";
{
exportedObjects = new HashMap();
pluginObject = null;
75,7 → 73,9
// plugin is guaranteed to be a SandboxAccessor, regardless of which
// exact object it ends up mapping to, see enableSandboxAccess()
boilerPlate.append("plugin.sandboxGetter = new java.util.concurrent.Callable(function() {")
.append(" return $net.outlyer.runtime.sandbox; });\n");
.append(" return ")
.append(Internal.getRuntimeObjectName())
.append(".sandbox; });\n");
}
 
////////////////////////////////////////////////////////
220,6 → 220,7
// Non-public interface
////////////////////////////////////////////////////////
 
/**
* Makes a {@link SanboxAccessor}'s field <code>getSandbox</code>
* be evaluable as a <code>Callable&lt;Sandbox&gt;</code>, i.e.,
246,7 → 247,8
 
boilerPlate.append(name).append(".sandboxGetter=new java.util.concurrent.Callable(function() {")
.append(" return ")
.append(EXPORTED_SANDBOX_VARIABLE).append("; });\n");
.append(Internal.getRuntimeObjectName())
.append(".sandbox").append("; });\n");
}
PluginProperties checkForSupport(final URI uri) throws PluginException {