|
|
Re: Manipulating the EMF Compare Editor [message #1386964 is a reply to message #1386407] |
Mon, 23 June 2014 09:48 |
|
Hi Anja,
Q1 : This has been recently fixed and the names are now displayed where you have orange text on your screenshot. IIRC, you can still alter them through the compareConfiguration (setLeftLabel, setRightLabel).
Q2 : No. We use the in-memory models loaded by EMF Compare and display them in a tree viewer, using the generated "edit" item and label providers for them.
Q3 : The merge buttons are only visible if the CompareConfiguration tells us that the models are editable. They won't be displayed if you call compareConfiguration.setLeftEditable(false) and compareConfiguration.setRightEditable(false). The other buttons of our toolbar are always displayed.
Q4 : You'll find some of our colors in General > Appearance > Colors and Fonts (EMF Compare category), but I don't think the colors you seek are available in there. You might want to look at CompareColorImpl, where all five colors IDs are defined (though these are intenal and subject to change), and manually change them to something of your liking. If that works, please raise an enhancement request on the bugzilla so that we can look at how to open an API or add these colors to the preferences. Something like this might do the trick :
IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
final ITheme currentTheme;
if (themeManager != null) {
currentTheme = themeManager.getCurrentTheme();
currentTheme.getColorRegistry().put(CompareColorImpl.INCOMING_CHANGE_COLOR_THEME_KEY, <RGB of your choice>);
}
Laurent Goubet
Obeo
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04409 seconds