Bug 88451

Summary: [Navigator] [EditorMgmt] Link with Editor does not work properly with editors not using [I]FileEditorInput
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Francis Upton IV <francisu>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 87288    
Bug Blocks:    

Description Nick Edgar CLA 2005-03-18 08:46:20 EST
build I20050315

There is a limitation in how the mappings from IFile to an existing open editor
is done (used for Link With Editor in the Navigator).
Previously it was doing:
  page.findEditor(new FileEditorInput(file))
Now, in addition to this, it iterates over the editors checking whether:
  file.equals(ResourceUtil.getFile(editor.getEditorInput());

However, in order to avoid forcing materialization of editors restored from the
previous session, it skips those that haven't been materialized.

So for IFile-based editors not using [I]FileEditorInput, editor linking will not
work properly for unmaterialized editors.
I don't see a better approach to this at this time.

See bug 87288 for more background.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:14:49 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.