|
From: Matthias K <mat...@us...> - 2006-04-26 16:39:24
|
Update of /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3053/src/org/jcommander/ui/filepanel/actions Modified Files: SimpleOpenURLAction.java Log Message: first part of migration to JFace dialogs Index: SimpleOpenURLAction.java =================================================================== RCS file: /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/actions/SimpleOpenURLAction.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SimpleOpenURLAction.java 24 Apr 2006 20:40:58 -0000 1.5 --- SimpleOpenURLAction.java 26 Apr 2006 16:39:19 -0000 1.6 *************** *** 8,11 **** --- 8,13 ---- import org.apache.commons.vfs.FileType; import org.eclipse.jface.action.IAction; + import org.eclipse.jface.action.Separator; + import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.jface.dialogs.IMessageProvider; import org.eclipse.jface.dialogs.TitleAreaDialog; *************** *** 127,132 **** * @see org.jcommander.ui.filepanel.dialogs.DisappearableComposite#createContents(org.eclipse.swt.widgets.Composite) */ ! protected void createContents(Composite parent) { ! messageText = new Text(parent,SWT.MULTI|SWT.V_SCROLL|SWT.BORDER|SWT.READ_ONLY); GridData messageTextData = new GridData(); messageTextData.grabExcessHorizontalSpace=true; --- 129,140 ---- * @see org.jcommander.ui.filepanel.dialogs.DisappearableComposite#createContents(org.eclipse.swt.widgets.Composite) */ ! protected Composite createContents(Composite parent) { ! Composite messageComp = new Composite(parent,SWT.NONE); ! GridLayout messageLayout = new GridLayout(); ! messageLayout.marginWidth=0; ! messageLayout.marginHeight=1; ! messageComp.setLayout(messageLayout); ! messageComp.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true)); ! messageText = new Text(messageComp,SWT.MULTI|SWT.V_SCROLL|SWT.BORDER|SWT.READ_ONLY); GridData messageTextData = new GridData(); messageTextData.grabExcessHorizontalSpace=true; *************** *** 135,139 **** messageTextData.verticalAlignment=SWT.FILL; messageTextData.minimumHeight=60; ! messageText.setLayoutData(messageTextData); } --- 143,148 ---- messageTextData.verticalAlignment=SWT.FILL; messageTextData.minimumHeight=60; ! messageText.setLayoutData(messageTextData); ! return messageComp; } *************** *** 146,149 **** --- 155,165 ---- messageArea.setLayoutData(messageData); + Label sep = new Label(parent,SWT.SEPARATOR | SWT.HORIZONTAL); + GridData labelData = new GridData(); + labelData.grabExcessHorizontalSpace=true; + labelData.horizontalAlignment=SWT.FILL; + labelData.verticalIndent=50; + sep.setLayoutData(labelData); + return dialogArea; } |