public void Add () { var project = (DotNetProject) CurrentNode.GetParentDataItem (typeof(DotNetProject), true); var dlg = new SelectFileDialog (GettextCatalog.GetString ("Select Native Library"), Gtk.FileChooserAction.Open); dlg.SelectMultiple = true; dlg.AddAllFilesFilter (); //FIXME: add more filters, amke correct for platform dlg.AddFilter (GettextCatalog.GetString ("Static Library"), ".a"); if (!dlg.Run ()) return; foreach (var file in dlg.SelectedFiles) { var item = new NativeReference (file); project.Items.Add (item); } IdeApp.ProjectOperations.Save (project); }
public NativeReferenceDescriptor (NativeReference nr) { this.nr = nr; }