Community
Participate
Working Groups
The "Contributing actions..." article talks about contributing actions to various parts of the workbench. Specifically, there's a section on adding actions to popupMenus inside editors. It would be nice if the article talks about adding popupMenus for custom editors.
here's how I had to add the popupMenu: /** * This is my editor for which I've to add a popupMenu */ public class MyEditor extends TextEditor { public static final String ID = "org.eclipse.sample.myeditor.MyEditor"; public static final String EDITOR_CONTEXT = ID; public static final String RULER_CONTEXT = EDITOR_CONTEXT + ".ruler"; ... ... protected void initializeEditor() { super.initializeEditor(); setEditorContextMenuId(ID); setRulerContextMenuId(RULER_CONTEXT); } ... ... } My plugin.xml reads: <!-- contribution to the popup menu in myeditor --> <extension point="org.eclipse.ui.popupMenus"> <viewerContribution id="org.eclipse.sample.myeditor.popupContribution" targetID="org.eclipse.sample.myeditor.MyEditor"> <!-- see MyEditor#initialize() --> <action class="org.eclipse.sample.myeditor.MyAction" id="org.eclipse.sample.myeditor.popupAction" label="&Popup Action" ... /> ... </viewerContribution> </extension>
Simon: Is it time for an update to this article? Are you able to spend some time working on it, or should we find another author? Ketan: Are you interested in collaborating on an update?
(In reply to comment #2) <snipped /> > Ketan: Are you interested in collaborating on an update? I would be interested in collaborating on an update.
Simon: do you think that the article should be updated, or should we consider a companion piece? Are you able/willing to collaborate with Ketan?
I would really like to push this out. There's a lot of people on the newsgroup who're looking for this update in the "Contributing Actions..." article.
In private correspondence, Simon has told me that he is not able to work on an update. Are you willing/able to manage the update yourself? If so, go for it. If not, we'll need to find a collaborator...
(In reply to comment #6) > Are you willing/able to manage the update yourself? If so, go for it. Sure I'll update the article myself.
Cool. I'm looking forward to your first draft.
Created attachment 56325 [details] A draft of an updated article for contributing to custom editors.
> Cool. I'm looking forward to your first draft. Hi Wayne, What's the latest on this ?
Sorry backlogged. It looks good to me. I've made a request to the platform ui team to get somebody to review it and sign off on the content.
Note that the story for how to make commands show up in the UI (as menu items, toolbar items, ...) is going to be different starting with Eclipse 3.3.
Is this article salvageable in consideration of the changes, or does it become obsolete?
This article is still valid in the context of 3.2.2, although all of the extensions will become deprecated in 3.3. I think it's still worth either 1) publishing Ketan's update as is, or 2) publish Ketan's update with another small addition, about calling a command from the IActionDelegate like mentioned on the wiki. http://wiki.eclipse.org/index.php/Platform_Command_Framework#Using_an_IActionDelegate_to_execute_a_command As we finish 3.3 we'll be building up a set of examples and a migration guide on the wiki, which could be used as the basis for a new article (but that won't be until after Jun 2007 :-) PW
I do understand that actionSets, editorActions, viewActions and popupMenus will be replaced by the command framework (http://dev.eclipse.org/newslists/news.eclipse.platform/msg60006.html) This was an update for folks (like me) who still continue to use eclipse 3.2.x (and perhaps 3.1.x) for development. I'll investigate into the command framework in 3.3-M4, and update the article in time for the 3.3 release. Is this OK for everyone ? Is there any "recommended reading" for me while I'm doing this ?
If the article is up-to-date and correct for 3.2.1, I recommend we release now and that we deal with the 3.3 release in the coming months. Seconds?
(In reply to comment #16) > If the article is up-to-date and correct for 3.2.1, I recommend we release now > and that we deal with the 3.3 release in the coming months. > > Seconds? +1.
+1 PW
(In reply to comment #16) > If the article is up-to-date and correct for 3.2.1, I recommend we release now > and that we deal with the 3.3 release in the coming months. > > Seconds? > +1. It's more helpful to have content relevant to what we have already, and to add/modify content as required.
+1 I'll push it out next week.
Changing status to ASSIGNED. Publishing is pending.
Updates have been published. I updated the format of the document to better match the new template. Please pull the latest version off CVS if you intend to do additional updates. http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html
Ketan, can you contact me via email (wayne@eclipse.org) and give me your shirt size, mailing address, and phone number? I'll see if I can find some nice Eclipse Swag for you.