use of org.hibernate.eclipse.hqleditor.HQLSourceViewer in project jbosstools-hibernate by jbosstools.
the class DynamicSQLPreviewView method createPartControl.
public void createPartControl(Composite parent) {
textViewer = new HQLSourceViewer(parent, new VerticalRuler(1), null, false, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL);
// textViewer.setEditable(false);
IDocument doc = new Document();
textViewer.setDocument(doc);
docSetupParticipant.setup(doc);
textViewer.getDocument().set(HibernateConsoleMessages.DynamicSQLPreviewView_no_hql_query_editor_selected);
textViewer.configure(new HQLSourceViewerConfiguration(null));
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IPartService service = window.getPartService();
hookIntoEditor(service.getActivePartReference());
}
Aggregations