Closed GoogleCodeExporter closed 8 years ago
When saving the shape model file, for each shape definition a SVG file is
generated.
When hovering is triggered inside the Shape DSL Editor the before generated SVG
file is used to generate a png file (as the Eclipse SWT Browser is not able to
interpret SVG).
So by unknown causes the png is not generated in your (although I never
discovered the behavior with the pop dialog). Anyway I will handle this
exception by only support png file references inside the hover and in any other
case no image will be linked.
Original comment by de.abg.r...@gmail.com
on 5 Dec 2012 at 7:20
With the last build
(https://spray.ci.cloudbees.com/job/spray-assembly-build/109/) I tried to fix
it. But I am not sure if it works.
Original comment by de.abg.r...@gmail.com
on 6 Dec 2012 at 8:15
I tried out the build #109 (with workaround to install it, see Section "Please
provide any additional information below" in this issue
https://code.google.com/a/eclipselabs.org/p/spray/issues/detail?id=225 )
Problem is still the same (Download Pop-up Dialog). I dont have a folder
"shapepreviews/png" only one for the svg's.
A colleague of me doesn't have this problem. he has the same Eclipse
configuration as me. Maybe it is an Problem with my OS ?
Original comment by Nosezeic...@gmail.com
on 6 Dec 2012 at 6:48
I do not have the problem either, and I am using Window7, 64 bit as well.
Likely it is not your OS.
Original comment by joswar...@gmail.com
on 6 Dec 2012 at 6:52
It could be an issue with the configured browser in Eclipse, so a different
browser engine is used as usual.
Could you please post an screenshot of this download popup?
Original comment by de.abg.r...@gmail.com
on 6 Dec 2012 at 8:34
The Download dialoag even pops up when i open my .shape file
Original comment by Nosezeic...@gmail.com
on 6 Dec 2012 at 9:04
Attachments:
I tried to associate .svg files to a batch file wich does nothing as a
workaround. thats why the type is listed as Windows-Batchdatei (Batchfile). But
this didnt help either, the download dialog still asks me if i want to download
or open the file.
Original comment by Nosezeic...@gmail.com
on 6 Dec 2012 at 9:12
Found the place where preview.svg comes from, in ShapeOutlinePage
@Override
public void createControl(Composite parent) {
browser = new Browser(parent, SWT.NORMAL);
stateLocation = ShapeActivator.getInstance().getStateLocation().append("preview.svg");
if (!stateLocation.toFile().exists()) {
try {
FileWriter fw = new FileWriter(stateLocation.toFile());
fw.append("");
fw.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
super.createControl(parent);
}
So its not a problem of the shape hover but of the outline view. Maybe it helps
as a workaround to close the outline view.
Original comment by de.abg.r...@gmail.com
on 6 Dec 2012 at 9:31
Thank you, closing the outline view solved the problem :)
Original comment by Nosezeic...@gmail.com
on 6 Dec 2012 at 9:33
Original issue reported on code.google.com by
Nosezeic...@gmail.com
on 5 Dec 2012 at 5:06