PropertySheet bug 10949? [message #283699] |
Fri, 08 April 2005 18:40  |
Eclipse User |
|
|
|
Hello,
I am using Eclipse 3.0 release and am experiencing a problem similar bug
10949. This bug is marked "RESOLVED LATER" which I assume means it has
never been fixed? Is there a plan to resolve this anytime soon? If not,
is there a known workaround?
The problem I am having is that a ComboCellEditor on my property sheet
does not commit it's value if you select an item and, without changing
focus on the cell editor, you click another WorkbenchPart that causes the
PropertySheetViewer to lose focus. The value change is not commited.
However, when the PropertySheetViewer gets focus again with the same
PropertySheet/PropertySource, the cell editor *is* committed.
Regards,
Cameron
|
|
|
|
Re: PropertySheet bug 10949? [message #284069 is a reply to message #283754] |
Sun, 17 April 2005 05:38  |
Eclipse User |
|
|
|
Originally posted by: moziprox.altern.org
Cameron Bateman wrote:
> Does anyone have any ideas this?
>
> Thanks,
>
> Cameron
>
Try something like this:
class MyPropertyDescriptor extends ComboBoxPropertyDescriptor {
// ........
public CellEditor createPropertyEditor (Composite parent) {
ComboBoxCellEditor ce = new ComboBoxCellEditor (parent,
choices) {
protected Control createControl (Composite parent) {
final CCombo result = (CCombo) super.createControl (parent);
result.addSelectionListener (new SelectionListener () {
public void widgetDefaultSelected (SelectionEvent e) {
result.setEnabled (false);
}
public void widgetSelected (SelectionEvent e) {
result.setEnabled (false);
}
});
return result;
}
// .........
};
return ce;
}
|
|
|
Powered by
FUDForum. Page generated in 0.03069 seconds