Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Why is CommandContributionItem a final class in RAP?
Why is CommandContributionItem a final class in RAP? [message #539215] Thu, 10 June 2010 02:42 Go to next message
Jon Sorensen is currently offline Jon SorensenFriend
Messages: 24
Registered: July 2009
Junior Member
In my RCP application I extended the CommandContributionItem class but I
can't do this because in RAP it is declared as final and my code will no
longer compile.
Re: Why is CommandContributionItem a final class in RAP? [message #539244 is a reply to message #539215] Thu, 10 June 2010 07:39 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Jon,

the RAP workbench code is based on 3.4. It seems that the "final"
directive has gone in the meanwhile.
However, the JavaDoc (3.4) reads "This class may be instantiated; it is
not intended to be subclassed.". If this is still true, you should
reconsider your approach in any way.

There is an enhancement request that covers to upgrade to a newer version:
309661: Update workbench code to Galileo (3.5) or Helios (3.6)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309661

HTH
Rüdiger

On 10.06.2010 04:42, Jon Sorensen wrote:
> In my RCP application I extended the CommandContributionItem class but I
> can't do this because in RAP it is declared as final and my code will no
> longer compile.
>
Re: Why is CommandContributionItem a final class in RAP? [message #539297 is a reply to message #539215] Thu, 10 June 2010 09:29 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Jon Sorensen wrote:
> In my RCP application I extended the CommandContributionItem class but I
> can't do this because in RAP it is declared as final and my code will no
> longer compile.

I guess it was final in 3.4, which is still the base version for the
workbench in RAP.

The Javadoc of this class says: "This class may be instantiated; it is
not intended to be subclassed."
Previous Topic:Upgrade from RAP 1.2.1 to 1.2.2 because of Firefox 3.6 - possible WAR deployment procedure problem
Next Topic:When I package my own Rap to Tomcat, It doesn't work.Why?
Goto Forum:
  


Current Time: Sat Apr 20 00:10:26 GMT 2024

Powered by FUDForum. Page generated in 0.40678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top