1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2015-04-15 14:30:50 -07:00
parent 3f8305fc0f
commit 100054d69a

View file

@ -11,7 +11,6 @@
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.ui.util; package org.eclipse.cdt.internal.ui.util;
import java.net.URI; import java.net.URI;
import org.eclipse.core.filesystem.EFS; import org.eclipse.core.filesystem.EFS;
@ -29,18 +28,16 @@ import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.ui.editor.ITranslationUnitEditorInput; import org.eclipse.cdt.internal.ui.editor.ITranslationUnitEditorInput;
/** /**
* An EditorInput for an external (non-workspace) file. * An EditorInput for an external (non-workspace) file.
*/ */
public final class ExternalEditorInput extends FileStoreEditorInput implements ITranslationUnitEditorInput { public final class ExternalEditorInput extends FileStoreEditorInput implements ITranslationUnitEditorInput {
private final IPath location; private final IPath location;
private final IResource markerResource; private final IResource markerResource;
private ITranslationUnit unit; 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 * @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 * @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 location the file system location
* @param markerResource the associated marker resource, may be <code>null</code> * @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 * @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 locationURI the location URI
* @param markerResource the associated marker resource, may be <code>null</code> * @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; return null;
} }
/*
* @see org.eclipse.cdt.internal.ui.editor.ITranslationUnitEditorInput#getTranslationUnit()
*/
@Override @Override
public ITranslationUnit getTranslationUnit() { public ITranslationUnit getTranslationUnit() {
return unit; return unit;
} }
/*
* @see org.eclipse.ui.ide.FileStoreEditorInput#getAdapter(java.lang.Class)
*/
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked", "rawtypes" })
@Override @Override
public Object getAdapter(Class adapter) { 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() { public IResource getMarkerResource() {
return markerResource; return markerResource;
} }
/*
* @see org.eclipse.ui.IPersistableElement#getFactoryId()
*/
@Override @Override
public String getFactoryId() { public String getFactoryId() {
if (getPath() != null) { if (getPath() != null) {
@ -137,9 +125,6 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
return super.getFactoryId(); return super.getFactoryId();
} }
/*
* @see org.eclipse.ui.IPersistable#saveState(org.eclipse.ui.IMemento)
*/
@Override @Override
public void saveState(IMemento memento) { public void saveState(IMemento memento) {
if (getPath() != null) { if (getPath() != null) {
@ -156,5 +141,4 @@ public final class ExternalEditorInput extends FileStoreEditorInput implements I
public IPath getPath() { public IPath getPath() {
return location; return location;
} }
} }