Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-11-12 11:05:49 +0000
committerPaul Pazderski2019-11-13 22:33:45 +0000
commitb6bd797c1cd5e0e36ac429c32915bb2dbe3a8dda (patch)
tree6e9fd34a8fb3610eb0b96ac82e7b420d372388e0
parent81bd540c3525db28e533d28e2aac65522f083a37 (diff)
downloadeclipse.platform.ui-b6bd797c1cd5e0e36ac429c32915bb2dbe3a8dda.tar.gz
eclipse.platform.ui-b6bd797c1cd5e0e36ac429c32915bb2dbe3a8dda.tar.xz
eclipse.platform.ui-b6bd797c1cd5e0e36ac429c32915bb2dbe3a8dda.zip
Bug 552949 - [JobView] Add some more tooltipsI20191113-2315I20191113-1800
Change-Id: I54759f57dbc5fa31b35db4483080e5df92232ff6 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
-rw-r--r--examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java23
1 files changed, 14 insertions, 9 deletions
diff --git a/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java b/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java
index 00130fc2e7c..29ad113e371 100644
--- a/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java
+++ b/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java
@@ -179,8 +179,7 @@ public class JobsView extends ViewPart {
// create jobs
Button create = new Button(group, SWT.PUSH);
create.setText("Create jobs"); //$NON-NLS-1$
- create
- .setToolTipText("Creates and schedules jobs according to above parameters"); //$NON-NLS-1$
+ create.setToolTipText("Creates and schedules jobs according to above parameters"); //$NON-NLS-1$
create.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
create.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> createJobs()));
@@ -220,8 +219,7 @@ public class JobsView extends ViewPart {
// join the running test jobs
Button window = new Button(group, SWT.PUSH);
window.setText("Runnable in Window"); //$NON-NLS-1$
- window
- .setToolTipText("Using a runnable context in the workbench window"); //$NON-NLS-1$
+ window.setToolTipText("Using a runnable context in the workbench window"); //$NON-NLS-1$
window.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
window.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> runnableInWindow()));
@@ -242,7 +240,8 @@ public class JobsView extends ViewPart {
// show in dialog
Button showInDialog = new Button(group, SWT.PUSH);
showInDialog.setText("showInDialog"); //$NON-NLS-1$
- showInDialog.setToolTipText("Uses IProgressService.showInDialog"); //$NON-NLS-1$
+ showInDialog.setToolTipText(
+ "Uses IProgressService.showInDialog. Does nothing if IPreferenceConstants.RUN_IN_BACKGROUND is enabled"); //$NON-NLS-1$
showInDialog.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
showInDialog.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> showInDialog()));
@@ -330,6 +329,7 @@ public class JobsView extends ViewPart {
data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH;
quantityField.setLayoutData(data);
quantityField.setText("1"); //$NON-NLS-1$
+ quantityField.setToolTipText("Number of jobs to create at once"); //$NON-NLS-1$
// reschedule delay
label = new Label(body, SWT.NONE);
@@ -360,6 +360,7 @@ public class JobsView extends ViewPart {
// system
systemField = new Button(group, SWT.CHECK);
systemField.setText("System job"); //$NON-NLS-1$
+ systemField.setToolTipText("Set system flag when creating jobs"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
systemField.setLayoutData(data);
@@ -378,18 +379,21 @@ public class JobsView extends ViewPart {
// reschedule
rescheduleField = new Button(group, SWT.CHECK);
rescheduleField.setText("Reschedule"); //$NON-NLS-1$
+ rescheduleField.setToolTipText("Reschedule job on finish until job is canceled"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
rescheduleField.setLayoutData(data);
// keep
keepField = new Button(group, SWT.CHECK);
keepField.setText("Keep"); //$NON-NLS-1$
+ keepField.setToolTipText("Set the IProgressConstants.KEEP_PROPERTY to true"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
keepField.setLayoutData(data);
// keep one
keepOneField = new Button(group, SWT.CHECK);
keepOneField.setText("KeepOne"); //$NON-NLS-1$
+ keepOneField.setToolTipText("Set the IProgressConstants.KEEPONE_PROPERTY to true"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
keepOneField.setLayoutData(data);
@@ -402,31 +406,32 @@ public class JobsView extends ViewPart {
// whether the job is a user job
userField = new Button(group, SWT.CHECK);
userField.setText("User job"); //$NON-NLS-1$
+ userField.setToolTipText("Set user flag when creating jobs"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
userField.setLayoutData(data);
// whether the job has a goto action
gotoActionField = new Button(group, SWT.CHECK);
gotoActionField.setText("Goto action"); //$NON-NLS-1$
+ gotoActionField.setToolTipText("Create job with a clickable link to invoke a test action"); //$NON-NLS-1$
data = new GridData(GridData.FILL_HORIZONTAL);
gotoActionField.setLayoutData(data);
// whether the job should use a scheduling rule
schedulingRuleField = new Button(group, SWT.CHECK);
schedulingRuleField.setText("Schedule sequentially"); //$NON-NLS-1$
- schedulingRuleField
- .setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ schedulingRuleField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// failure
failureField = new Button(group, SWT.CHECK);
failureField.setText("Fail"); //$NON-NLS-1$
+ failureField.setToolTipText("Immediately end new job with error status"); //$NON-NLS-1$
failureField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// failure
noPromptField = new Button(group, SWT.CHECK);
noPromptField.setText("No Prompt"); //$NON-NLS-1$
- noPromptField
- .setToolTipText("Set the IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY to true"); //$NON-NLS-1$
+ noPromptField.setToolTipText("Set the IProgressConstants.NO_IMMEDIATE_ERROR_PROMPT_PROPERTY to true"); //$NON-NLS-1$
noPromptField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
}

Back to the top