| package org.eclipse.e4.javascript; |
| |
| import java.util.Map; |
| import org.mozilla.javascript.ContextAction; |
| import org.mozilla.javascript.Scriptable; |
| import org.osgi.framework.Version; |
| |
| public interface JSBundle { |
| |
| public static final int UNINSTALLED = 1; |
| public static final int INSTALLED = 2; |
| public static final int RESOLVED = 4; |
| public static final int STARTING = 8; |
| public static final int STOPPING = 16; |
| public static final int ACTIVE = 32; |
| |
| public String getSymbolicName(); |
| |
| public Version getVersion(); |
| |
| public int getBundleId(); |
| |
| public String getLocation(); |
| |
| public Map getHeaders(); |
| |
| public int getState(); |
| |
| public void uninstall(); |
| |
| public void start(); |
| |
| public void stop(); |
| |
| public Object lookup(String name); |
| |
| public Scriptable getScope(); |
| |
| public Object call(ContextAction action); |
| } |