Changeset 2765 for trunk/sources
- Timestamp:
- 02/08/10 16:58:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CodeEditor/3.2/CodeEditor.cs
r2762 r2765 160 160 string persistencePath = Path.Combine(Path.GetTempPath(), "HeuristicLab.CodeEditor"); 161 161 if (!Directory.Exists(persistencePath)) 162 Directory.CreateDirectory(persistencePath); 163 File.Create(Path.Combine(persistencePath, "test.tmp")); 162 Directory.CreateDirectory(persistencePath); 163 FileStream fs = File.Create(Path.Combine(persistencePath, "test.tmp")); 164 fs.Close(); 164 165 File.Delete(Path.Combine(persistencePath, "test.tmp")); 166 // if we made it this far, enable on-disk parsing cache 165 167 projectContentRegistry.ActivatePersistence(persistencePath); 166 } catch { } 168 } catch (NotSupportedException) { 169 } catch (IOException) { 170 } catch (System.Security.SecurityException) { 171 } catch (UnauthorizedAccessException) { 172 } catch (ArgumentException) { 173 } 167 174 projectContent = new Dom.DefaultProjectContent(); 168 175 projectContent.Language = Dom.LanguageProperties.CSharp;
Note: See TracChangeset
for help on using the changeset viewer.