1 package org.argeo.documents.e4.parts;
2
3 import javax.annotation.PostConstruct;
4
5 import org.argeo.documents.composites.DocumentsFileComposite;
6 import org.argeo.eclipse.ui.EclipseUiUtils;
7 import org.eclipse.swt.SWT;
8 import org.eclipse.swt.widgets.Composite;
9
10
11 public class FileEditor extends AbstractDocumentsEditor {
12
13
14 @PostConstruct
15 public void createPartControl(Composite parent) {
16 init();
17
18 parent.setLayout(EclipseUiUtils.noSpaceGridLayout());
19 DocumentsFileComposite dfc = new DocumentsFileComposite(parent, SWT.NO_FOCUS, getNode(), getDocumentsService(),
20 getNodeFileSystemProvider());
21 dfc.setLayoutData(EclipseUiUtils.fillAll());
22 parent.layout(true, true);
23 }
24 }