X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2FMainPreferencePage.java;h=b647a0887959db1e042686d227f99d505005afb9;hb=500771048185ce356aed280970f5ff0f4473a146;hp=69430ed90d64bedbc63f0f8bd10d7ecc08235591;hpb=ab52c884bb0eea5de4e3266b9ac168791c5cf67c;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java index 69430ed9..b647a088 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java @@ -2,6 +2,8 @@ package net.mograsim.plugin; import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.FieldEditorPreferencePage; +import org.eclipse.jface.preference.IntegerFieldEditor; +import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; @@ -21,7 +23,10 @@ public class MainPreferencePage extends FieldEditorPreferencePage implements IWo @Override protected void createFieldEditors() { - addField(new BooleanFieldEditor("net.mograsim.logic.model.debug.openhlsshell", "Open the debug HLS shell", getFieldEditorParent())); + Composite parent = getFieldEditorParent(); + addField(new BooleanFieldEditor("net.mograsim.logic.model.debug.openhlsshell", "Open the debug HLS shell", parent)); + addField(new IntegerFieldEditor("net.mograsim.logic.model.debug.hlsshelldepth", + "Depth of components to list in the debug HLS shell", parent)); // TODO add other preferences } } \ No newline at end of file