Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-04-15 17:30:50 -0400
committerSergey Prigogin2015-04-15 17:34:52 -0400
commit100054d69a069adaae5ca2ee3fb6299b106a6753 (patch)
tree560fee3bbe2249613b7d2d62f672a2ece2535401
parent3f8305fc0fb9e54dca63f4d8d35521789ccc1d68 (diff)
downloadorg.eclipse.cdt-100054d69a069adaae5ca2ee3fb6299b106a6753.tar.gz
org.eclipse.cdt-100054d69a069adaae5ca2ee3fb6299b106a6753.tar.xz
org.eclipse.cdt-100054d69a069adaae5ca2ee3fb6299b106a6753.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java28
1 files changed, 6 insertions, 22 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java
index 4d4c7cbe64e..4a3762be379 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java
@@ -11,7 +11,6 @@
*******************************************************************************/
package org.eclipse.cdt.internal.ui.util;
-
import java.net.URI;
import org.eclipse.core.filesystem.EFS;
@@ -29,18 +28,16 @@ import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.ui.editor.ITranslationUnitEditorInput;
-
/**
* An EditorInput for an external (non-workspace) file.
*/
public final class ExternalEditorInput extends FileStoreEditorInput implements ITranslationUnitEditorInput {
-
private final IPath location;
private final IResource markerResource;
private ITranslationUnit unit;
/**
- * Create an editor input for an external translation unit.
+ * Creates an editor input for an external translation unit.
*
* @param unit the translation unit
*/
@@ -51,7 +48,7 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
}
/**
- * Create an editor input for an external file of the local file system.
+ * Creates an editor input for an external file of the local file system.
*
* @param location the file system location
*/
@@ -60,7 +57,7 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
}
/**
- * Create an editor input for an external file of the local file system.
+ * Creates an editor input for an external file of the local file system.
*
* @param location the file system location
* @param markerResource the associated marker resource, may be <code>null</code>
@@ -70,7 +67,7 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
}
/**
- * Create an editor input for a location URI.
+ * Creates an editor input for a location URI.
*
* @param locationURI the location URI
*/
@@ -79,7 +76,7 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
}
/**
- * Create an editor input for a location URI.
+ * Creates an editor input for a location URI.
*
* @param locationURI the location URI
* @param markerResource the associated marker resource, may be <code>null</code>
@@ -99,17 +96,11 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
return null;
}
- /*
- * @see org.eclipse.cdt.internal.ui.editor.ITranslationUnitEditorInput#getTranslationUnit()
- */
@Override
public ITranslationUnit getTranslationUnit() {
return unit;
}
- /*
- * @see org.eclipse.ui.ide.FileStoreEditorInput#getAdapter(java.lang.Class)
- */
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object getAdapter(Class adapter) {
@@ -120,15 +111,12 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
}
/**
- * Return the resource where markers for this external editor input are stored
+ * Returns the resource where markers for this external editor input are stored
*/
public IResource getMarkerResource() {
return markerResource;
}
- /*
- * @see org.eclipse.ui.IPersistableElement#getFactoryId()
- */
@Override
public String getFactoryId() {
if (getPath() != null) {
@@ -137,9 +125,6 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
return super.getFactoryId();
}
- /*
- * @see org.eclipse.ui.IPersistable#saveState(org.eclipse.ui.IMemento)
- */
@Override
public void saveState(IMemento memento) {
if (getPath() != null) {
@@ -156,5 +141,4 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
public IPath getPath() {
return location;
}
-
}

Back to the top