Skip to content

Commit

Permalink
Added tooltips for items on Source Binding Definition tab in VDB editor
Browse files Browse the repository at this point in the history
  • Loading branch information
lfabriko committed Jun 25, 2013
1 parent 98002a3 commit 6787e30
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public class Messages extends NLS {
public static String modelDetailsPanel_sourceNameLabel;
public static String modelDetailsPanel_translatorNameLabel;
public static String modelDetailsPanel_jndiNameLabel;
public static String modelDetailsPanel_multiSourceCheckBoxTooltip;
public static String modelDetailsPanel_addColumnCheckBoxTooltip;
public static String modelDetailsPanel_columnAliaslabelTooltip;
public static String modelDetailsPanel_addButtonTooltip;
public static String modelDetailsPanel_deleteButtonTooltip;

static {
NLS.initializeMessages("org.teiid.designer.vdb.ui.messages", Messages.class); //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public void documentChanged( final DocumentEvent event ) {
subPanel_1.setLayout(new GridLayout(4, false));
// Options panel contains: multi-source check-box, add column checkbox and source name alias label + text entry box
multiSourceCB = WidgetFactory.createButton(subPanel_1, Messages.modelDetailsPanel_multiSourceLabel, SWT.NONE, 1, SWT.CHECK);
multiSourceCB.setToolTipText(Messages.modelDetailsPanel_multiSourceCheckBoxTooltip);
multiSourceCB.addSelectionListener(new SelectionListener() {

@Override
Expand All @@ -199,6 +200,7 @@ public void widgetDefaultSelected(SelectionEvent e) {
});

addColumnCB = WidgetFactory.createButton(subPanel_1, Messages.modelDetailsPanel_addColumnLabel + " ", SWT.NONE, 1, SWT.CHECK); //$NON-NLS-1$
addColumnCB.setToolTipText(Messages.modelDetailsPanel_addColumnCheckBoxTooltip);
addColumnCB.addSelectionListener(new SelectionListener() {

@Override
Expand All @@ -216,6 +218,7 @@ public void widgetDefaultSelected(SelectionEvent e) {
});
columnAliaslabel = new Label(subPanel_1, SWT.NONE);
columnAliaslabel.setText("Column Alias"); //$NON-NLS-1$
columnAliaslabel.setToolTipText(Messages.modelDetailsPanel_columnAliaslabelTooltip);
columnAliasText = new Text(subPanel_1, SWT.BORDER | SWT.SINGLE);
columnAliasText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
columnAliasText.addModifyListener(new ModifyListener() {
Expand All @@ -241,6 +244,7 @@ public void modifyText(ModifyEvent e) {
addButton.setText(UILabelUtil.getLabel(UiLabelConstants.LABEL_IDS.ADD));
addButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
addButton.setEnabled(false);
addButton.setToolTipText(Messages.modelDetailsPanel_addButtonTooltip);
addButton.addSelectionListener(new SelectionAdapter() {

@Override
Expand All @@ -257,6 +261,7 @@ public void widgetSelected(SelectionEvent e) {
deleteButton.setText(UILabelUtil.getLabel(UiLabelConstants.LABEL_IDS.DELETE));
deleteButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
deleteButton.setEnabled(false);
deleteButton.setToolTipText(Messages.modelDetailsPanel_deleteButtonTooltip);
deleteButton.addSelectionListener(new SelectionAdapter() {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@


vdbBuildTaskName=Building VDBs
modelDetailsPanel_multiSourceCheckBoxTooltip=Get data from multiple sources with identical scheme
modelDetailsPanel_addColumnCheckBoxTooltip=Add column on view which represents name of data source
modelDetailsPanel_columnAliaslabelTooltip=Name of column on view which represents name of data source
modelDetailsPanel_addButtonTooltip=Add a data source
modelDetailsPanel_deleteButtonTooltip=Delete a data source
vdbBuildSubTaskName=Validating vdb "{0}"
vdbFilesBuildProblemMsg=One or more Teiid Designer vdb files could not be validated
vdblFileBuildErrorMsg= The Teiid Designer vdb file "{0}" could not be validated
refactorModelVdbDependencyTitle = Model-VDB Dependency Detected
refactorModelVdbDependencyMessage_noOpenEditors = \
A copy of the model you are moving "{0}" exists in one or more VDBs in this project.\n\n\
Validation warnings will be created for each affected VDB.\n\n\
Click 'OK' to continue
refactorModelVdbDependencyMessage_openEditors = \
A copy of the model you are moving "{0}" exists in one or more VDBs in this project.\n\n\
Open VDB Editors will be closed prior to refactoring. Note that validation warnings will be created for each \
affected VDB. Use the Quick Fix action in the problems view to synchronize your VDBs before re-opening them in an editor.\n\n\
Click 'OK' to continue
refactorModelVdbDependencyMessage_noOpenEditors = A copy of the model you are moving "{0}" exists in one or more VDBs in this project.\n\nValidation warnings will be created for each affected VDB.\n\nClick 'OK' to continue
refactorModelVdbDependencyMessage_openEditors = A copy of the model you are moving "{0}" exists in one or more VDBs in this project.\n\nOpen VDB Editors will be closed prior to refactoring. Note that validation warnings will be created for each affected VDB. Use the Quick Fix action in the problems view to synchronize your VDBs before re-opening them in an editor.\n\nClick 'OK' to continue
fixVdbPath_OpenEditorTitle= VDB Editor Open
fixVdbPath_OpenEditorMessage= VDB editor for "{0}" will be closed before before synchronizing model path.
synchronizeVdbLabel = Synchronize VDB
Expand Down

0 comments on commit 6787e30

Please sign in to comment.