Skip to content

Commit

Permalink
Out-comment the button for test account properties
Browse files Browse the repository at this point in the history
  • Loading branch information
KlasJoensson committed Aug 22, 2012
1 parent cac25c5 commit 3db7d6a
Showing 1 changed file with 21 additions and 26 deletions.
Expand Up @@ -16,7 +16,6 @@
import java.util.Iterator;
import net.bioclipse.usermanager.AccountType.Property;
import net.bioclipse.usermanager.business.IUserManager;
import net.bioclipse.usermanager.business.UserManager;

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.fieldassist.ControlDecoration;
Expand All @@ -25,19 +24,14 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.PlatformUI;

import sun.security.krb5.Asn1Exception;

/**
*
* @author Klas Jšnsson (aka "konditorn")
Expand All @@ -52,7 +46,7 @@ public class AccountPropertiesPage {
private Text[] accountTxt;
private Label accountNameLabel;
private Text accountNameTxt;
private Button testLoginButton;
// private Button testLoginButton;
private ArrayList<Text> requiredFields = new ArrayList<Text>();
private Image reqImage = FieldDecorationRegistry.getDefault()
.getFieldDecoration(FieldDecorationRegistry.DEC_REQUIRED)
Expand Down Expand Up @@ -169,25 +163,26 @@ public void modifyText( ModifyEvent e ) {
i++;
}

new Label(accountComposite, SWT.NONE);
if (accountType.hasLogo()) {
new Label(accountComposite, SWT.NONE);
}
testLoginButton = new Button(accountComposite, SWT.PUSH);
testLoginButton.setText( "Test log-in" );
testLoginButton.addSelectionListener( new SelectionListener() {

@Override
public void widgetSelected( SelectionEvent e ) {
accountLoggIn();
}

@Override
public void widgetDefaultSelected( SelectionEvent e ) {

}

} );
// TODO Make the logic behind this button work properly
// new Label(accountComposite, SWT.NONE);
// if (accountType.hasLogo()) {
// new Label(accountComposite, SWT.NONE);
// }
// testLoginButton = new Button(accountComposite, SWT.PUSH);
// testLoginButton.setText( "Test log-in" );
// testLoginButton.addSelectionListener( new SelectionListener() {
//
// @Override
// public void widgetSelected( SelectionEvent e ) {
// accountLoggIn();
// }
//
// @Override
// public void widgetDefaultSelected( SelectionEvent e ) {
//
// }
//
// } );
}

/**
Expand Down

0 comments on commit 3db7d6a

Please sign in to comment.