Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » any way to insert hyperLink into a opening FormPage ?
any way to insert hyperLink into a opening FormPage ? [message #523732] Mon, 29 March 2010 02:03
yizhang  is currently offline yizhang
Messages: 2
Registered: March 2010
Junior Member
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 ?

Previous Topic:[databinding] ObservableTreeContentProvider and WritableList used together?
Next Topic:Using Viewers with Hibernate
Goto Forum:
  


Current Time: Wed Aug 20 12:35:51 EDT 2014

Powered by FUDForum. Page generated in 0.01345 seconds