-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added dynamic tab alignment support in MultiPageEditorPart #2224
Added dynamic tab alignment support in MultiPageEditorPart #2224
Conversation
Test Results 1 821 files ±0 1 821 suites ±0 1h 50m 26s ⏱️ + 1m 33s For more details on these failures, see this check. Results for commit 2e123d4. ± Comparison against base commit 2521210. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting feature, but ideally it should also give custom multipage editors control whether they want to follow up the tab position or keep some specific tab position independently of the preference, see also coment in code.
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EditorsPreferencePage.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java
Outdated
Show resolved
Hide resolved
Not sure about this. UI consistency is important. If every multipage editor gets to decide on its own, we'll end up with some having the tabs at the top and some at the bottom. Isn't that going to be confusing or at least inconvenient for users? |
I'm thinking about products like ours where the editors tab position is important because we have lot of complicated and nested UI elements, so users "occasionally" changing global preference would see "broken" UI's in the places where nothing was changed for years. |
bc3e9e0
to
bd74e10
Compare
Hi @iloveeclipse, Hi @laeubi , |
bd74e10
to
2aba601
Compare
Ah yes. Forgot that. In that case I think the ordering is ok. And I just realised that the "Automatically close.." checkbox and the next input field belong together. One can see this via the indentation. Maybe we could make this more explicit but putting a box around these two - but that would be a different issue. |
Created #2297 for this. |
I have some doubts: So with the current state the user could set the preference but some individual editor may not consider this. Isn't this strange behaviour from the user's perspective. |
@praveen-skp: Can you pls. rebase an resolve the merge conflicts? |
8c12047
to
70ec47a
Compare
I see:
Where does this come from? |
I see failing test with:
Can you pls. have a look what's the issue there? |
Please consider rebase/merge of my 2 outstanding PRs to use nonnull Argument to get Screenshots
Jörg Kubitz
… Am 14.10.2024 um 07:36 schrieb Matthias Becker ***@***.***>:
@jukzi:
I see failing test with:
Cannot invoke "java.util.function.Supplier.get()" because "this.shell" is null
java.lang.NullPointerException: Cannot invoke "java.util.function.Supplier.get()" because "this.shell" is null
at org.eclipse.test.Screenshots$ScreenshotOnFailure.dispose(Screenshots.java:52)
at org.eclipse.test.Screenshots$ScreenshotOnFailure.finished(Screenshots.java:47)
Can you pls. have a look what's the issue there?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
005458e
to
4d8fc71
Compare
4d8fc71
to
f88db3b
Compare
42f141a
to
ca30a37
Compare
@azoitl: Referring to our talk on OCX. |
No not yet. There is a bugzilla entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=58945 there you can find links to the gerrit patches I did. But I do not recommend to use them. There is someone who will start working on that. |
ca30a37
to
f18d84a
Compare
pr-head is failing with
This looks unrelated. Should we merge it anyways? |
Please make sure the CI will not fail after any commit. for that you can rerun the build , document (with an issue) or even fix the failure |
2f0224a
to
5967ee4
Compare
- Added a new preference for multi-page editor tab alignment. - Added a preference change listener to MultiPageEditorPart. - Updated tab style based on the user's preference.
- Changed the check box to drop down with Top and Bottom options - Made the private methods protected - Converted the preference store value from boolean to int and storing the SWT value of the selection directly
5967ee4
to
2e123d4
Compare
failed test on macOS is already know to fail. it's unrelated See: #370. If nobody objects I plan to merge this today. |
Added new and noteworthy entry for: eclipse-platform/eclipse.platform.ui#2224
Added new and noteworthy entry for: eclipse-platform/eclipse.platform.ui#2224
Added new and noteworthy entry for: eclipse-platform/eclipse.platform.ui#2224
Issue: #2223
This pull request introduces a new feature in Eclipse that allows users to configure the alignment of tabs in multi-page editors. The tabs, which are currently fixed at the bottom, can now be dynamically positioned on the top or bottom, based on user preference.
Key Changes:
New preference:
Tabs on top of the screen: