Bug 270474 - [Patch] Patch Root option for a patch created for a local files comparison
Summary: [Patch] Patch Root option for a patch created for a local files comparison
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 71374
  Show dependency tree
 
Reported: 2009-03-30 12:06 EDT by Tomasz Zarna CLA
Modified: 2021-10-09 15:49 EDT (History)
4 users (show)

See Also:


Attachments
Patch_v1 (8.82 KB, patch)
2009-03-31 13:55 EDT, Krzysztof Pog這dzi雟ki CLA
no flags Details | Diff
Tests_v1 (1.36 KB, patch)
2009-03-31 13:57 EDT, Krzysztof Pog這dzi雟ki CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2009-03-30 12:06:53 EDT
Not yet in HEAD, reproducible on branch_20090126_LocalDiff branch

When creating a patch for local files (valid IFiles) we should use the Patch Root options available in the wizard (Workspace, Project, Selection) instead of the newly added "Use only file path".
Comment 1 Tomasz Zarna CLA 2009-03-30 12:11:26 EDT
Fixing this issue makes the request from bug 270473 invalid.
Comment 2 Kacper Zdanowicz CLA 2009-03-31 05:54:59 EDT
So, what you mean is, that the wizard should:
 
- use and make available options "Workspace", "Project", "Selection" when comaparing IFiles, 

- use and make available option "Use only file path" when comaparing diffrent objects (like local history, repository files or other variants)

, right ?
Comment 3 Tomasz Zarna CLA 2009-03-31 07:14:01 EDT
Yes.
Comment 4 Krzysztof Pog這dzi雟ki CLA 2009-03-31 13:55:57 EDT
Created attachment 130430 [details]
Patch_v1

Patch resolving this issue.
Comment 5 Krzysztof Pog這dzi雟ki CLA 2009-03-31 13:57:45 EDT
Created attachment 130431 [details]
Tests_v1

Patch for the tests required after Patch_v1.
Comment 6 Tomasz Zarna CLA 2009-04-01 06:21:47 EDT
Thanks for the patch Krzysztof, it looks like a step in the right direction. However I've got some comments:

1. First of all, I would fix bug 270569 prior this one, to clean up the code.
2. I would change "Use only file path" to something more appropriate, imo even "Custom root path" sounds better.
3. Since you decided to keep "Use only file path" option for IFiles, even though it's disabled I think the text in it should be different. Initially, for Workspace I would display there a valid workspace path, with "/" at the beginning. Once user changes the selection, you could also update the text accordingly. This would make it work and look more less as Enter Module Name page in the Share Wizard.
4. What's the meaning of org.eclipse.compare.internal.GenerateDiffFileWizard.OptionsPage.performSpecificActions() method?
5. I would not process the root path in the UDF, is it possible to make it the wizard? This way you won't have to pass the wizard's internals (constants) to the UDF.

Once you update the patch I will give another shot.
Comment 7 Kacper Zdanowicz CLA 2009-04-02 06:38:38 EDT
We've got the updated patch, with all the issues fixed, but we now wait for approval of patch for bug 270569 and it's release for branch. It is necessarily to adjust patch for this bug to match the changes made in patch for bug 270569.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:07:50 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.
Comment 9 Eclipse Genie CLA 2021-10-09 15:49:06 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.