Skip to content

Commit

Permalink
Merge pull request #2160 from ddiroma/buttons
Browse files Browse the repository at this point in the history
[BACKLOG-6464] fixed buttons for mac OS. Ran checkstyle.
  • Loading branch information
mdamour1976 committed Feb 11, 2016
2 parents c527904 + 928927f commit 0f67ffd
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -405,6 +405,8 @@ public String openRepoDialog() {
wSelection.select( 0 );
}

int width = 75;

Label separator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL );
FormData fd_separator = new FormData();
fd_separator.top = new FormAttachment( wSelection, 35 );
Expand All @@ -418,6 +420,7 @@ public String openRepoDialog() {
fd_btnHelp.top = new FormAttachment( separator, 12 );
fd_btnHelp.left = new FormAttachment( 0, 10 );
fd_btnHelp.bottom = new FormAttachment( 100, -10 );
fd_btnHelp.width = width;
btnHelp.setLayoutData( fd_btnHelp );
btnHelp.setText( BaseMessages.getString( PKG, "System.Button.Help" ) );
btnHelp.addSelectionListener( new SelectionAdapter() {
Expand All @@ -435,7 +438,7 @@ public void widgetSelected( SelectionEvent arg0 ) {
fd_wCancel.top = new FormAttachment( separator, 12 );
fd_wCancel.right = new FormAttachment( 100, -10 );
fd_wCancel.bottom = new FormAttachment( 100, -10 );
fd_wCancel.width = 65;
fd_wCancel.width = width;
wCancel.setLayoutData( fd_wCancel );
wCancel.setText( BaseMessages.getString( PKG, "System.Button.Cancel" ).trim() );

Expand All @@ -452,7 +455,7 @@ public void handleEvent( Event e ) {
fd_wOK.top = new FormAttachment( separator, 12 );
fd_wOK.right = new FormAttachment( wCancel, -5 );
fd_wOK.bottom = new FormAttachment( 100, -10 );
fd_wOK.width = 65;
fd_wOK.width = width;
wOK.setLayoutData( fd_wOK );

lsOK = new Listener() {
Expand Down

0 comments on commit 0f67ffd

Please sign in to comment.