Lines 19-24
Link Here
|
19 |
import org.eclipse.core.runtime.CoreException; |
19 |
import org.eclipse.core.runtime.CoreException; |
20 |
import org.eclipse.core.runtime.IAdaptable; |
20 |
import org.eclipse.core.runtime.IAdaptable; |
21 |
import org.eclipse.core.runtime.IProgressMonitor; |
21 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
|
22 |
import org.eclipse.datatools.connectivity.internal.DriverUtil; |
22 |
import org.eclipse.datatools.sqltools.editor.core.connection.ISQLEditorConnectionInfo; |
23 |
import org.eclipse.datatools.sqltools.editor.core.connection.ISQLEditorConnectionInfo; |
23 |
import org.eclipse.datatools.sqltools.internal.externalfile.ExternalSQLFileEditorInput; |
24 |
import org.eclipse.datatools.sqltools.internal.externalfile.ExternalSQLFileEditorInput; |
24 |
import org.eclipse.datatools.sqltools.internal.sqlscrapbook.SqlscrapbookPlugin; |
25 |
import org.eclipse.datatools.sqltools.internal.sqlscrapbook.SqlscrapbookPlugin; |
Lines 88-93
Link Here
|
88 |
Composite textComposite= new Composite(fDefaultComposite, SWT.NONE); |
89 |
Composite textComposite= new Composite(fDefaultComposite, SWT.NONE); |
89 |
textComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); |
90 |
textComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); |
90 |
textComposite.setLayout(new FillLayout()); |
91 |
textComposite.setLayout(new FillLayout()); |
|
|
92 |
super.setIs3270SupportRequired(is3270SupportRequired()); //ira |
91 |
super.createControl(textComposite, styles); |
93 |
super.createControl(textComposite, styles); |
92 |
|
94 |
|
93 |
} |
95 |
} |
Lines 119-124
Link Here
|
119 |
super(); |
121 |
super(); |
120 |
} |
122 |
} |
121 |
|
123 |
|
|
|
124 |
public boolean is3270SupportRequired() { |
125 |
return DriverUtil.is3270SupportRequired(getConnectionInfo().getConnectionProfile()); |
126 |
} |
127 |
|
122 |
public void init(IEditorSite site, IEditorInput input) throws PartInitException { |
128 |
public void init(IEditorSite site, IEditorInput input) throws PartInitException { |
123 |
super.init(site, input); |
129 |
super.init(site, input); |
124 |
} |
130 |
} |