Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » getClass().getName() returns org.eclipse.swt.widgets.Composite
getClass().getName() returns org.eclipse.swt.widgets.Composite [message #613640] Mon, 31 July 2006 18:24
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Hi,

If I generate the following code when dropping from Palette :

composite = new MyComposite(this,SWT.NONE);
composite.setText(getClass().getName());

the getClass().getName() returns org.eclipse.swt.widgets.Composite
instead of the current editing class. If I save the file, and reopen,
it returns the correct fully qualified classname.

It is because the current editing class never gets compiled? Thanks.
Is there anyway I can get the name of the current classname
programatically? Thanks.
Previous Topic:JVE log
Next Topic:nuB - using VE for the first time
Goto Forum:
  


Current Time: Fri Apr 26 17:52:34 GMT 2024

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

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

Back to the top