|
|
Re: Extending an existing plug-in through a fragment [message #115869 is a reply to message #115723] |
Mon, 11 August 2008 16:17 |
David Pérez Messages: 228 Registered: July 2009 |
Senior Member |
|
|
Please, any hint from an Eclipse guru?
I've tried other alternatives to create a fragment:
1) to create a custom version of
org.eclipse.swt.win32.win32.x86_3.4.0.v3448f.jar and it works, but the
automated build fails.
2) Another one is to place my custom class in a bundle that isn't a
fragment, but with this code:
@SuppressWarnings("restriction")
public class TableEx extends Table {
@Override int /*long*/ windowProc (int /*long*/ hwnd, int msg, int
/*long*/ wParam, int /*long*/ lParam) {
....
return super.windowProc(hwnd, msg, wParam, lParam);
}
}
My custom windowProc() is never called by Windows.
TableEx and Table are in the same package but different bundles.
David Perez wrote:
> Maybe my problem is due to the fact I'm trying to use code in another
> fragment from the same host.
> I have tried to remove all signing info from org.eclipse.swt*.jar, in case
> this is a problem, but it doesn't resolve anything.
> David Perez wrote:
>> Hi,
>> I want to add functionality to SWT, by adding new classes in the
>> org.eclipse.swt.widgets package.
>> One solution would be to create my custom version of SWT.
>> Another one, the preferred, is to create a fragment project.
>> The problem is that my new class:
>> package org.eclipse.swt.widgets
>> class TableEx extends Table {
>> ....
>> }
>> cannot import anything from SWT (the host plugin).
>> The org.eclipse.swt.widgets.Table isn't recognized.
>> I need to also import stuff from the org.eclipse.swt.win32.win32.x86
>> fragment.
>> I also fails.
>> Any help will be greatly appreciated
|
|
|
Re: Extending an existing plug-in through a fragment [message #115968 is a reply to message #115723] |
Wed, 13 August 2008 12:06 |
Eclipse User |
|
|
|
Originally posted by: Jens.Borrmann.gillardon.de
David Perez schrieb:
> Maybe my problem is due to the fact I'm trying to use code in another
> fragment from the same host.
>
> I have tried to remove all signing info from org.eclipse.swt*.jar, in
> case this is a problem, but it doesn't resolve anything.
>
> David Perez wrote:
>
>> Hi,
>
>> I want to add functionality to SWT, by adding new classes in the
>> org.eclipse.swt.widgets package.
>> One solution would be to create my custom version of SWT.
>> Another one, the preferred, is to create a fragment project.
>> The problem is that my new class:
>
>> package org.eclipse.swt.widgets
>
>> class TableEx extends Table {
>> ....
>> }
>
>> cannot import anything from SWT (the host plugin).
>> The org.eclipse.swt.widgets.Table isn't recognized.
>
>> I need to also import stuff from the org.eclipse.swt.win32.win32.x86
>> fragment.
>> I also fails.
>
>
>> Any help will be greatly appreciated
>
>
Hi,
unfortunately, I cannot answer your question, but have a similar problem
:-) I just opened a thread
(news://news.eclipse.org:119/g7uicj$cqn$1@build.eclipse.org) in which I
ask the general version of your question. Hopefully we will receive an
answer soon.
--Jens
|
|
|
|
Powered by
FUDForum. Page generated in 0.03986 seconds