Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-07-25 10:30:13 +0000
committerDani Megert2013-07-25 10:30:13 +0000
commitb7cf4a3570e9434b011024ad60742138c39ad6be (patch)
treea87fe383e95cecf9b44c418a96cd891c803a7ccb
parenta16b4fcfc9b70ad415eed9abf1f63e88d206af0f (diff)
downloadeclipse.platform.text-b7cf4a3570e9434b011024ad60742138c39ad6be.tar.gz
eclipse.platform.text-b7cf4a3570e9434b011024ad60742138c39ad6be.tar.xz
eclipse.platform.text-b7cf4a3570e9434b011024ad60742138c39ad6be.zip
Log when Go to Last Edit Location failsI20130730-0800
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java
index 40e4add3e..b0a311746 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLastEditPositionAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,9 @@
*******************************************************************************/
package org.eclipse.ui.texteditor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
@@ -87,6 +90,8 @@ public class GotoLastEditPositionAction extends Action implements IWorkbenchWind
try {
editor= page.openEditor(editPosition.getEditorInput(), editPosition.getEditorId());
} catch (PartInitException ex) {
+ IStatus status= new Status(IStatus.ERROR, TextEditorPlugin.PLUGIN_ID, IStatus.OK, "Go to Last Edit Location failed", ex); //$NON-NLS-1$
+ TextEditorPlugin.getDefault().getLog().log(status);
return;
}

Back to the top