RTSDK : Adjust the border size outside the browser widget
authordaeryong.park <bdragon.park@samsung.com>
Mon, 3 Apr 2017 01:34:51 +0000 (10:34 +0900)
committerdaeryong.park <bdragon.park@samsung.com>
Mon, 3 Apr 2017 01:34:51 +0000 (10:34 +0900)
- resize default margin 5 to 0

Change-Id: Iaee5a4653a69f17dd6fdef6db1cbd328b273c68d
Signed-off-by: daeryong.park <bdragon.park@samsung.com>
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/RtosBuildDialogPage.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/build/RtosBuildWizardDialog.java
rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/wizards/NewRtProjectWizardPage2.java

index ec61859..431340f 100644 (file)
 package org.tizen.rt.ide.build;\r
 \r
 import java.io.File;\r
-import java.io.FilenameFilter;\r
 import java.io.IOException;\r
 import java.util.List;\r
 \r
-import org.eclipse.core.resources.IContainer;\r
-import org.eclipse.core.resources.IResource;\r
 import org.eclipse.jface.dialogs.MessageDialog;\r
 import org.eclipse.jface.viewers.ArrayContentProvider;\r
 import org.eclipse.jface.viewers.DoubleClickEvent;\r
@@ -48,6 +45,7 @@ import org.eclipse.jface.viewers.TableViewer;
 import org.eclipse.jface.wizard.WizardPage;\r
 import org.eclipse.swt.SWT;\r
 import org.eclipse.swt.browser.Browser;\r
+import org.eclipse.swt.events.SelectionAdapter;\r
 import org.eclipse.swt.events.SelectionEvent;\r
 import org.eclipse.swt.events.SelectionListener;\r
 import org.eclipse.swt.graphics.Image;\r
@@ -58,16 +56,14 @@ import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;\r
 import org.eclipse.swt.widgets.DirectoryDialog;\r
 import org.eclipse.swt.widgets.Display;\r
+import org.eclipse.swt.widgets.Label;\r
 import org.eclipse.swt.widgets.Shell;\r
 import org.eclipse.swt.widgets.Table;\r
 import org.eclipse.swt.widgets.TableColumn;\r
+import org.eclipse.swt.widgets.Text;\r
 import org.tizen.rt.ide.Messages;\r
 import org.tizen.rt.ide.RtosCommandManager;\r
 import org.tizen.rt.ide.util.ResourceUtil;\r
-import org.tizen.rt.ide.util.SDKUtil;\r
-import org.eclipse.swt.widgets.Text;\r
-import org.eclipse.swt.widgets.Label;\r
-import org.eclipse.swt.events.SelectionAdapter;\r
 \r
 /**\r
  * DeviceGuideDialogPage Select Emulator Wizard Feature\r
@@ -206,9 +202,12 @@ public class RtosBuildDialogPage extends WizardPage {
         // Description area\r
         Composite descComposite = new Composite(container, SWT.BORDER);\r
         descComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 2));\r
-        descComposite.setLayout(new GridLayout(1, true));\r
+        GridLayout browserLayout = new GridLayout(1, true);\r
+        browserLayout.marginHeight = 0;\r
+        browserLayout.marginWidth = 0;\r
+        descComposite.setLayout(browserLayout);\r
 \r
-        browser = new Browser(descComposite, SWT.BORDER);\r
+        browser = new Browser(descComposite, SWT.NONE);\r
         browser.setJavascriptEnabled(false);\r
         browser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r
 \r
index ce168b7..1077d40 100644 (file)
@@ -121,8 +121,6 @@ public class RtosBuildWizardDialog extends WizardDialog {
         });
 
         setButtonLayoutData(make);
-        // cancel = getButton(IDialogConstants.CANCEL_ID);
-        // cancel.moveAbove(make);
     }
 
 }
index 4f9a9cb..079acc2 100644 (file)
@@ -41,6 +41,7 @@ import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.browser.Browser;
 import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.FillLayout;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
@@ -107,10 +108,17 @@ public class NewRtProjectWizardPage2 extends WizardPage {
         Label lblNewLabel = new Label(composite_l, SWT.NONE);
         lblNewLabel.setText(Messages.NewArtikProjectWizardPage2_LabelBoard);
 
-        table = new Table(composite_l, SWT.BORDER | SWT.FULL_SELECTION);
-        GridData gd_table = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
-        // gd_table.widthHint = 150;
-        table.setLayoutData(gd_table);
+        Composite tableComp = new Composite(composite_l, SWT.BORDER);
+        tableComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
+        GridLayout tableLayout = new GridLayout();
+        tableLayout.marginHeight = 0;
+        tableLayout.marginWidth = 0;
+        tableComp.setLayout(tableLayout);
+
+        table = new Table(tableComp, SWT.FULL_SELECTION | SWT.V_SCROLL);
+        GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
+        gd.heightHint = 250;
+        table.setLayoutData(gd);
 
         TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);
         tblclmnNewColumn.setWidth(160);
@@ -125,8 +133,16 @@ public class NewRtProjectWizardPage2 extends WizardPage {
         lblBoardName.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
         lblBoardName.setText(Messages.NewArtikProjectWizardPage2_LabelBoardName);
 
-        browser = new Browser(composite_r, SWT.BORDER);
-        browser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
+        Composite browserComp = new Composite(composite_r, SWT.BORDER);
+        gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
+        gd.widthHint = 400;
+        browserComp.setLayoutData(gd);
+        FillLayout browserLayout = new FillLayout();
+        browserLayout.marginHeight = 0;
+        browserLayout.marginWidth = 0;
+        browserComp.setLayout(browserLayout);
+
+        browser = new Browser(browserComp, SWT.NONE);
 
         initialize();
         dialogChanged();