Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Compiler error in org.eclipse.swt.nebula.examples
Compiler error in org.eclipse.swt.nebula.examples [message #19879] Wed, 06 December 2006 16:21 Go to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Hello everyone,

I have checked out the nebula plugins from CVS (examples, nebface,
snippets, tests, widgets) and the examples plugin is showing several
compiler errors in PGroupExampleTab:

Severity and Description Path Resource Location Creation Time Id
The method setToggleRenderer(AbstractRenderer) in the type PGroup is not
applicable for the arguments (AbstractRenderer)
org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
PGroupExampleTab.java line 86 1165421637528 1042263
Type mismatch: cannot convert from ChevronsToggleRenderer to
AbstractRenderer
org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
PGroupExampleTab.java line 52 1165421637528 1042259
Type mismatch: cannot convert from MinMaxToggleRenderer to
AbstractRenderer
org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
PGroupExampleTab.java line 56 1165421637528 1042260
Type mismatch: cannot convert from TreeNodeToggleRenderer to
AbstractRenderer
org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
PGroupExampleTab.java line 64 1165421637528 1042262
Type mismatch: cannot convert from TwisteToggleRenderer to
AbstractRenderer
org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
PGroupExampleTab.java line 60 1165421637528 1042261

Is anybody else having this problem? The code looks valid to me; I
suspect it may be a problem in the compiler. I just wanted to check
here before posting a bug report to JDT.

Matthew
Re: Compiler error in org.eclipse.swt.nebula.examples [message #19909 is a reply to message #19879] Wed, 06 December 2006 16:24 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Matthew Hall wrote:
> Hello everyone,
>
> I have checked out the nebula plugins from CVS (examples, nebface,
> snippets, tests, widgets) and the examples plugin is showing several
> compiler errors in PGroupExampleTab:
>
> Severity and Description Path Resource Location Creation
> Time Id
> The method setToggleRenderer(AbstractRenderer) in the type PGroup is not
> applicable for the arguments (AbstractRenderer)
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 86 1165421637528 1042263
> Type mismatch: cannot convert from ChevronsToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 52 1165421637528 1042259
> Type mismatch: cannot convert from MinMaxToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 56 1165421637528 1042260
> Type mismatch: cannot convert from TreeNodeToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 64 1165421637528 1042262
> Type mismatch: cannot convert from TwisteToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 60 1165421637528 1042261
>
> Is anybody else having this problem? The code looks valid to me; I
> suspect it may be a problem in the compiler. I just wanted to check
> here before posting a bug report to JDT.
>
> Matthew

Forgot to mention I'm using Eclipse SDK 3.3M3 (I20061102-1715)
Re: Compiler error in org.eclipse.swt.nebula.examples [message #19953 is a reply to message #19909] Wed, 06 December 2006 16:32 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Found it: the import in PGroupExampleTab was importing the
AbstractRenderer class in the grid package instead of the pgroup
package. Patch follows:

### Eclipse Workspace Patch 1.0
#P org.eclipse.swt.nebula.examples
Index: src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
============================================================ =======
RCS file:
/cvsroot/technology/org.eclipse.swt.nebula/org.eclipse.swt.n ebula.examples/src/org/eclipse/swt/nebula/examples/parts/PGr oupExampleTab.java,v
retrieving revision 1.5
diff -u -r1.5 PGroupExampleTab.java
--- src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 25
Oct 2006 19:49:29 -0000 1.5
+++ src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 6
Dec 2006 16:31:49 -0000
@@ -8,8 +8,8 @@
import org.eclipse.swt.nebula.examples.AbstractExampleTab;
import org.eclipse.swt.nebula.examples.ButtonFactory;
import org.eclipse.swt.nebula.examples.ExamplesView;
-import org.eclipse.swt.nebula.widgets.grid.AbstractRenderer;
import org.eclipse.swt.nebula.widgets.pgroup.AbstractGroupStrategy;
+import org.eclipse.swt.nebula.widgets.pgroup.AbstractRenderer;
import org.eclipse.swt.nebula.widgets.pgroup.ChevronsToggleRenderer ;
import org.eclipse.swt.nebula.widgets.pgroup.FormGroupStrategy;
import org.eclipse.swt.nebula.widgets.pgroup.MinMaxToggleRenderer;
Re: Compiler error in org.eclipse.swt.nebula.examples [message #19999 is a reply to message #19953] Wed, 06 December 2006 17:41 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Sorry Matthew, I've been making changes and some things are committed
some are not.

-Chris

Matthew Hall wrote:
> Found it: the import in PGroupExampleTab was importing the
> AbstractRenderer class in the grid package instead of the pgroup
> package. Patch follows:
>
> ### Eclipse Workspace Patch 1.0
> #P org.eclipse.swt.nebula.examples
> Index: src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
> ============================================================ =======
> RCS file:
> /cvsroot/technology/org.eclipse.swt.nebula/org.eclipse.swt.n ebula.examples/src/org/eclipse/swt/nebula/examples/parts/PGr oupExampleTab.java,v
>
> retrieving revision 1.5
> diff -u -r1.5 PGroupExampleTab.java
> --- src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
> 25 Oct 2006 19:49:29 -0000 1.5
> +++ src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 6
> Dec 2006 16:31:49 -0000
> @@ -8,8 +8,8 @@
> import org.eclipse.swt.nebula.examples.AbstractExampleTab;
> import org.eclipse.swt.nebula.examples.ButtonFactory;
> import org.eclipse.swt.nebula.examples.ExamplesView;
> -import org.eclipse.swt.nebula.widgets.grid.AbstractRenderer;
> import org.eclipse.swt.nebula.widgets.pgroup.AbstractGroupStrategy;
> +import org.eclipse.swt.nebula.widgets.pgroup.AbstractRenderer;
> import org.eclipse.swt.nebula.widgets.pgroup.ChevronsToggleRenderer ;
> import org.eclipse.swt.nebula.widgets.pgroup.FormGroupStrategy;
> import org.eclipse.swt.nebula.widgets.pgroup.MinMaxToggleRenderer;
Re: Compiler error in org.eclipse.swt.nebula.examples [message #571727 is a reply to message #19879] Wed, 06 December 2006 16:24 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Matthew Hall wrote:
> Hello everyone,
>
> I have checked out the nebula plugins from CVS (examples, nebface,
> snippets, tests, widgets) and the examples plugin is showing several
> compiler errors in PGroupExampleTab:
>
> Severity and Description Path Resource Location Creation
> Time Id
> The method setToggleRenderer(AbstractRenderer) in the type PGroup is not
> applicable for the arguments (AbstractRenderer)
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 86 1165421637528 1042263
> Type mismatch: cannot convert from ChevronsToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 52 1165421637528 1042259
> Type mismatch: cannot convert from MinMaxToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 56 1165421637528 1042260
> Type mismatch: cannot convert from TreeNodeToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 64 1165421637528 1042262
> Type mismatch: cannot convert from TwisteToggleRenderer to
> AbstractRenderer
> org.eclipse.swt.nebula.examples/src/org/eclipse/swt/nebula/e xamples/parts
> PGroupExampleTab.java line 60 1165421637528 1042261
>
> Is anybody else having this problem? The code looks valid to me; I
> suspect it may be a problem in the compiler. I just wanted to check
> here before posting a bug report to JDT.
>
> Matthew

Forgot to mention I'm using Eclipse SDK 3.3M3 (I20061102-1715)
Re: Compiler error in org.eclipse.swt.nebula.examples [message #571761 is a reply to message #19909] Wed, 06 December 2006 16:32 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Found it: the import in PGroupExampleTab was importing the
AbstractRenderer class in the grid package instead of the pgroup
package. Patch follows:

### Eclipse Workspace Patch 1.0
#P org.eclipse.swt.nebula.examples
Index: src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
============================================================ =======
RCS file:
/cvsroot/technology/org.eclipse.swt.nebula/org.eclipse.swt.n ebula.examples/src/org/eclipse/swt/nebula/examples/parts/PGr oupExampleTab.java,v
retrieving revision 1.5
diff -u -r1.5 PGroupExampleTab.java
--- src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 25
Oct 2006 19:49:29 -0000 1.5
+++ src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 6
Dec 2006 16:31:49 -0000
@@ -8,8 +8,8 @@
import org.eclipse.swt.nebula.examples.AbstractExampleTab;
import org.eclipse.swt.nebula.examples.ButtonFactory;
import org.eclipse.swt.nebula.examples.ExamplesView;
-import org.eclipse.swt.nebula.widgets.grid.AbstractRenderer;
import org.eclipse.swt.nebula.widgets.pgroup.AbstractGroupStrategy;
+import org.eclipse.swt.nebula.widgets.pgroup.AbstractRenderer;
import org.eclipse.swt.nebula.widgets.pgroup.ChevronsToggleRenderer ;
import org.eclipse.swt.nebula.widgets.pgroup.FormGroupStrategy;
import org.eclipse.swt.nebula.widgets.pgroup.MinMaxToggleRenderer;
Re: Compiler error in org.eclipse.swt.nebula.examples [message #571803 is a reply to message #19953] Wed, 06 December 2006 17:41 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Sorry Matthew, I've been making changes and some things are committed
some are not.

-Chris

Matthew Hall wrote:
> Found it: the import in PGroupExampleTab was importing the
> AbstractRenderer class in the grid package instead of the pgroup
> package. Patch follows:
>
> ### Eclipse Workspace Patch 1.0
> #P org.eclipse.swt.nebula.examples
> Index: src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
> ============================================================ =======
> RCS file:
> /cvsroot/technology/org.eclipse.swt.nebula/org.eclipse.swt.n ebula.examples/src/org/eclipse/swt/nebula/examples/parts/PGr oupExampleTab.java,v
>
> retrieving revision 1.5
> diff -u -r1.5 PGroupExampleTab.java
> --- src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava
> 25 Oct 2006 19:49:29 -0000 1.5
> +++ src/org/eclipse/swt/nebula/examples/parts/PGroupExampleTab.j ava 6
> Dec 2006 16:31:49 -0000
> @@ -8,8 +8,8 @@
> import org.eclipse.swt.nebula.examples.AbstractExampleTab;
> import org.eclipse.swt.nebula.examples.ButtonFactory;
> import org.eclipse.swt.nebula.examples.ExamplesView;
> -import org.eclipse.swt.nebula.widgets.grid.AbstractRenderer;
> import org.eclipse.swt.nebula.widgets.pgroup.AbstractGroupStrategy;
> +import org.eclipse.swt.nebula.widgets.pgroup.AbstractRenderer;
> import org.eclipse.swt.nebula.widgets.pgroup.ChevronsToggleRenderer ;
> import org.eclipse.swt.nebula.widgets.pgroup.FormGroupStrategy;
> import org.eclipse.swt.nebula.widgets.pgroup.MinMaxToggleRenderer;
Previous Topic:Compiler error in org.eclipse.swt.nebula.examples
Next Topic:Grid item resize
Goto Forum:
  


Current Time: Thu Nov 27 14:22:57 GMT 2014

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

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