Changeset 56 for java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/editors/configuration/FramclipseReconcilingStrategy.java
- Timestamp:
- 01/25/10 12:55:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/editors/configuration/FramclipseReconcilingStrategy.java
r13 r56 7 7 import java.util.List; 8 8 9 import org.eclipse.core.resources.IMarker; 10 import org.eclipse.core.resources.IResource; 11 import org.eclipse.core.runtime.CoreException; 9 12 import org.eclipse.core.runtime.IPath; 10 13 import org.eclipse.core.runtime.IProgressMonitor; … … 22 25 import org.eclipse.ui.IPathEditorInput; 23 26 import org.eclipse.ui.IURIEditorInput; 27 import org.eclipse.ui.ide.ResourceUtil; 24 28 25 29 import com.framsticks.framclipse.editors.FramclipseEditor; … … 33 37 import com.framsticks.framclipse.internal.parser.FramclipseParser; 34 38 import com.framsticks.framclipse.internal.parser.Node; 39 import com.framsticks.framclipse.internal.parser.ParseException; 40 import com.framsticks.framclipse.internal.parser.TokenMgrError; 35 41 36 42 … … 89 95 viewer.setRedraw(false); 90 96 91 parseDocument(); 97 IResource resource = ResourceUtil.getResource(fEditor.getEditorInput()); 98 resource.deleteMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ZERO); 99 100 try { 101 parseDocument(); 102 } catch (ParseException e) { 103 ErrorHandler<ParseException> handler = new ErrorHandler.ParseErrorHandler(); 104 handler.createMarker(resource, e); 105 } catch (TokenMgrError e) { 106 ErrorHandler<TokenMgrError> handler = new ErrorHandler.TokenErrorHandler(); 107 handler.createMarker(resource, e); 108 } 92 109 fEditor.updateOutlinePage(); 93 110 94 111 collectAndUpdateAnnotations(); 112 } catch (CoreException e) { 113 e.printStackTrace(); 95 114 } 96 115 finally … … 105 124 } 106 125 107 void parseDocument() 126 void parseDocument() throws ParseException 108 127 { 109 128
Note: See TracChangeset
for help on using the changeset viewer.