Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Doubt reg ColorDialog and Forms/Windows

Hi

i am developing a plugin for eclipse 3.4 using SWT. I am adding certaing menus of the project in the eclipse perference page. In one page there is a button , on clicking the button , the colorDialog should be displayed. The ColorDialog needs both the Shell and Display . When i instanciate Shell and Display it results in a Invalid Thread Access exception. Please tell me how to overcome this and also display the ColorDialog when pressing a button(in Selection Listener Event).

In another page , i want to display a form when a button is clicked with some custom fields(Description , title) . i have instanciated the Form and FormToolkit objects , but it does not get displayed. please tell me how to display a form with certain fields like Label , text and Button. can i use Windows instead of form to get data.

Thanks in Advance

K Sathya Narayanan

Not what you were looking for? View more on this topic or Ask a question