Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » PropertySheet bug 10949?
PropertySheet bug 10949? [message #283699] Fri, 08 April 2005 18:40 Go to next message
Eclipse UserFriend
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 #283754 is a reply to message #283699] Mon, 11 April 2005 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Does anyone have any ideas this?

Thanks,

Cameron
Re: PropertySheet bug 10949? [message #284069 is a reply to message #283754] Sun, 17 April 2005 05:38 Go to previous message
Eclipse UserFriend
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;

}
Previous Topic:getadapters equals check fails when class not added as a dependency
Next Topic:setSelectionProvider does not fire change events from class extending ContentOutlinePage
Goto Forum:
  


Current Time: Sat May 10 10:25:06 EDT 2025

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

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

Back to the top