2 * Copyright 2015 Gustavo Martin Morcuende
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using MonoDevelop.Projects;
21 namespace MonoDevelop.HelloWorld
23 public partial class ShowFilesDialog : Gtk.Dialog
25 readonly Project project;
27 public ShowFilesDialog (Project project)
29 this.project = project;
33 protected void OnButtonShowFilesClickEvent (object sender, EventArgs e)
35 var fileNames = new StringBuilder ();
36 fileNames.Append ("Project name: " + project.Name);
37 fileNames.Append (Environment.NewLine);
38 // IT DOESN'T FIND ALL REFERENCES IN PROJECT!!! WHAT CAN I DO??? :(
39 project.GetItemFiles (true).ForEach (file =>
41 fileNames.Append (file.FullPath);
42 fileNames.Append (Environment.NewLine);
45 this.ShowFilesTextView.Buffer.Text = fileNames.ToString ();