Can any one help me with updating the Hyperlink in a openning Formpage?
my work is to read Hyperlink from database and put them into
FormPage. If user click a update button, the Hyperlink in the Formpage should update.
currently I use a composite to contain the Hyperlinks .
I have try to update composite
call pack() method of composite
and redrow the composite
These ways are not working.
public Control createControl(){
Composite composite = toolkit.createComposite(composite);
databaseList = readfromDatabase();
for (String input : databaseLists)
Hyperlink link = toolkit.createHyperlink(composite, input, SWT.UNDERLINE_LINK);
}
button.addListener(new Listener(){
//refresh composite code.
})
this composite hold all the links. my button suppose to update the links if some one click this button.
I have try to redraw this composite ,
call composite.pack(),
composite.update()
recreate control ,
They are not working.
any way to insert hyperLink into a opening FormPage ?