eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

For any XML-File it is not possible to switch IDE tabs with <ctrl-pgdn> command

Open Klaus-I opened this issue 3 months ago • 10 comments

Let's make sure issue is not already fixed in latest builds first.

  • [x] I verified I can reproduce this issue against Version: 2025-09 (4.37.0)

Steps to reproduce

From a fresh installation and clean workspace:

  • open an CPP file1 in IDE
  • open an XML file in IDE
  • open another CPP file2 in IDE

I tried to switch from XML file tab to CPP file2 tab using command

I expected: to switch to CPP file2 tab

But got: switched to to CPP file1 tab ()

Here is some relevant log output

From <workspace>/.metadata/.log

<relevant log output>

Tested under this environment:

  • Ubuntu 24.04.3 LTS and Windows 11 Pro 24H2
  • Eclipse IDE for C/C++ Developers (includes Incubating components)
  • 2025-09 (4.37.0)

Community

  • [ ] I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Klaus-I avatar Sep 11 '25 12:09 Klaus-I

I tried to switch from XML file tab to CPP file2 tab using command control-page-down

I expected: to switch to CPP file2 tab

But got: switched to to CPP file1 tab (control-page-up)

Klaus-I avatar Sep 11 '25 12:09 Klaus-I

For *.md files you get control-page-down if you press control-page-up.

Klaus-I avatar Sep 16 '25 04:09 Klaus-I

  • I can't reproduce, but I don't have CDT installed
  • What are the "Keys" preference page says for Ctrl+PageDown?
  • Does it happen with other files, like *.txt and *.java?

iloveeclipse avatar Sep 16 '25 09:09 iloveeclipse

I can reproduce, but it only happens for certain types of editors and what you have installed will determine such things, so it's likely hard to reproduce with the SDK. I've not had time to try to reproduce purely with the SDK. In the SDK IDE set up by Oomph, an Setup editor will causes the same (similar) problem:

Image

Here Ctrl-PgDn will just toggle between the first two editors.

There's definitely something fishy but I've not pinned it down to something simple and I've not had time to debug a case where I can reproduce it. (Too much to do.)

merks avatar Sep 16 '25 09:09 merks

  • I can't reproduce, but I don't have CDT installed

    • What are the "Keys" preference page says for Ctrl+PageDown?

    • Does it happen with other files, like *.txt and *.java?

"Keys" preference page: Ctrl+PageDown is bound to NextTab | In Dialogs and Windows | Navigate Ctrl+PageUp is bound to PreviousTab | In Dialogs and Windows | Navigate

For *.txt and *.java files Ctrl+PageDown and Ctrl+PageUp is working as expected.

Klaus-I avatar Sep 16 '25 10:09 Klaus-I

Which editors are used for C++ and xml files? Could it be, it is generic editor in both cases?

Another idea: Do you have webtools installed, and is xml editor a multipage editor? Could it be, the problem appears for any combination of any multipage editor with any other editor? I assume setup editor is also multipage editor.

iloveeclipse avatar Sep 16 '25 10:09 iloveeclipse

I had the multi-page editor theory too, but many PDE editors are like that and none of them have this problem. (The Ecore Sample Editor also has this problem, like the Oomph Setup editor.)

merks avatar Sep 16 '25 10:09 merks

Does oompf setup editor make use of generic editor in one page? I believe SDK own multipage editors mostly don't use it because there were created before generic editor invention.

iloveeclipse avatar Sep 16 '25 10:09 iloveeclipse

No. But many PDE editors have a source tab with some type of source editor in there, which don't cause problems...

merks avatar Sep 16 '25 11:09 merks

yes, I have web tools installed (in Windows and in Ubuntu installation): Eclipse XML Editors and Tools 3.39.0.v202508302230 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform

Klaus-I avatar Sep 16 '25 11:09 Klaus-I