* @author Hannu Niemistö
*/
public class SCLConsole extends AbstractCommandConsole {
+
+ /**
+ * Use this option mask to exclude {@link SCLConsoleListener}s contributed as
+ * OSGi services from listening to this console.
+ */
+ public static final int EXCLUDE_CONTRIBUTED_LISTENERS = 1 << 10;
+
public static final String JOB_NAME = "org.simantics.scl.console.job";
public static final long TERMINATE_GRACE_PERIOD = 1000L;
public SCLConsole(Composite parent, int style, int options) {
super(parent, style, options);
createContentProposalAdapter();
- addContributedListeners();
+ if (!hasOption(EXCLUDE_CONTRIBUTED_LISTENERS))
+ addContributedListeners();
}
protected void createContentProposalAdapter() {