Newbe question on refresh things. [message #532413] |
Sun, 09 May 2010 19:37 |
Chris Messages: 2 Registered: May 2010 |
Junior Member |
|
|
Hello guy's,
Im kind of a newbe in swt development. What i'm trying to do would be probably simple for one of you but I just don't get it !
I have a view , that is destinated to the login of my application.
(my application connected on a server, and when the apps is connected i just want to put "connected successful with user : x )
Well ... Iv'e got my view and I got 2 composite .. one for the login and one for the message , say logout ... I created 2 classe one for each and named " loginPanel" and logoutPanel. .. well .. I know this is not really a panel but .. its a bad habbit from Swing.
So ... When the view is loaded I show the login window like this :
public void createPartControl(Composite parent) {
parentComposite = parent;
setMainComposite(new Composite(parent, SWT.NULL));
//panels = new HashMap<PanelID,IPanel>();
GridLayout gridLayout = new GridLayout(1, false);
mainComposite.setLayout(gridLayout);
new LoginPanel(mainComposite, SWT.NULL);
}
and this is work fine !!
When my user is connected successfully, iv'e got a listener and I want the listener to remove the content of the mainComposite and replace it with the logout panel.
I've try to dispose and refresh , this is not working well ...
The view is empty , but when I modify the mainComposite it still empty after the refresh
Can somebody help me with that ?
Cheers,
--------------------
Christian Leclerc, CSSLP,SCJP,ZCE
Sphere 3 Solutions inc.
http://www.sphere3solutions.com
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02930 seconds