Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mozilla SWT Browser / Java Native Interface
Mozilla SWT Browser / Java Native Interface [message #1386843] Sat, 21 June 2014 14:07 Go to next message
Peter Karena is currently offline Peter KarenaFriend
Messages: 2
Registered: June 2014
Junior Member
Hi there,

can someone explain me the structure behind the nsISupports.LAST_METHOD_ID in the implementations of nsISupports?

How can i calculate?

In the nsiCookie, the place in the nsICookie.idl corresponds to the Java implementation, like:

nsICookie
1. readonly attribute ACString name;  ==> nsISupports.LAST_METHOD_ID + 1
2. readonly attribute AUTF8String value;  ==> (not implemented yet)
3. readonly attribute boolean isDomain; ==> (not implemented yet)
4. readonly attribute AUTF8String host;  ==> nsISupports.LAST_METHOD_ID + 4
5. readonly attribute AUTF8String path;  ==> nsISupports.LAST_METHOD_ID + 5



in the nsIUri, the order corresponds also, but there are missing ids.
For example the 3rd ist mapped to 4 and the 7th is mapped to 12.

nsIURI
1. attribute AUTF8String spec; ==> nsISupports.LAST_METHOD_ID + 1
2. readonly attribute AUTF8String prePath; ==> (not implemented yet)
3. attribute ACString scheme; ==> nsISupports.LAST_METHOD_ID + 4
4. attribute AUTF8String userPass; ==> (not implemented yet)
5. attribute AUTF8String username; ==> (not implemented yet)
6. attribute AUTF8String password; ==> (not implemented yet)
7. attribute AUTF8String hostPort; ==> nsISupports.LAST_METHOD_ID + 12


Thanks for help
Re: Mozilla SWT Browser / Java Native Interface [message #1386898 is a reply to message #1386843] Sun, 22 June 2014 16:56 Go to previous message
Peter Karena is currently offline Peter KarenaFriend
Messages: 2
Registered: June 2014
Junior Member
Okay I found it out, not the idl file is important, the header file contains the needed Information.
Previous Topic:How to alignment for label text
Next Topic:Set check simbol on a Menu manager
Goto Forum:
  


Current Time: Fri Apr 19 00:38:54 GMT 2024

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

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

Back to the top