Bug 173457 - [Actions] Convert Team action set to new menu support
Summary: [Actions] Convert Team action set to new menu support
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact: Tomasz Zarna CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 196349
  Show dependency tree
 
Reported: 2007-02-08 10:15 EST by Michael Valenta CLA
Modified: 2021-11-28 03:20 EST (History)
2 users (show)

See Also:


Attachments
Intial version of the patch file (65.90 KB, patch)
2007-02-16 09:17 EST, Tomasz Zarna CLA
no flags Details | Diff
mylar/context/zip (6.93 KB, application/octet-stream)
2007-02-16 09:17 EST, Tomasz Zarna CLA
no flags Details
Updated version of the patch (45.17 KB, patch)
2007-02-20 04:31 EST, Tomasz Zarna CLA
no flags Details | Diff
Next version of the patch (proposition) (47.59 KB, patch)
2007-02-21 12:09 EST, Tomasz Zarna CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2007-02-08 10:15:23 EST
Team has an action set that provides a main menu and a toolbar item. These should be converted to the new menu support.
Comment 1 Tomasz Zarna CLA 2007-02-16 09:17:43 EST
Created attachment 59139 [details]
Intial version of the patch file

Michael please take a look at it
Comment 2 Tomasz Zarna CLA 2007-02-16 09:17:45 EST
Created attachment 59140 [details]
mylar/context/zip
Comment 3 Michael Valenta CLA 2007-02-19 10:43:35 EST
The patch seems to have some problems applying (i.e. files that already exist sow up as additions (e.g. plugin.xml). Could you synchronize with the latest in HEAD, catchup with what is there (i.e. Update) and then recreate the patch? If you end up with conflicts after you Update, you may need to perform a Mark As Merged in order to create the patch properly.
Comment 4 Tomasz Zarna CLA 2007-02-20 04:31:29 EST
Created attachment 59355 [details]
Updated version of the patch

Synchronization of our internal CVS with Eclipse's public server isn't a trvial tasks. It's getting even harder when there are branches included. However, using CVS should be an essential skill for every programmer so I hope (I'm sure :)) this time the patch will be applicable.
Comment 5 Michael Valenta CLA 2007-02-20 09:36:56 EST
I've had a look at the patch and here are my initial comments:

1) There were some changes to 3 Actions classes. I think these were just some reformatting and the addition of a deprecated tag. We don't need to add any deprecated tags since these actions are not API. Also, we will hold off on removing any classes until after all the new classes are in. This will make it easier to compare the old behavior with the new.

2) Converting all the old actions to handlers is going to be hard to verify via code inspection (which is what I will need to do). I think it would be good if we could convert our existing classes into handlers in some way. Here are some of the options I see:
   a) Have TeamAction implement IHandler and duplicate the functionality of AbstractHandler. CVSAction already does this so we could push that up to TeamAction.
   b) Have TeamAction extend AbstractHandler and duplicate the functionality in ActionDelegate.
   c) Create a handler wrapper that wraps the existing action delegates
I think we need to pick one of these in order to ensure that we can reasonably work with the patches you are going to provide. Could you investigate these three approaches and let me know which one you think we should choose.

3) There seem to be some duplicate commands defined in the plugin.xml (e.g Apply Patch, Synchronize). Each command should only be defined once.

4) There don't seem to be any handlers defined in the plugin.xml.

5) I noticed the team.main group is defined but the compareWith and replaceWith groups are not. These groups are defined in the org.eclipse.compare plug-in so we'll need to convert that plug-in to the new menu support as well (i.e. it is part of Team).

So, I think the next thing we can do is address point 2. Once we have settled on a solution for that, perhaps we could start by getting Apply Patch and Share Project working in the main menu (since there are still some issues holding up objectContribution conversion). From the patch, it looks like you may have these two working already but the shape of the code will change due to point 2. How does that sound?
   
Comment 6 Tomasz Zarna CLA 2007-02-21 12:09:46 EST
Created attachment 59496 [details]
Next version of the patch (proposition)

The patch is mostly addressed to issue 2a from Michael's comment for this bug
Comment 7 Michael Valenta CLA 2007-04-17 09:52:47 EDT
This is not containable in the 3.3 release so we're postponing it until 3.4.
Comment 8 Tomasz Zarna CLA 2008-04-17 06:54:14 EDT
I hope I will have time to get back to this issue during 3.5 cycle, until then let's update the target milestone to better match the reality.
Comment 9 Szymon Brandys CLA 2009-03-06 05:52:33 EST
We don't plan to address it now. I'm removing the target milestone but we'll set more realistic one when we have feedback from anyone interested in fixing this.
Comment 10 Eclipse Webmaster CLA 2019-09-06 15:33:15 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 11 Eclipse Genie CLA 2021-11-28 03:20:37 EST
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.