Fixed: [Issue 146] Add header to table in "Import Paths" preference
page.
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/DirectoryPathsEditor.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/DirectoryPathsEditor.java
index 33becc9..46c8c94 100644
--- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/DirectoryPathsEditor.java
+++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/DirectoryPathsEditor.java
@@ -58,13 +58,15 @@
tblVwrDirectoryPaths.setContentProvider(ArrayContentProvider.getInstance());
tblDirectoryPaths = tblVwrDirectoryPaths.getTable();
+ tblDirectoryPaths.setHeaderVisible(true);
tblDirectoryPaths.setLinesVisible(true);
tblDirectoryPaths.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
TableViewerColumn tblclmnVwrPath = new TableViewerColumn(tblVwrDirectoryPaths, SWT.NONE);
TableColumn tblclmnPath = tblclmnVwrPath.getColumn();
- tblclmnPath.setWidth(200);
+ tblclmnPath.setWidth(290);
tblclmnPath.setResizable(true);
+ tblclmnPath.setText(directories);
tblclmnVwrPath.setLabelProvider(new ColumnLabelProvider() {
@Override public String getText(Object element) {
return ((DirectoryPath) element).toString();
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.java
index a82b717..7da1a40 100644
--- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.java
+++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.java
@@ -19,6 +19,7 @@
public static String addDirectoryPath;
public static String browseFileSystem;
public static String browseWorkspace;
+ public static String directories;
public static String directory;
public static String directorySelection;
public static String down;
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.properties b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.properties
index 601cdf8..162c61a 100644
--- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.properties
+++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/pages/paths/Messages.properties
@@ -2,6 +2,7 @@
addDirectoryPath=Add directory path
browseFileSystem=File system...
browseWorkspace=Workspace...
+directories=Directories
directory=Directory:
directorySelection=Directory selection
down=Move Down