Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created a wizard page for logging in in Bioclipse.
- Loading branch information
1 parent
833b9c7
commit 53f8401
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
plugins/net.bioclipse.usermanager/src/net/bioclipse/usermanager/LoginWizardPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package net.bioclipse.usermanager; | ||
|
||
import net.bioclipse.usermanager.dialogs.DialogArea; | ||
|
||
import org.eclipse.jface.wizard.WizardPage; | ||
import org.eclipse.swt.widgets.Composite; | ||
|
||
public class LoginWizardPage extends WizardPage { | ||
|
||
private DialogArea loginDialogArea; | ||
|
||
protected LoginWizardPage(String pageName, UserContainer userContainer) { | ||
super(pageName); | ||
this.loginDialogArea = new DialogArea(userContainer ,true); | ||
} | ||
|
||
@Override | ||
public void createControl(Composite parent) { | ||
Composite container = loginDialogArea.getLoginArea(parent); | ||
setControl(container); | ||
setErrorMessage(loginDialogArea.getErrorMessage()); | ||
} | ||
|
||
@Override | ||
public boolean isPageComplete() { | ||
return loginDialogArea.getErrorFlag(); | ||
} | ||
|
||
} |