]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsole.java
Made SCL Console font configurable through preferences
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / console / SCLConsole.java
index dcb56cc3a72d7d29354efd6544fc11af7ff8dcd0..9207bef3946529c51e587907540faa91e146b453 100644 (file)
@@ -33,6 +33,13 @@ import gnu.trove.set.hash.THashSet;
  * @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;
        
@@ -66,7 +73,8 @@ public class SCLConsole extends AbstractCommandConsole {
     public SCLConsole(Composite parent, int style, int options) {
         super(parent, style, options);
         createContentProposalAdapter();
-        addContributedListeners();
+        if (!hasOption(EXCLUDE_CONTRIBUTED_LISTENERS))
+            addContributedListeners();
     }
 
     protected void createContentProposalAdapter() {