directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r505253 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java
Date Fri, 09 Feb 2007 11:31:07 GMT
Author: pamarcelot
Date: Fri Feb  9 03:31:04 2007
New Revision: 505253

URL: http://svn.apache.org/viewvc?view=rev&rev=505253
Log:
Updated SchemaFormEditorSourceCodePage for a better display of the SchemaSourceViewer.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java?view=diff&rev=505253&r1=505252&r2=505253
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/SchemaFormEditorSourceCodePage.java
Fri Feb  9 03:31:04 2007
@@ -28,7 +28,6 @@
 import org.eclipse.jface.resource.JFaceResources;
 import org.eclipse.jface.text.Document;
 import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.source.SourceViewer;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.graphics.Font;
 import org.eclipse.swt.layout.GridData;
@@ -46,7 +45,7 @@
 public class SchemaFormEditorSourceCodePage extends FormPage
 {
     private Schema schema;
-    private SourceViewer schemaSourceViewer;
+    private SchemaSourceViewer schemaSourceViewer;
 
 
     /**
@@ -77,9 +76,12 @@
         schema = input.getSchema();
 
         // SOURCE CODE Field
-        schemaSourceViewer = new SchemaSourceViewer( form.getBody(), null, null, false, SWT.MULTI
);
-        schemaSourceViewer.getTextWidget().setLayoutData( new GridData( SWT.FILL, SWT.FILL,
true, true ) );
+        schemaSourceViewer = new SchemaSourceViewer( form.getBody(), null, null, false, SWT.H_SCROLL
| SWT.V_SCROLL );
+        GridData gd = new GridData( SWT.FILL, SWT.FILL, true, true );
+        gd.heightHint = 10;
+        schemaSourceViewer.getTextWidget().setLayoutData( gd );
         schemaSourceViewer.getTextWidget().setEditable( false );
+        
         
         // set text font
         Font font = JFaceResources.getFont( JFaceResources.TEXT_FONT );



Mime
View raw message