Skip to content
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

Fixes issues with the paths used in the context of the local Saros instance #1098

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

tobous
Copy link
Member

@tobous tobous commented Nov 9, 2020

Fixes issues with the paths used in the context of the local Saros instance.

Commits

[FIX][E] #1093 Correctly display path of existing resource for error

Adjusts the error message displayed in cases where the user chooses the
option to create a new directory as part of the resource negotiation
using values pointing to an already existing directory. The message used
the toString() of the IContainer object which included a resource type
designation at the start of the path. To avoid confusion, the
OS-specific path of the resource is used instead.

Resolves #1093.

[INTERNAL][E] Use OS path when exclusively working in the local context

Replaces usages of IPath.toPortableString() with IPath.toOSString() in
cases where the logic is only working in the local context, i.e. when
displaying information to the user or setting values in a local dialog.

This was done to make it as easy as possible to recognize the path in
the local system. Making the path portable could be confusing for the
user as it no longer matches the representation in the local filesystem.

Adjusts the error message displayed in cases where the user chooses the
option to create a new directory as part of the resource negotiation
using values pointing to an already existing directory. The message used
the 'toString()' of the IContainer object which included a resource type
designation at the start of the path. To avoid confusion, the
OS-specific path of the resource is used instead.

Resolves #1093.
Replaces usages of IPath.toPortableString() with IPath.toOSString() in
cases where the logic is only working in the local context, i.e. when
displaying information to the user or setting values in a local dialog.

This was done to make it as easy as possible to recognize the path in
the local system. Making the path portable could be confusing for the
user as it no longer matches the representation in the local filesystem.
@tobous tobous added Aspect: GUI Issues specific to the Saros GUI Area: Eclipse Issue affecting Saros for Eclipse (Saros/E) labels Nov 9, 2020
@tobous tobous added this to the Saros/E Release NEXT milestone Nov 9, 2020
@tobous tobous self-assigned this Nov 9, 2020
@tobous tobous requested a review from srossbach November 9, 2020 14:10
@tobous tobous merged commit c1d1cc0 into master Nov 10, 2020
@tobous tobous deleted the pr/eclipse/fix-error-message-paths branch November 10, 2020 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Eclipse Issue affecting Saros for Eclipse (Saros/E) Aspect: GUI Issues specific to the Saros GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird and truncated error message in AddProjectsToSessionWizard
2 participants