Results 1 to 1 of 1
Thread: what does mean ClassName@address
- 03-25-2009, 04:11 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 10
- Rep Power
- 0
what does mean ClassName@address
Hi all,
I am developping a plugin that contains a view with Eclipse 3.2 winthin I have installed Visual Editor and its required plugin namely GEF and EMF. I have added listeners to my view, among them IPartListener. In this last I cach objects from Visual Editor specially JavaVisualEditor contained in org.eclipse.ve.internal.java.codegen.editorpart.Ja vaVisualEditor by getAdapter(argument) while argument is the name of the class that I want to cach the object.
getAdapter return an object that is casted to an object of the same type as the getAdapter argument.
I also add a line code that displays this object.
At runtime, this result is shown in Console View:
ObjectClassName@Address.
for exemple if I apply this for the org.eclipse.gef.EditDomain class
code :
When Editor Part where UIs are being designed is selected, this line is thrown on Console view:Java Code:Object o= part.getAdapter(org.eclipse.gef.EditDomain.class); domain = (org.eclipse.gef.EditDomain)o; System.out.println("L'objet retourné par l'adaptateur est :"+domain.toString());
L'objet retourné par l'adaptateur est :org.eclipse.ve.internal.cde.core.EditDomain@14e22 66
my question is what does @14e2266 means? is it the address of the object returned by the Editor Part??
If yes, how retrieve this object?
Thanks for help.
Karim
Similar Threads
-
Client IP Address
By goodjonx in forum NetworkingReplies: 3Last Post: 09-23-2009, 10:27 AM -
How to get IP Address of the client
By Java Tip in forum java.netReplies: 0Last Post: 04-05-2008, 10:14 AM -
JSP – getting IP address
By Java Tip in forum Java TipReplies: 0Last Post: 01-29-2008, 09:05 AM -
<variable>(Java.lang.string) in <classname> cannot be applies to ()
By inksmithy in forum New To JavaReplies: 5Last Post: 01-13-2008, 10:36 PM -
MAC address capturing
By viswa.tk in forum Java AppletsReplies: 0Last Post: 12-13-2007, 08:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks