Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/gcov
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-12-19 05:08:35 +0000
committerAlexander Kurtakov2013-12-19 07:02:53 +0000
commit2e3445bbc767d99e144756350d6ea219a31b2e0c (patch)
treec602a97a5a107848ba852e40cc0eb72151757e24 /gcov
parentcfc67ecd687fe96ff0afd6575ea0bb7702f65423 (diff)
downloadorg.eclipse.linuxtools-2e3445bbc767d99e144756350d6ea219a31b2e0c.tar.gz
org.eclipse.linuxtools-2e3445bbc767d99e144756350d6ea219a31b2e0c.tar.xz
org.eclipse.linuxtools-2e3445bbc767d99e144756350d6ea219a31b2e0c.zip
gcov: Remove AbstractOpenSourceFileAction.
It was not really used but referenced due to constant in it which is now moved to the activator. This allows dropping the messages/translation part, export/import less in the bundle and etc. Change-Id: Ib4548bca9a71c3ccc242333e5ca3ae6047bb4407 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/20033 Tested-by: Hudson CI
Diffstat (limited to 'gcov')
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/view/annotatedsource/OpenSourceFileAction.java4
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.test/src/org/eclipse/linuxtools/internal/gcov/test/GcovTest.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/view/annotatedsource/OpenSourceFileAction.java b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/view/annotatedsource/OpenSourceFileAction.java
index c0056d5450..7ed9590e1f 100644
--- a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/view/annotatedsource/OpenSourceFileAction.java
+++ b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/view/annotatedsource/OpenSourceFileAction.java
@@ -25,7 +25,7 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.linuxtools.binutils.link2source.STLink2SourceSupport;
-import org.eclipse.linuxtools.dataviewers.annotatedsourceeditor.actions.AbstractOpenSourceFileAction;
+import org.eclipse.linuxtools.dataviewers.annotatedsourceeditor.STAnnotatedSourceEditorActivator;
import org.eclipse.linuxtools.internal.gcov.Activator;
import org.eclipse.linuxtools.internal.gcov.parser.SourceFile;
import org.eclipse.ui.IEditorInput;
@@ -105,7 +105,7 @@ public class OpenSourceFileAction {
} else {
IEditorInput input = getInput(sourceFile, fs);
try {
- IEditorPart editor = page.openEditor(input, AbstractOpenSourceFileAction.EDITOR_ID, true);
+ IEditorPart editor = page.openEditor(input, STAnnotatedSourceEditorActivator.EDITOR_ID, true);
if (lineNumber > 0 && editor instanceof ITextEditor) {
IDocumentProvider provider = ((ITextEditor) editor).getDocumentProvider();
IDocument document = provider.getDocument(editor.getEditorInput());
diff --git a/gcov/org.eclipse.linuxtools.gcov.test/src/org/eclipse/linuxtools/internal/gcov/test/GcovTest.java b/gcov/org.eclipse.linuxtools.gcov.test/src/org/eclipse/linuxtools/internal/gcov/test/GcovTest.java
index d202ab1b28..76d022bf5d 100644
--- a/gcov/org.eclipse.linuxtools.gcov.test/src/org/eclipse/linuxtools/internal/gcov/test/GcovTest.java
+++ b/gcov/org.eclipse.linuxtools.gcov.test/src/org/eclipse/linuxtools/internal/gcov/test/GcovTest.java
@@ -1,8 +1,8 @@
package org.eclipse.linuxtools.internal.gcov.test;
+import static org.eclipse.swtbot.swt.finder.finders.ContextMenuHelper.contextMenu;
import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withText;
import static org.eclipse.swtbot.swt.finder.waits.Conditions.waitForShell;
-import static org.eclipse.swtbot.swt.finder.finders.ContextMenuHelper.contextMenu;
import java.io.File;
import java.io.InputStream;
@@ -19,7 +19,7 @@ import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.linuxtools.dataviewers.actions.STExportToCSVAction;
-import org.eclipse.linuxtools.dataviewers.annotatedsourceeditor.actions.AbstractOpenSourceFileAction;
+import org.eclipse.linuxtools.dataviewers.annotatedsourceeditor.STAnnotatedSourceEditorActivator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.MenuItem;
@@ -176,7 +176,7 @@ public abstract class GcovTest {
wbShell.activate();
- SWTBotEditor editor = bot.editorById(AbstractOpenSourceFileAction.EDITOR_ID);
+ SWTBotEditor editor = bot.editorById(STAnnotatedSourceEditorActivator.EDITOR_ID);
SWTBotEclipseEditor edt = editor.toTextEditor(); /* just to verify that the correct file was found */
edt.close();
}

Back to the top