Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [ANN] Generic Image Export Plug In
[ANN] Generic Image Export Plug In [message #207419] Mon, 16 January 2006 15:04 Go to next message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Hello all,

a few minutes ago, I uploaded the first version of an Image Export plug
in to SourceForge. It is an Eclipse plug in intended to simplify the
task of exporting images from GEF diagrams to several formats. We have
implemented BMP and JPEG export and are working on PDF and SVG. There
is already a first version of PDF export on SourceForge. SVG should be
following this week. For details and small samples of exported
diagrams, I would like to point you to

http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html

To the GEF gurus: I would have liked to provide sample figure providers
for the GEF examples. Unfortunately, the GEF examples do not export
their packages so I am not able to do that. I would have liked to write
something like

public class GEFShapesExampleFigureProvider
extends AbstractFigureProvider
{
public IFigure provideExportImageFigure(IFile diagramFile)
{
IFigure figure = null;
try
{
ObjectInputStream in =
new ObjectInputStream(diagramFile.getContents());
ShapesDiagram diagram = (ShapesDiagram) in.readObject();
in.close();

GraphicalViewer viewer =
createViewer(diagram, new ShapesEditPartFactory());
figure = getExportFigure(viewer);
}
catch (Exception e)
{
// Just an example.
e.printStackTrace();
}
return figure;
}
}

but I cannot access the examples' types (e.g. ShapesDiagram). Any
chance that might be changed in a future release?

Feedback is very much welcome. Regards, Thomas.
Re: [ANN] Generic Image Export Plug In [message #207556 is a reply to message #207419] Tue, 17 January 2006 18:16 Go to previous messageGo to next message
Min Idzelis is currently offline Min IdzelisFriend
Messages: 12
Registered: July 2009
Junior Member
FYI,

The GMF project (http://www.eclipse.org/gmf/) allows import/export of
SVG already.

Thanks,

Min Idzelis

Thomas Maier wrote:
> Hello all,
>
> a few minutes ago, I uploaded the first version of an Image Export plug
> in to SourceForge. It is an Eclipse plug in intended to simplify the
> task of exporting images from GEF diagrams to several formats. We have
> implemented BMP and JPEG export and are working on PDF and SVG. There
> is already a first version of PDF export on SourceForge. SVG should be
> following this week. For details and small samples of exported
> diagrams, I would like to point you to
>
> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>
Re: [ANN] Generic Image Export Plug In [message #208718 is a reply to message #207556] Wed, 08 February 2006 10:06 Go to previous messageGo to next message
Adrian Gygax is currently offline Adrian GygaxFriend
Messages: 13
Registered: July 2009
Junior Member
Do you know an example of how to use the SVG export feature of GMF in GEF?

Best regards
Adrian

Min Idzelis schrieb:
> FYI,
>
> The GMF project (http://www.eclipse.org/gmf/) allows import/export of
> SVG already.
>
> Thanks,
>
> Min Idzelis
>
> Thomas Maier wrote:
>> Hello all,
>>
>> a few minutes ago, I uploaded the first version of an Image Export plug
>> in to SourceForge. It is an Eclipse plug in intended to simplify the
>> task of exporting images from GEF diagrams to several formats. We have
>> implemented BMP and JPEG export and are working on PDF and SVG. There
>> is already a first version of PDF export on SourceForge. SVG should be
>> following this week. For details and small samples of exported
>> diagrams, I would like to point you to
>>
>> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>>
Re: [ANN] Generic Image Export Plug In [message #208761 is a reply to message #207419] Wed, 08 February 2006 13:05 Go to previous messageGo to next message
Adrian Gygax is currently offline Adrian GygaxFriend
Messages: 13
Registered: July 2009
Junior Member
Hi Thomas!

Your plugin seems to have great potential and would be exactly what we
need for our GEF project.

How is the progress of the SVG support in your plugin?

Best regards
Adrian

Thomas Maier schrieb:
> Hello all,
>
> a few minutes ago, I uploaded the first version of an Image Export plug
> in to SourceForge. It is an Eclipse plug in intended to simplify the
> task of exporting images from GEF diagrams to several formats. We have
> implemented BMP and JPEG export and are working on PDF and SVG. There
> is already a first version of PDF export on SourceForge. SVG should be
> following this week. For details and small samples of exported
> diagrams, I would like to point you to
>
> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>
> To the GEF gurus: I would have liked to provide sample figure providers
> for the GEF examples. Unfortunately, the GEF examples do not export
> their packages so I am not able to do that. I would have liked to write
> something like
>
> public class GEFShapesExampleFigureProvider
> extends AbstractFigureProvider
> {
> public IFigure provideExportImageFigure(IFile diagramFile)
> {
> IFigure figure = null;
> try
> {
> ObjectInputStream in =
> new ObjectInputStream(diagramFile.getContents());
> ShapesDiagram diagram = (ShapesDiagram) in.readObject();
> in.close();
>
> GraphicalViewer viewer =
> createViewer(diagram, new ShapesEditPartFactory());
> figure = getExportFigure(viewer);
> }
> catch (Exception e)
> {
> // Just an example.
> e.printStackTrace();
> }
> return figure;
> }
> }
>
> but I cannot access the examples' types (e.g. ShapesDiagram). Any
> chance that might be changed in a future release?
>
> Feedback is very much welcome. Regards, Thomas.
Re: [ANN] Generic Image Export Plug In [message #208943 is a reply to message #208761] Thu, 09 February 2006 21:54 Go to previous messageGo to next message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Hi Adrian,

thanks for the nice words, I even see a couple of unexpected downloads
at SourceForge :). We implemented initial SVG export. I just uploaded
it to SourceForge, see

http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html

Next week I will take a look at GMF and check whether we can use their
export code. It is certainly more advanced than our code. It probably
couldn't be less advanced :>. In other words: we just started
implementing it and exported some very simple diagrams and it could be a
base to start working on. However, if the GMF code looks good I would
quickly dump our code and integrate theirs without looking back and just
keep the "have one generic image export plug in for all types of GEF
diagrams idea".

Regards, Thomas.

Adrian Gygax schrieb:
> Hi Thomas!
>
> Your plugin seems to have great potential and would be exactly what we
> need for our GEF project.
>
> How is the progress of the SVG support in your plugin?
>
> Best regards
> Adrian
>
> Thomas Maier schrieb:
>
>> Hello all,
>>
>> a few minutes ago, I uploaded the first version of an Image Export plug
>> in to SourceForge. It is an Eclipse plug in intended to simplify the
>> task of exporting images from GEF diagrams to several formats. We have
>> implemented BMP and JPEG export and are working on PDF and SVG. There
>> is already a first version of PDF export on SourceForge. SVG should be
>> following this week. For details and small samples of exported
>> diagrams, I would like to point you to
>>
>> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>>
>> To the GEF gurus: I would have liked to provide sample figure providers
>> for the GEF examples. Unfortunately, the GEF examples do not export
>> their packages so I am not able to do that. I would have liked to write
>> something like
>>
>> public class GEFShapesExampleFigureProvider
>> extends AbstractFigureProvider
>> {
>> public IFigure provideExportImageFigure(IFile diagramFile)
>> {
>> IFigure figure = null;
>> try
>> {
>> ObjectInputStream in =
>> new ObjectInputStream(diagramFile.getContents());
>> ShapesDiagram diagram = (ShapesDiagram) in.readObject();
>> in.close();
>>
>> GraphicalViewer viewer =
>> createViewer(diagram, new ShapesEditPartFactory());
>> figure = getExportFigure(viewer);
>> }
>> catch (Exception e)
>> {
>> // Just an example.
>> e.printStackTrace();
>> }
>> return figure;
>> }
>> }
>>
>> but I cannot access the examples' types (e.g. ShapesDiagram). Any
>> chance that might be changed in a future release?
>>
>> Feedback is very much welcome. Regards, Thomas.
Re: [ANN] Generic Image Export Plug In [message #208950 is a reply to message #207419] Thu, 09 February 2006 21:57 Go to previous message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Ok, I just upped the second release containing inital SVG export code.

Still, to the GEF gurus: how about exporting the GEF examples' packages?
Is that possible? Randy? Pratik? Anybody?

Regards, Thomas.

Thomas Maier schrieb:
> Hello all,
>
> a few minutes ago, I uploaded the first version of an Image Export plug
> in to SourceForge. It is an Eclipse plug in intended to simplify the
> task of exporting images from GEF diagrams to several formats. We have
> implemented BMP and JPEG export and are working on PDF and SVG. There
> is already a first version of PDF export on SourceForge. SVG should be
> following this week. For details and small samples of exported
> diagrams, I would like to point you to
>
> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>
> To the GEF gurus: I would have liked to provide sample figure providers
> for the GEF examples. Unfortunately, the GEF examples do not export
> their packages so I am not able to do that. I would have liked to write
> something like
>
> public class GEFShapesExampleFigureProvider
> extends AbstractFigureProvider
> {
> public IFigure provideExportImageFigure(IFile diagramFile)
> {
> IFigure figure = null;
> try
> {
> ObjectInputStream in =
> new ObjectInputStream(diagramFile.getContents());
> ShapesDiagram diagram = (ShapesDiagram) in.readObject();
> in.close();
>
> GraphicalViewer viewer =
> createViewer(diagram, new ShapesEditPartFactory());
> figure = getExportFigure(viewer);
> }
> catch (Exception e)
> {
> // Just an example.
> e.printStackTrace();
> }
> return figure;
> }
> }
>
> but I cannot access the examples' types (e.g. ShapesDiagram). Any
> chance that might be changed in a future release?
>
> Feedback is very much welcome. Regards, Thomas.


--
Thomas Maier - Research Assistant - University of Kassel, Germany
Previous Topic:Using external view for palette
Next Topic:DirectEdit and GroupRequest
Goto Forum:
  


Current Time: Fri Mar 29 07:30:25 GMT 2024

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

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

Back to the top