SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by ivj » Tue Aug 12, 2003 8:18 am
When u add a list in a designer it does the following to your source:
import org.eclipse.swt.widgets.List;
new List(shell, SWT.BORDER);
... the ugly thing is that List has a parameter-free constructor...
what do I do?
(The import org.eclipse.swt.widgets.List conflicts with a type defined in the same file List.java SWT line
-
ivj
-
- Posts: 7
- Joined: Sat Aug 09, 2003 8:06 pm
by ivj » Tue Aug 12, 2003 8:20 am
Also, when you delete that list and add border instead, it messes up the code.
-
ivj
-
- Posts: 7
- Joined: Sat Aug 09, 2003 8:06 pm
by admin » Tue Aug 12, 2003 8:39 pm
ivj wrote:When u add a list in a designer it does the following to your source:
import org.eclipse.swt.widgets.List;
new List(shell, SWT.BORDER);
... the ugly thing is that List has a parameter-free constructor...
Sorry, but SWT control class can not have parameter-free constructor. They all have at least one argument - parent, and most of them have also second argument - style.
Can you provide full source of file on which Designer does not work?
ivj wrote:what do I do?
(The import org.eclipse.swt.widgets.List conflicts with a type defined in the same file List.java SWT line
-
admin
- Moderator
-
- Posts: 166
- Joined: Thu Jul 24, 2003 12:25 am
-
Return to SWT Designer
Who is online
Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest