Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / project / dialogs / TraceLibraryPathPropertyPage.java
index 8ba585ff5025fc03e39745f6289d4a01ad39cade..bd99112350d23b07e0715a0f41781de1da5b8066 100644 (file)
@@ -16,12 +16,13 @@ import java.io.File;
 
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
-import org.eclipse.linuxtools.lttng.ui.TraceHelper;
+import org.eclipse.linuxtools.lttng.core.TraceHelper;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.ModifyEvent;
 import org.eclipse.swt.events.ModifyListener;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Font;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
@@ -79,6 +80,34 @@ public class TraceLibraryPathPropertyPage extends PropertyPage {
             }
 
         });
+
+        Label noLabel = new Label(client, SWT.NONE);
+        noLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false));
+
+        Label descTextLabel = new Label(client, SWT.WRAP);
+        descTextLabel.setText(Messages.TraceLibraryPathProperty_Message);
+        GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
+        gd.widthHint = 400;
+        gd.horizontalSpan = 2;
+        descTextLabel.setLayoutData(gd);
+
+        Label noteBoldLabel = new Label(client, SWT.BOLD);
+        noteBoldLabel.setText(Messages.TraceLibraryPath_Note);
+        noteBoldLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,
+                false));
+        Font font = noteBoldLabel.getFont();
+        if (font.getFontData().length > 0)
+            noteBoldLabel.setFont(new Font(client.getDisplay(), font
+                    .getFontData()[0].getName(), font.getFontData()[0]
+                    .getHeight(), SWT.BOLD));
+
+        Label noteTextLabel = new Label(client, SWT.WRAP);
+        noteTextLabel.setText(Messages.TraceLibraryPath_Message);
+        gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
+        gd.widthHint = 400;
+        gd.horizontalSpan = 2;
+        noteTextLabel.setLayoutData(gd);
+                
         performDefaults();
         return client;
     }
This page took 0.024937 seconds and 5 git commands to generate.