Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Generating Java subclasses


You have to create SWTDragSourceDelegate yourself. The tool only generates classes that are in the frameworks.

For an example of #2, the class "SWTView" created in Display.initClasses() has a similar shape (it implements the protocol NSTextInput).

Silenio



Scott Kovatch <skovatch@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

09/15/2008 07:40 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Generating Java subclasses





Hi,

I’m trying to create a subclass of NSObject that will be the drag source delegate. Following the patterns, that means I need two things:

1. A Java class org.eclipse.swt.internal.cocoa.SWTDragSourceDelegate that extends NSObject
2. A dynamically-generated Objective-C sublcass with the same name, and then add the selectors from NSDraggingSource to the class dynamically, and have them call back into a Callback.

#2 is pretty straightforward, but do I create #1 myself? Or is it supposed to be generated? If generated where do I declare it?

Scott
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top