5 using MonoDevelop
.Projects
;
6 using MonoDevelop
.Core
.Gui
.Dialogs
;
7 using MonoDevelop
.Components
;
8 using MonoDevelop
.Core
;
12 public class GlobalOptionsPanelPanel
: OptionsPanel
14 GlobalOptionsPanelWidget widget
;
16 public override Widget
CreatePanelWidget ()
18 widget
= new GlobalOptionsPanelWidget();
22 public override void ApplyChanges ()
28 partial class GlobalOptionsPanelWidget
: Gtk
.Bin
30 public GlobalOptionsPanelWidget ()
34 ListStore store
= new ListStore (typeof (string));
35 store
.AppendValues (GettextCatalog
.GetString ("Javac"));
36 store
.AppendValues (GettextCatalog
.GetString ("Gcj"));
37 compilerCombo
.Model
= store
;
38 CellRendererText cr
= new CellRendererText ();
39 compilerCombo
.PackStart (cr
, true);
40 compilerCombo
.AddAttribute (cr
, "text", 0);
41 compilerCombo
.Active
= (int) JavaLanguageBinding
.Properties
.CompilerType
;
43 ikvmPathEntry
.Path
= JavaLanguageBinding
.Properties
.IkvmPath
;
44 compilerPathEntry
.Text
= JavaLanguageBinding
.Properties
.CompilerCommand
;
45 classpathEntry
.Text
= JavaLanguageBinding
.Properties
.Classpath
;
50 JavaLanguageBinding
.Properties
.IkvmPath
= ikvmPathEntry
.Path
;
51 JavaLanguageBinding
.Properties
.CompilerCommand
= compilerPathEntry
.Text
;
52 JavaLanguageBinding
.Properties
.Classpath
= classpathEntry
.Text
;
54 JavaLanguageBinding
.Properties
.CompilerType
= (JavaCompiler
) compilerCombo
.Active
;