|
|
|
|
|
|
|
Re: Want AntiAliased GEF? [message #143334 is a reply to message #143234] |
Mon, 19 July 2004 13:04   |
Eclipse User |
|
|
|
Brian Fernandes wrote:
Brian,
I don't understand what kind of install you are using:
- either you use the plugins / fragments inside the workench
- either you use the standalone jars
If you are seeing the preference pages, i guess you are working inside the
workbench.
In that case, you don't have to add j2d4swt.jar in your plugin classpath but to
add a dependency on the relevant plugins through the PDE plugin.xml editor.
Mixing the two class loading mechanisms may lead to the kind of error you have.
--
Christophe
> Hi Gunnar,
>
> I was field testing the Holongate plugins with Eclipse 2.1.2 and GEF 2.1.2.
> I managed to get the the plugins installed without any problems - I see the
> Java2D support page in the Preference dialog and the demos on the "Rendering
> Hints" page seem to work fast and fine.
>
> I added the j2d4swt.jar to my plugins classpath and changed all references
> to the following classes to their J2D counterparts
> GraphicalEditorWithPalette, ScrollingGraphicalViewer,
> ScalableFreeFormRootEditPart.
>
> Somewhere in the overridden createGraphicalViewer(), I hit this exception..
>
> java.lang.IllegalAccessError: tried to access class
> org.eclipse.draw2d.BufferedGraphicsSource from class
> org.eclipse.draw2d.J2DGraphicsSource
> at org.eclipse.draw2d.J2DGraphicsSource.<init>(J2DGraphicsSource.java:61)
> at
> org.eclipse.draw2d.J2DLightweightSystem.setControl(J2DLightw eightSystem.java
> :49)
> at org.eclipse.draw2d.FigureCanvas.<init>(FigureCanvas.java:83)
> at
> org.eclipse.gef.ui.parts.ScrollingGraphicalViewer.createCont rol(ScrollingGra
> phicalViewer.java:29)
> at
> org.eclipse.gef.ui.parts.J2DGraphicalEditorWithPalette.creat eGraphicalViewer
> (J2DGraphicalEditorWithPalette.java:42)
> ....
>
> the code that leads up to this is ..
> if (J2DRegistry.getHints().get(J2DGraphics.KEY_USE_JAVA2D) == Boolean.TRUE)
>
> I don't really know what this key maps to in the preference page - but I
> believe I have the necessary options turned on. Inspite of this, this value
> is false and the BufferedGraphicsSource class is being loaded.
>
> I don't really know if the problem is here, or elsewhere. The above happened
> in GEF + Eclipse 2.1.0 as well.
>
> Any ideas ?
>
> Could you tell me what you changed to get your editor working ?
>
> Thanks a bunch,
> Brian.
|
|
|
|
|
|
|
|
|
Re: Want AntiAliased GEF? [message #143430 is a reply to message #143421] |
Mon, 19 July 2004 16:59   |
Eclipse User |
|
|
|
For the little story:
Everything started with the SWT bug on win32: dashed lines of width > 1 are
displayed solid!
In fact, the SWT team have a high sensitivity to anything inside java.awt.*,
maybe with reason for some topics, maybe not.
All that stuff would be unecessary if the GC had a drawImage(BufferedImage
img,...) method, or if the GC was not a final class.
It is really a pity to see the work that have been done inside the ImageData
class to avoid having to write 'import java.awt.BufferedImage' inside an SWT class!
Having a fast, possibly native, method to convert a BufferedImage (or one of the
new Volatile, Offsreen variants) into an SWT Image would have preserved the time
of the SWT team, and the assets of the users.
--
Christophe
|
|
|
|
Re: Want AntiAliased GEF? [message #143487 is a reply to message #143334] |
Tue, 20 July 2004 01:02   |
Eclipse User |
|
|
|
Originally posted by: brian.fernandes.codito.com
Hi Christophe,
First - thanks for the plugin & thanks for the prompt support.
I was using the binary distribution, I think the org.holongate.gef fragment
was /is missing from the distribution (org.holongate.j2d.gef is there
though). So I grabbed J2DGraphicalEditorWithPalette from the standalone jars
:) Bad move.
As Gunnar and you suggested, I'm now using the fresh and updated CVS
checkouts.
I've got compile issues now though - classes like
J2DGraphicalEditorWithPalette are defined in a fragment org.holongate.gef
and I can't add a fragment as a dependancy to my plugin. If I add the
fragment to the build path - compile issues are resolved, but I get a
NoClassDefFound exception on J2DGraphicalEditorWithPalette in the runtime
workspace - I guess this can be somehow fixed, but I had no success so far.
As a temporary hack, I ultimately got things working by copying the
org.holongate.gef packages into my plugin. I also created a
J2DScalableRootEditPart and J2DScalableLayeredPane (I don't want the
freeforms)
I've managed to see some darned good antialiasing :)
Great work - I (and I'm sure many others) be very happy to see the GEF
support for Eclipse / GEF 3. You have my vote !
Thanks again,
Brian.
"Christophe" <christophe.avare@free.fr> wrote in message
news:cdgurm$eor$1@eclipse.org...
> Brian Fernandes wrote:
>
> Brian,
>
> I don't understand what kind of install you are using:
> - either you use the plugins / fragments inside the workench
> - either you use the standalone jars
>
> If you are seeing the preference pages, i guess you are working inside the
> workbench.
> In that case, you don't have to add j2d4swt.jar in your plugin classpath
but to
> add a dependency on the relevant plugins through the PDE plugin.xml
editor.
>
> Mixing the two class loading mechanisms may lead to the kind of error you
have.
> --
> Christophe
> > Hi Gunnar,
> >
> > I was field testing the Holongate plugins with Eclipse 2.1.2 and GEF
2.1.2.
> > I managed to get the the plugins installed without any problems - I see
the
> > Java2D support page in the Preference dialog and the demos on the
"Rendering
> > Hints" page seem to work fast and fine.
> >
> > I added the j2d4swt.jar to my plugins classpath and changed all
references
> > to the following classes to their J2D counterparts
> > GraphicalEditorWithPalette, ScrollingGraphicalViewer,
> > ScalableFreeFormRootEditPart.
> >
> > Somewhere in the overridden createGraphicalViewer(), I hit this
exception..
> >
> > java.lang.IllegalAccessError: tried to access class
> > org.eclipse.draw2d.BufferedGraphicsSource from class
> > org.eclipse.draw2d.J2DGraphicsSource
> > at
org.eclipse.draw2d.J2DGraphicsSource.<init>(J2DGraphicsSource.java:61)
> > at
> >
org.eclipse.draw2d.J2DLightweightSystem.setControl(J2DLightw eightSystem.java
> > :49)
> > at org.eclipse.draw2d.FigureCanvas.<init>(FigureCanvas.java:83)
> > at
> >
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer.createCont rol(ScrollingGra
> > phicalViewer.java:29)
> > at
> >
org.eclipse.gef.ui.parts.J2DGraphicalEditorWithPalette.creat eGraphicalViewer
> > (J2DGraphicalEditorWithPalette.java:42)
> > ....
> >
> > the code that leads up to this is ..
> > if (J2DRegistry.getHints().get(J2DGraphics.KEY_USE_JAVA2D) ==
Boolean.TRUE)
> >
> > I don't really know what this key maps to in the preference page - but I
> > believe I have the necessary options turned on. Inspite of this, this
value
> > is false and the BufferedGraphicsSource class is being loaded.
> >
> > I don't really know if the problem is here, or elsewhere. The above
happened
> > in GEF + Eclipse 2.1.0 as well.
> >
> > Any ideas ?
> >
> > Could you tell me what you changed to get your editor working ?
> >
> > Thanks a bunch,
> > Brian.
|
|
|
|
Re: Want AntiAliased GEF? [message #146301 is a reply to message #146283] |
Tue, 03 August 2004 12:09  |
Eclipse User |
|
|
|
Originally posted by: brian.fernandes.codito.com
I had the same problem - when I downloaded the binaries - the GEF classes
were not included; an oversight, I'm sure.
Use CVS to get the sources,
Brian.
"Holger Herzog" <holger.herzog@arcway.com> wrote in message
news:ceoc7d$2qh$1@eclipse.org...
> Hi Christophe!
>
> I downloaded the following archives:
>
> org.holongate.draw2D_2.1.2RC1.zip
> org.holongate.j2d.get_2.1.0RC1.zip
> org.holongate.j2d_2.0.0RC2.zip
>
> But I can't find any GEF class inside these archives (e.g.
> j2DScalableFreeformRootEditPart, J2DGraphicalEditorWithPalette, .. and
> so on).
>
> May you help me?
>
>
> Regards,
>
> Holger
|
|
|
Powered by
FUDForum. Page generated in 0.07983 seconds