-
Notifications
You must be signed in to change notification settings - Fork 195
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
Improve workspace lock error dialog. #2347
Improve workspace lock error dialog. #2347
Conversation
@iloveeclipse FYI |
Can you pls. provide a screenshot showing the new dialog? |
By the way if on the lock dialog is worked, it would be great to have a cancel button! Currently one can only |
10fa592
to
f34d747
Compare
And these display strings must be localizeable. |
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.
Unfortunately it looks like writing to the locked file unlocks it again!
I'm able to start multiple Eclipse instances on same workspace now :-(
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
Fixed all the review comments. Committed as separate commit to help the review. |
I have changed the approach now. |
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties
Outdated
Show resolved
Hide resolved
Also please rebase on latest master before next push |
I went through comments. I will refactor the code with |
f8f7892
to
1c35e4f
Compare
I will do this change as separate PR. As we are only improving error message here. Other suggestions are fixed. |
All the review suggestions are fixed. |
How does the UI look now? |
The labels are still not aligned, it should be something like
|
Especially this looks strange because of the two ":". I knot that's they displays are called. Maybe we should put all the values into single or double quotes. So that is would look like
|
Display has format |
Sure. But this does not contradict my proposal... |
I am using |
9f3f9a9
to
987ceca
Compare
That looks nice now. Thanks |
@BeckerWdf do you think the quotes are required with the new layout? They look a bit misplaced from my point of view. |
Yes, unless one expects there might be trailing or leading whitespace that needs to be called out because that relevant, then the quotes seem like merely noise. And I believe in this case there is no interesting whitespace. |
Yes. In the new layout we can get rid of them from my point of view. |
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
...g.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEApplication.java
Outdated
Show resolved
Hide resolved
Write workspace lock info like user, host, java process id, display properties onto a new file .lock_info if the lock was successful. Read the current lock data in case of lock was unsuccessful and show it in error dialog. If the .lock_info does not exist or the file has no info then nothing is shown. For older eclipse versions. see eclipse-platform#2343
987ceca
to
03c222e
Compare
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.
Thanks Raghu! Looks good now.
private File createLockInfoFile(URL workspaceUrl) throws Exception { | ||
File lockInfoFile = getLockInfoFile(workspaceUrl); | ||
|
||
if (lockInfoFile.exists()) |
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.
Next time please don't forget to put "if" in a block.
This change seems to have introduced a regression documented in #2423 |
Write workspace lock info like user, host, java process id, display properties onto .lock file if the lock was successful. Read the current lock data in case of lock was unsuccessful and shown it in error dialog.
If the .lock file has no info then nothing is shown. For older eclipse versions.
see #2343