Commit b12dda08 authored by Kristof Szabados's avatar Kristof Szabados
Browse files


Signed-off-by: Kristof Szabados's avatarKristof Szabados <>
parent f176965e
* Copyright (c) 2000-2020 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
package org.eclipse.titan.debug.actions; package org.eclipse.titan.debug.actions;
import; import;
...@@ -18,6 +25,19 @@ import org.eclipse.titan.designer.parsers.ProjectSourceParser; ...@@ -18,6 +25,19 @@ import org.eclipse.titan.designer.parsers.ProjectSourceParser;
import org.eclipse.ui.IEditorActionDelegate; import org.eclipse.ui.IEditorActionDelegate;
import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IEditorPart;
* This editor action allows us to debug the possible incorrect shifts happening during the update part of incremental parsing.
* This is done by checking for each identifier in the file if its name and the text in the file at the stored location is the same.
* If they are not the same, the identifier is underlined as if being a semantic error.
* This way if the update process goes wrong from some point onward, the incorrect identifier locations will help debug it.
* General usage:
* add a single space somewhere in the beginning of an editor and save the file.
* Invoke the action.
* @author Kristof Szabados
public class Mark_Identifiers implements IEditorActionDelegate { public class Mark_Identifiers implements IEditorActionDelegate {
private TTCN3Editor targetEditor = null; private TTCN3Editor targetEditor = null;
StringBuilder paddingBuffer = new StringBuilder(); StringBuilder paddingBuffer = new StringBuilder();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment