Skip to main content



      Home
Home » Eclipse Projects » Sirius » Two diagram problems on Linux machines
Two diagram problems on Linux machines [message #1722843] Tue, 09 February 2016 09:50 Go to next message
Eclipse UserFriend
Hi all,

I've noticed two issues which seem to occur only on Linux systems. We
tried two Linux machines using Kubuntu 15.10 with KDE Plasma 5.5.3, one
Mac and a Windows 8 installation. On Mac and Windows it works, but not
on Linux.

1. It is not possible to get the grid visible. Tried various colours and
styles, but it is simply not shown.
2. When entering direct editing using F2 or two mouse clicks all text is
selected per default. This selected text has white text colour on white
background and is therefore invisible. This happens only for direct
editing; selecting text in the properties view for example has white
text colour on blue background.

My questions:

1. Can anybody confirm this behaviour on a Linux machine using the same
or another setup (distribution, window manager, versions, theme)?
2. If yes, is this a GTK or a Sirius bug?
3. Any idea about what I could try to get the grid visible? If not I
could still remove the grid by default (as it is a nice-to-have
requirement), so that the same look n feel is used for all operating
systems.
4. The 2nd issue is more important, since it affects basic usage. Would
it be possible to take influence on the colours used in direct editing
somehow? I've tried changing several colours in general preferences
("General > Appearance > Colours and Fonts" as well as "General >
Editors > Text Editors") and Sirius preferences ("Sirius > Sirius
Diagram > Appearance"), but didn't cope with causing a change. Also I've
looked at GEF sources, but did not find out anything useful yet except
that the DirectEditManager class cares for creating and disposing a cell
editor as well as an IFigure.

Thank you very much,
Axel

[Updated on: Tue, 09 February 2016 09:51] by Moderator

Re: Two diagram problems on Linux machines [message #1723504 is a reply to message #1722843] Tue, 16 February 2016 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Le 09/02/2016 15:50, Axel Guckelsberger a écrit :
> Hi all,
Hi.

>
> I've noticed two issues which seem to occur only on Linux systems. We
> tried two Linux machines using Kubuntu 15.10 with KDE Plasma 5.5.3, one
> Mac and a Windows 8 installation. On Mac and Windows it works, but not
> on Linux.
>
> 1. It is not possible to get the grid visible. Tried various colours and
> styles, but it is simply not shown.
> 2. When entering direct editing using F2 or two mouse clicks all text is
> selected per default. This selected text has white text colour on white
> background and is therefore invisible. This happens only for direct
> editing; selecting text in the properties view for example has white
> text colour on blue background.
>
> My questions:
>
> 1. Can anybody confirm this behaviour on a Linux machine using the same
> or another setup (distribution, window manager, versions, theme)?
> 2. If yes, is this a GTK or a Sirius bug?
> 3. Any idea about what I could try to get the grid visible? If not I
> could still remove the grid by default (as it is a nice-to-have
> requirement), so that the same look n feel is used for all operating
> systems.

This is an issue we've already encountered, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=435878. It looks like it's
not specific to Sirius (we reproduced it using plain GMF diagrams), and
it's probably in the Draw2D layer and/or SWT/Gtk/Cairo.

Unfortunately, it seems highly system dependant. A recent post on the
GMF forum where we mentioned the issue almost 2 years ago even indicates
it could depend on the graphics driver used
(https://www.eclipse.org/forums/index.php/t/780844/).

> 4. The 2nd issue is more important, since it affects basic usage. Would
> it be possible to take influence on the colours used in direct editing
> somehow? I've tried changing several colours in general preferences
> ("General > Appearance > Colours and Fonts" as well as "General >
> Editors > Text Editors") and Sirius preferences ("Sirius > Sirius
> Diagram > Appearance"), but didn't cope with causing a change. Also I've
> looked at GEF sources, but did not find out anything useful yet except
> that the DirectEditManager class cares for creating and disposing a cell
> editor as well as an IFigure.

I don't believe we have customized anything in Sirius in this area
compared to the default GEF/GMF behavior. IIRC the colors are taken from
the system theme. On my machine, under GNOME, I get white text on blue
background when using the Adwaita theme, and white text on orange
background when using Ambiance. Do you get a different color when
chaning theme?

Regards,
Pierre-Charles

--
Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Two diagram problems on Linux machines [message #1723952 is a reply to message #1723504] Fri, 19 February 2016 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

> This is an issue we've already encountered, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=435878. It looks like it's
> not specific to Sirius (we reproduced it using plain GMF diagrams), and
> it's probably in the Draw2D layer and/or SWT/Gtk/Cairo.
>
> Unfortunately, it seems highly system dependant. A recent post on the
> GMF forum where we mentioned the issue almost 2 years ago even indicates
> it could depend on the graphics driver used
> (https://www.eclipse.org/forums/index.php/t/780844/).
Thanks. I postponed this issue for now.

>> 4. The 2nd issue is more important, since it affects basic usage. Would
>> it be possible to take influence on the colours used in direct editing
>> somehow? I've tried changing several colours in general preferences
>> ("General > Appearance > Colours and Fonts" as well as "General >
>> Editors > Text Editors") and Sirius preferences ("Sirius > Sirius
>> Diagram > Appearance"), but didn't cope with causing a change. Also I've
>> looked at GEF sources, but did not find out anything useful yet except
>> that the DirectEditManager class cares for creating and disposing a cell
>> editor as well as an IFigure.
>
> I don't believe we have customized anything in Sirius in this area
> compared to the default GEF/GMF behavior. IIRC the colors are taken from
> the system theme. On my machine, under GNOME, I get white text on blue
> background when using the Adwaita theme, and white text on orange
> background when using Ambiance. Do you get a different color when
> chaning theme?
No, unfortunately not. I tried several designs and colour schemes and
even changed the colour for selected text explicitely - all without any
effect.

Would it be possible to initially deselect the text when direct editing
starts? Is there any entrypoint to hook in custom code for that purpose?

Thanks,
Axel
Re: Two diagram problems on Linux machines [message #1735834 is a reply to message #1723952] Thu, 23 June 2016 03:38 Go to previous message
Eclipse UserFriend
Just a follow-up information: the 2nd problem related to direct-editing
is gone with Neon and Sirius 4.0!

Axel


Am 19.02.2016 um 10:23 schrieb Axel Guckelsberger:
> Hi,
>
> > This is an issue we've already encountered, see
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=435878. It looks like it's
>> not specific to Sirius (we reproduced it using plain GMF diagrams), and
>> it's probably in the Draw2D layer and/or SWT/Gtk/Cairo.
>>
>> Unfortunately, it seems highly system dependant. A recent post on the
>> GMF forum where we mentioned the issue almost 2 years ago even indicates
>> it could depend on the graphics driver used
>> (https://www.eclipse.org/forums/index.php/t/780844/).
> Thanks. I postponed this issue for now.
>
>>> 4. The 2nd issue is more important, since it affects basic usage. Would
>>> it be possible to take influence on the colours used in direct editing
>>> somehow? I've tried changing several colours in general preferences
>>> ("General > Appearance > Colours and Fonts" as well as "General >
>>> Editors > Text Editors") and Sirius preferences ("Sirius > Sirius
>>> Diagram > Appearance"), but didn't cope with causing a change. Also I've
>>> looked at GEF sources, but did not find out anything useful yet except
>>> that the DirectEditManager class cares for creating and disposing a cell
>>> editor as well as an IFigure.
>>
>> I don't believe we have customized anything in Sirius in this area
>> compared to the default GEF/GMF behavior. IIRC the colors are taken from
>> the system theme. On my machine, under GNOME, I get white text on blue
>> background when using the Adwaita theme, and white text on orange
>> background when using Ambiance. Do you get a different color when
>> chaning theme?
> No, unfortunately not. I tried several designs and colour schemes and
> even changed the colour for selected text explicitely - all without any
> effect.
>
> Would it be possible to initially deselect the text when direct editing
> starts? Is there any entrypoint to hook in custom code for that purpose?
>
> Thanks,
> Axel
>
Previous Topic:Adding a new edge in a diagram extension
Next Topic:Creating the subnode when parent node is created.
Goto Forum:
  


Current Time: Wed Mar 26 11:26:46 EDT 2025

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

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

Back to the top