Commit 30c8e356 authored by Matija Obreza's avatar Matija Obreza

Windows GUI

parent f1441c02
......@@ -211,9 +211,9 @@ public class AppWindow {
private Tree filesTree;
private Display display;
private TreeViewer treeViewer;
private Table table;
private TableViewer tableViewer;
private CTabFolder tabFolder;
private Table table;
static {
AppWindow.archiveIcon = ImageDescriptor.createFromURL(AppWindow.class.getResource("/icon/archive.png")).createImage();
......
......@@ -86,6 +86,7 @@ import swing2swt.layout.BorderLayout;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.eclipse.core.databinding.beans.PojoProperties;
import org.eclipse.wb.swt.SWTResourceManager;
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class SheetDisplay extends Composite {
......@@ -202,7 +203,7 @@ public class SheetDisplay extends Composite {
SashForm sashForm = new SashForm(this, SWT.VERTICAL);
sashForm.setLayoutData(BorderLayout.CENTER);
tableViewer = new TableViewer(sashForm, SWT.BORDER);
tableViewer = new TableViewer(sashForm, SWT.BORDER | SWT.FULL_SELECTION);
tableViewer.addDoubleClickListener(new IDoubleClickListener() {
@Override
public void doubleClick(DoubleClickEvent arg0) {
......@@ -272,6 +273,7 @@ public class SheetDisplay extends Composite {
tbtmColumnProperties.setText("Column");
ScrolledComposite scrolledComposite = new ScrolledComposite(tabFolder, SWT.V_SCROLL);
scrolledComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
scrolledComposite.setExpandVertical(true);
scrolledComposite.setExpandHorizontal(true);
tbtmColumnProperties.setControl(scrolledComposite);
......@@ -396,6 +398,7 @@ public class SheetDisplay extends Composite {
tbtmSheet.setText("Headers");
Composite compoHeaders = new Composite(tabFolder, SWT.NONE);
compoHeaders.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
tbtmSheet.setControl(compoHeaders);
compoHeaders.setLayout(new GridLayout(2, false));
new Label(compoHeaders, SWT.NONE);
......@@ -446,6 +449,7 @@ public class SheetDisplay extends Composite {
tbtmCSV.setText("CSV");
ScrolledComposite scrolledComposite2 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);
scrolledComposite2.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
scrolledComposite2.setExpandVertical(true);
scrolledComposite2.setExpandHorizontal(true);
tbtmCSV.setControl(scrolledComposite2);
......
......@@ -152,7 +152,7 @@ public class WorkspaceDialog extends Dialog {
btnOk.setText("OK");
Composite composite_2 = new Composite(shlWorkspaceLauncher, SWT.NONE);
composite_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
composite_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND));
composite_2.setLayoutData(BorderLayout.NORTH);
FillLayout fl_composite_2 = new FillLayout(SWT.HORIZONTAL);
fl_composite_2.marginWidth = 5;
......@@ -160,6 +160,7 @@ public class WorkspaceDialog extends Dialog {
composite_2.setLayout(fl_composite_2);
Label lblSelectWorkspaceDirectory = new Label(composite_2, SWT.WRAP | SWT.CENTER);
lblSelectWorkspaceDirectory.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND));
lblSelectWorkspaceDirectory.setText("Select workspace directory where your configuration and databases are stored.");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment