DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Override a 3rd party plugin class - RCP
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default Override a 3rd party plugin class - RCP - 11-25-2008, 04:18 AM

Hello All,
I am here for some help. I'm using a 3rd party plugin in my RCP project. However, I am required to change the behaviour of one of the classes in the 3rd party plugin to match my requirement. Here's the scenario:

This is the third party plugin
Code:
Plugin "com.org.thirdparty.plugin"
Package "com.org.logging"
Class "FileLogger"
I have to change behaviour of this class and since I can not change the 3rd party plugin, I create a class with the same name in my plugin and implement my custom behaviour.

This is my plugin
Code:
Plugin "MyPlugin"
Package "com.org.logging"
Class "FileLogger"
However, on execution, my implementation of FileLogger never gets called. All calls still execute the FileLogger from the 3rd party plugin.

How can I override the 3rd party plugin's FileLogger completely with my FileLogger without making changes to the 3rd party plugin?
Is this possible?
Reply With Quote
Reply

Tags
override class, plugin, rcp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instantiate a class from the runtime workspace of a plugin goga_ruler Eclipse 1 05-27-2009 06:27 AM
override a method in object retruned from super class miroconnect@yahoo.com Java 2 01-29-2009 09:41 AM
beanshell function override edmund Java 0 08-05-2008 04:30 AM
rcp plugin dependency on non-plugin project Shefali23 Eclipse 1 07-24-2008 05:06 AM
Override Doubleclick event of a folder in Resources view of Eclipse divyanair Eclipse 0 06-30-2008 03:50 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com