Changeset 4068 for trunk/sources/HeuristicLab.CodeEditor/3.3
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.CodeEditor/3.3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeCompletionData.cs
r2659 r4068 8 8 */ 9 9 10 using System ;10 using System.Collections.Generic; 11 11 using System.IO; 12 using System.Linq; 12 13 using System.Text; 13 14 using System.Xml; 14 using System.Linq;15 16 15 using ICSharpCode.SharpDevelop.Dom; 17 16 using ICSharpCode.SharpDevelop.Dom.CSharp; 18 using ICSharpCode.SharpDevelop.Dom.VBNet;19 17 using ICSharpCode.TextEditor.Gui.CompletionWindow; 20 using System.Collections.Generic;21 18 22 19 namespace HeuristicLab.CodeEditor { … … 158 155 } 159 156 return b.ToString(); 160 } catch (XmlException) { 157 } 158 catch (XmlException) { 161 159 return xmlDoc; 162 160 } -
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeCompletionKeyHandler.cs
r2659 r4068 27 27 28 28 using System; 29 using System.Collections.Generic;30 using System.Drawing;31 using System.Windows.Forms;32 using System.IO;33 using System.Threading;34 29 35 30 using ICSharpCode.TextEditor; 36 using ICSharpCode.TextEditor.Gui;37 31 using ICSharpCode.TextEditor.Gui.CompletionWindow; 38 32 -
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeCompletionProvider.cs
r2659 r4068 29 29 using System.Collections; 30 30 using System.Collections.Generic; 31 using System.Text;32 31 using System.Windows.Forms; 33 32 using ICSharpCode.TextEditor; -
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeEditor.Designer.cs
r2719 r4068 1 using System; 2 namespace HeuristicLab.CodeEditor { 1 namespace HeuristicLab.CodeEditor { 3 2 public partial class CodeEditor : System.Windows.Forms.UserControl { 4 3 /// <summary> -
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeEditor.cs
r2765 r4068 27 27 28 28 using System; 29 using System. Linq;29 using System.CodeDom.Compiler; 30 30 using System.Collections.Generic; 31 using System.Diagnostics; 31 32 using System.Drawing; 33 using System.IO; 34 using System.Reflection; 35 using System.Threading; 32 36 using System.Windows.Forms; 33 using System.IO;34 using System.Threading;35 37 using HeuristicLab.Common.Resources; 36 38 using ICSharpCode.TextEditor; 39 using ICSharpCode.TextEditor.Document; 40 using Dom = ICSharpCode.SharpDevelop.Dom; 37 41 using NRefactory = ICSharpCode.NRefactory; 38 using Dom = ICSharpCode.SharpDevelop.Dom;39 using ICSharpCode.TextEditor.Document;40 using System.CodeDom.Compiler;41 using ICSharpCode.TextEditor;42 using System.Reflection;43 using System.Diagnostics;44 42 45 43 namespace HeuristicLab.CodeEditor { … … 166 164 // if we made it this far, enable on-disk parsing cache 167 165 projectContentRegistry.ActivatePersistence(persistencePath); 168 } catch (NotSupportedException) { 169 } catch (IOException) { 170 } catch (System.Security.SecurityException) { 171 } catch (UnauthorizedAccessException) { 172 } catch (ArgumentException) { 166 } 167 catch (NotSupportedException) { 168 } 169 catch (IOException) { 170 } 171 catch (System.Security.SecurityException) { 172 } 173 catch (UnauthorizedAccessException) { 174 } 175 catch (ArgumentException) { 173 176 } 174 177 projectContent = new Dom.DefaultProjectContent(); … … 347 350 lastCompilationUnit = newCompilationUnit; 348 351 parseInformation.SetCompilationUnit(newCompilationUnit); 349 } catch { } 352 } 353 catch { } 350 354 } 351 355 -
trunk/sources/HeuristicLab.CodeEditor/3.3/CodeViewer.cs
r3742 r4068 20 20 #endregion 21 21 using System; 22 using System.Collections.Generic;23 using System.ComponentModel;24 using System.Data;25 using System.Drawing;26 using System.Linq;27 using System.Text;28 22 using System.Windows.Forms; 29 23 … … 37 31 } 38 32 39 public CodeViewer(string code) : this() { 33 public CodeViewer(string code) 34 : this() { 40 35 textEditorControl1.Text = code; 41 36 } -
trunk/sources/HeuristicLab.CodeEditor/3.3/ErrorBookmark.cs
r3742 r4068 19 19 */ 20 20 #endregion 21 using System;22 using System.Collections.Generic;23 using System.Linq;24 using System.Text;25 21 using System.Drawing; 22 using ICSharpCode.TextEditor; 26 23 using ICSharpCode.TextEditor.Document; 27 using ICSharpCode.TextEditor;28 24 29 25 namespace HeuristicLab.CodeEditor { … … 36 32 } 37 33 38 public override void Draw(IconBarMargin margin, System.Drawing.Graphics g, System.Drawing.Point p) { 34 public override void Draw(IconBarMargin margin, System.Drawing.Graphics g, System.Drawing.Point p) { 39 35 int delta = margin.TextArea.TextView.FontHeight / 4; 40 36 Rectangle rect = new Rectangle( 41 37 2, 42 38 p.Y + delta, -
trunk/sources/HeuristicLab.CodeEditor/3.3/ToolTipProvider.cs
r2659 r4068 26 26 // OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 28 using System;29 28 using System.Text; 30 29 using ICSharpCode.SharpDevelop.Dom; 31 30 using ICSharpCode.SharpDevelop.Dom.CSharp; 32 using ICSharpCode.SharpDevelop.Dom.VBNet;31 using NRefactoryResolver = ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryResolver; 33 32 using TextEditor = ICSharpCode.TextEditor; 34 using NRefactoryResolver = ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryResolver;35 33 36 34 namespace HeuristicLab.CodeEditor { … … 52 50 if (e.InDocument && !e.ToolTipShown) { 53 51 IExpressionFinder expressionFinder; 54 expressionFinder = new CSharpExpressionFinder(codeEditor.parseInformation); 52 expressionFinder = new CSharpExpressionFinder(codeEditor.parseInformation); 55 53 ExpressionResult expression = expressionFinder.FindFullExpression( 56 54 editor.Text,
Note: See TracChangeset
for help on using the changeset viewer.