[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: how to contribute to problems view

Hi, Paul:

The link list is very useful, Thanks!

But, unfortunately my contributed handler can't access the current selected marker because Problem view does not expose useful public accessors, such as "getSelection()", it only supplies a "setSelection()" public method, hoho~~~

And I believe that there are other views that do not supply useful public accessors, because that they haven't considered the new menu contribution situation.

So, should I raise a enhancement bug?


"Paul Webster" <pwebster@xxxxxxxxxx> 写入消息 news:fn4u2m$k96$3@xxxxxxxxxxxxxxxxxxxx
That was a proposed usecase to see if the new menu contributions in 3.3
could support the problems view.  There is no supporting code.

However if you look at org.eclipse.ui.ide/plugin.xml there should be a
lot of examples in HEAD of adding commands/handlers/menu contributions
to the new problems view.

Also check out the help link listed below, it discusses commands,
handlers, and then placing references to the commands in menus and
toolbars (menu contributions)

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm