Bug 186589 - [api][breaking] Icons, SystemMessages and HelpContexts for User Actions only should be removed from RSEUIPlugin
Summary: [api][breaking] Icons, SystemMessages and HelpContexts for User Actions only ...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: David Dykstal CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks: 190991 174945
  Show dependency tree
 
Reported: 2007-05-11 12:06 EDT by Martin Oberhuber CLA
Modified: 2008-08-13 13:20 EDT (History)
0 users

See Also:
kmunir: review+


Attachments
patch that removes the user defined actions API from core and ui plugins (140.97 KB, patch)
2007-06-04 14:50 EDT, David Dykstal CLA
no flags Details | Diff
patch that removes the user defined actions API from core and ui plugins (153.00 KB, patch)
2007-06-04 15:30 EDT, David Dykstal CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-05-11 12:06:16 EDT
The User Actions contribution must be independent of RSEUIPlugin.

Therefore, left-overs of icons for User Actions should be removed from RSEUIPlugin and moved into org.eclipse.rse.useractions.

Finding such references should be relatively easy by searching for the String ICON_ in project org.eclipse.rse.useractions:
  ICON_SYSTEM_COMPILE_ID
  ICON_SYSTEM_WORKWITHCOMPILECMDS_ID
  ICON_SYSTEM_WORKWITHNAMEDTYPES_ID
  ICON_SYSTEM_WORKWITHUSERACTIONS_ID
Comment 1 Martin Oberhuber CLA 2007-05-11 12:44:27 EDT
Lots of SystemMessages and HelpContexts specific to User Actions are also still in RSEUIPlugin and should be removed. These should be local to the useractions plugin.

Comment 2 Martin Oberhuber CLA 2007-05-30 11:53:07 EDT
Removing stuff from ISystemMessages etc. would be an API change that we cannot have for 2.0.1 -- either we manage getting rid of the stuff now, or we do it in the "Future" main stream.
Comment 3 David Dykstal CLA 2007-05-30 13:31:01 EDT
Martin --
You are correct. In going over the validators I found several that could be moved easily. I'll see how much we can accomplish for RC2 here.
-- Dave
Comment 4 David Dykstal CLA 2007-06-04 14:50:15 EDT
Created attachment 70011 [details]
patch that removes the user defined actions API from core and ui plugins

The patch removes almost all the API for user defined actions from the core and ui plugins. Message IDs, Event resource types, and Icon constants have moved to the user actions plugin. In addition, the folder methods for UD, named types and compile commands have been removed from the SystemResourceManager. The patch does not show the 8 graphic files that will be moved: compile.gif, workwithcompilecmds.gif, workwithnamedtypes.gif, and workwithuseractions.gif, each one from the dlcl16 and elcl16 directories. Most changes are in the useractions plugin itself where the code was impacted by the move of the constants.

Although there is quite a lot in this patch, it is relatively safe to apply since the code impacted was not being run.
Comment 5 David Dykstal CLA 2007-06-04 15:30:49 EDT
Created attachment 70021 [details]
patch that removes the user defined actions API from core and ui plugins

replaces the previous patch - includes copyright information
Comment 6 David Dykstal CLA 2007-06-04 15:55:07 EDT
Kushal - please review. Thanks!
Comment 7 Kushal Munir CLA 2007-06-04 18:30:42 EDT
Changes look good to me. Can we take out the commented out code in SystemCommandEditor?
Comment 8 David Dykstal CLA 2007-06-04 21:31:37 EDT
(In reply to comment #7)
> Changes look good to me. Can we take out the commented out code in
> SystemCommandEditor?
> 

As much as I'm in favor of removing commented out code, I think we need to keep this one since we'll have to find a substitute scheme for doing a callback. At that point it can be deleted.
Comment 9 David Dykstal CLA 2007-06-04 21:41:14 EDT
Committed as reviewed and tested after double checking copyright dates.
Comment 10 Martin Oberhuber CLA 2007-06-05 06:04:02 EDT
Dave -- from ISystemMessages.java, you removed the constants for messages group "G", number 1140-1141, 1180-1191, 1195-1199, 1230-1231.

But in systemmessages.xml these are still there, and also in uiMessages.html.

Is this intentional? I filed bug #190991 for removal of these.
Comment 11 David Dykstal CLA 2007-06-05 06:58:21 EDT
Yes, this was intentional. The messages file itself is not API and leaving the messages there for now won't hurt. I didn't want to create a new messages file in user actions at this time and trigger a panic for the those who are translating. We can move them in next release so having the new bug report is good.
Comment 12 Martin Oberhuber CLA 2008-08-13 13:20:10 EDT
[target cleanup] 2.0 RC2 was the original target milestone for this bug