[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] "Open Declaration" causes a twin of the current file to be opened
|
> In one of our customer's sources, she is highlighting a procedure name
and
> selecting "Open Declartion". This causes a new editor to open with the
same
> file in it. Now, there are two editors displaying the same file.
However,
> hovering over the tab shows the original file at location:
>
> UserInterfaceView/blah/blah/blah.c (a linked resource path)
>
> And the second editor shows the location:
>
> M:/network_drive/view/blah/blah/blah.c (the actual location)
>
> Now, add on top of this, if she again selects "Open Declaration", but on
the
> second editor's file, an error occurs:
>
> java.lang.reflect.InvocationTargetException
> at
org.eclipse.jface.operation.ModalContext.run(ModalContext.java:284)
> at
>
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.ja
> va:397)
> at
>
org.eclipse.cdt.internal.ui.search.actions.OpenDeclarationsAction.run(OpenDe
> clarationsAction.java:200)
> .
> .
> .
>
> The place I can find it going bad is:
>
> OpenDeclarationActions.class (CDT 2.0.2) line #153:
>
> IFile resourceFile = fEditor.getInputFile();
>
> This returns null.
>
> Can anyone comment on what is going wrong? Is this yet another
side-effect
> of using linked-resources?
>
> Chad Barnes
> Rockwell Collins Inc.
>
>