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=59e4f0d9447e3c764c83e7edabfcbf5c3c24a97b;hp=69430ed90d64bedbc63f0f8bd10d7ecc08235591;hpb=2198fbadd2105c47ff4cd65d434616ae329802a1;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