Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » i have two issue need you address
icon5.gif  i have two issue need you address [message #699773] Fri, 22 July 2011 05:37 Go to next message
Van  is currently offline Van
Messages: 3
Registered: July 2011
Junior Member
the first issue,i have some application that wrote by swing/awt,now we need to migrate it to swt,and in previous version we use the TableModel,as you know this class support TableModelListener that can listen some events such as TableModelEvent.UPDATE,TableModelEvent.INSERT,TableModelEvent.DELETE
but in swt there is no appropriate class can replace the TableModel class,and the Table class in swt apparently don't support any listener that can listen the events previously mentioned.so far,i don't find any appropriate approach

the second issue,how can i display the html text in swt and if there is any composite that was same like the JEditorPane of swing

could anybody give me some constructive proposal about the two issue
thx~
Re: i have two issue need you address [message #700314 is a reply to message #699773] Sat, 23 July 2011 03:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5281
Registered: July 2009
Senior Member
Am 22.07.11 11:37, schrieb Van:
> the first issue,i have some application that wrote by swing/awt,now we
> need to migrate it to swt,and in previous version we use the
> TableModel,as you know this class support TableModelListener that can
> listen some events such as
> TableModelEvent.UPDATE,TableModelEvent.INSERT,TableModelEvent.DELETE
> but in swt there is no appropriate class can replace the TableModel
> class,and the Table class in swt apparently don't support any listener
> that can listen the events previously mentioned.so far,i don't find any
> appropriate approach

You should use a TableViewer and if you combine that with Eclipse
Databinding which has an IObservableList (e.g. WritableList) and an
ObservableListContentProvider the table is always in sync with your model.

>
> the second issue,how can i display the html text in swt and if there is
> any composite that was same like the JEditorPane of swing
>

The Forms-Component has a control that is able to display HTML but I
don't exactly remember its name.

> could anybody give me some constructive proposal about the two issue
> thx~
Re: i have two issue need you address [message #701331 is a reply to message #700314] Sun, 24 July 2011 21:15 Go to previous messageGo to next message
Van  is currently offline Van
Messages: 3
Registered: July 2011
Junior Member
thank you Tom,i will try the approach you mentioned.
Re: i have two issue need you address [message #701427 is a reply to message #701331] Mon, 25 July 2011 01:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5281
Registered: July 2009
Senior Member
for HTML i forgot that you can naturally also use a browser-widget to
display HTML.

Tom

Am 25.07.11 03:15, schrieb Van:
> thank you Tom,i will try the approach you mentioned.
icon9.gif  Re: i have two issue need you address [message #701451 is a reply to message #701427] Mon, 25 July 2011 02:12 Go to previous message
Van  is currently offline Van
Messages: 3
Registered: July 2011
Junior Member
it seems that the Forms-Component(if you indicate the Eclipse-Forms?) just can display the text with HTML-like tags,and it can't process the text's font and color like html did,and many HTML tags the Eclipse-Forms can't parse.i don't know if you have any good advice for me?

now,i will try the browser-widget you mentioned.

thx.

[Updated on: Mon, 25 July 2011 04:55]

Report message to a moderator

Previous Topic:Undo/Redo with 3.4 Commands
Next Topic:SWT browser bug
Goto Forum:
  


Current Time: Thu Aug 21 22:07:52 EDT 2014

Powered by FUDForum. Page generated in 0.01888 seconds