//Note, we could use the CompareUIPlugin.getDefault().getPreferenceStore() directly, but it's access
//is restricted, so, we go to the preferences of the previously created compare configuration.
stores.add(prefs);
}
CompareConfiguration cc = new CompareConfiguration(new ChainedPreferenceStore(
stores.toArray(new IPreferenceStore[stores.size()])));
cc.setAncestorImage(mp.getAncestorImage(null));
cc.setAncestorLabel(mp.getAncestorLabel(null));
cc.setLeftImage(mp.getLeftImage(null));
cc.setLeftLabel(mp.getLeftLabel(null));
cc.setLeftEditable(mp.isLeftEditable());
cc.setRightImage(mp.getRightImage(null));
cc.setRightLabel(mp.getRightLabel(null));
cc.setRightEditable(mp.isRightEditable());
try {
cc.setContainer(mp.getContainer());
} catch (Throwable e) {
//Ignore: not available in Eclipse 3.2.
}
return cc;