Skip to content

Commit

Permalink
TEIIDDES-3131
Browse files Browse the repository at this point in the history
 * changed text layout by removing empty line and reducing margins
  • Loading branch information
blafond committed Nov 6, 2017
1 parent 3abd05a commit 5acb4a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
import org.teiid.designer.core.workspace.ModelUtil;
import org.teiid.designer.ddl.importer.DdlImporter;
import org.teiid.designer.ddl.importer.TeiidDDLConstants;
import org.teiid.designer.ddl.importer.node.teiid.TeiidDdlImporter;
import org.teiid.designer.metamodels.core.ModelType;
import org.teiid.designer.metamodels.relational.RelationalPackage;
import org.teiid.designer.ui.common.util.WidgetFactory;
Expand All @@ -79,6 +78,10 @@
import org.teiid.designer.ui.explorer.ModelExplorerLabelProvider;
import org.teiid.designer.ui.util.ErrorHandler;

/**
* First page of the Teiid DDL import wizard
*
*/
public class TeiidDdlImporterPage extends WizardPage implements IPersistentWizardPage {

private static final String TEIID_DIALECT = "TEIID"; //$NON-NLS-1$
Expand Down Expand Up @@ -347,16 +350,16 @@ public void widgetSelected( final SelectionEvent event ) {
createNameOptionsTab(tabFolder);
createDdlTab(tabFolder);

Group helpGroup = WidgetFactory.createGroup(hostPanel, DdlImporterUiI18n.NOTES_GROUP_LABEL, SWT.NONE | SWT.BORDER_DASH,1); //$NON-NLS-1$
Group helpGroup = WidgetFactory.createGroup(hostPanel, DdlImporterUiI18n.NOTES_GROUP_LABEL, SWT.NONE | SWT.BORDER_DASH,1);
helpGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
GridLayoutFactory.fillDefaults().margins(2, 2).applyTo(helpGroup);
{
Text helpText = new Text(helpGroup, SWT.WRAP | SWT.READ_ONLY);
helpText.setText(DdlImporterUiI18n.NOTES_GROUP_TEXT);
helpText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
helpText.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_DARK_BLUE));
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.heightHint = 50;
gd.heightHint = 60;
gd.horizontalSpan=3;
helpText.setLayoutData(gd);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ importCompletedWithWarningsMessage = The relational model was created, but with
modelGroupLabel=Model Definition
optionsGroupLabel=Options
invalidDdlNotesLabel=Notes
invalidDdlNotesMessage= Import errors may occur if literal strings containing embedded single quotes are not properly escaped.\n\n\
\t\tSample VALID string:\t\t\'(''Stock'')\'\n\
\t\tSample INVALID string:\t\t\'('Stock')\'
invalidDdlNotesMessage= Import errors may occur if literal strings containing embedded single quotes are not properly escaped.\n\
\tSample VALID string:\t\'(''Stock'')\'\n\
\tSample INVALID string:\t\'('Stock')\'
differencePage.title = Select the Differences to Apply
differencePage.description = Select the items to apply, then click 'Finish'.
Expand Down

0 comments on commit 5acb4a7

Please sign in to comment.