Skip to content

Commit 3a75379

Browse files
committed
Issue #391: disable context help
Search for all classes derived from TitleAreaDialog and disable help in their constructor.
1 parent bc5c85d commit 3a75379

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
lines changed

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationConfigureDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public CheckConfigurationConfigureDialog(Shell parentShell,
166166
CheckConfigurationWorkingCopy config) {
167167
super(parentShell);
168168
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
169+
setHelpAvailable(false);
169170
mConfiguration = config;
170171
}
171172

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationPropertiesDialog.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
/**
6565
* Dialog to show/edit the properties (name, location, description) of a check
6666
* configuration. Also used to create new check configurations.
67-
*
67+
*
6868
* @author Lars Ködderitzsch
6969
*/
7070
public class CheckConfigurationPropertiesDialog extends TitleAreaDialog {
@@ -96,7 +96,7 @@ public class CheckConfigurationPropertiesDialog extends TitleAreaDialog {
9696

9797
/**
9898
* Creates the properties dialog for check configurations.
99-
*
99+
*
100100
* @param parent
101101
* the parent shell
102102
* @param checkConfig
@@ -108,6 +108,7 @@ public class CheckConfigurationPropertiesDialog extends TitleAreaDialog {
108108
public CheckConfigurationPropertiesDialog(Shell parent, CheckConfigurationWorkingCopy checkConfig,
109109
ICheckConfigurationWorkingSet workingSet) {
110110
super(parent);
111+
setHelpAvailable(false);
111112
mWorkingSet = workingSet;
112113
mCheckConfig = checkConfig;
113114
}
@@ -118,7 +119,7 @@ public CheckConfigurationPropertiesDialog(Shell parent, CheckConfigurationWorkin
118119

119120
/**
120121
* Returns the working set this dialog is operating on.
121-
*
122+
*
122123
* @return the check configuration working set
123124
*/
124125
public ICheckConfigurationWorkingSet getCheckConfigurationWorkingSet() {
@@ -127,7 +128,7 @@ public ICheckConfigurationWorkingSet getCheckConfigurationWorkingSet() {
127128

128129
/**
129130
* Sets the template for a new check configuration.
130-
*
131+
*
131132
* @param template
132133
* the template configuration
133134
*/
@@ -137,7 +138,7 @@ public void setTemplateConfiguration(ICheckConfiguration template) {
137138

138139
/**
139140
* Get the check configuration from the editor.
140-
*
141+
*
141142
* @return the check configuration
142143
*/
143144
public CheckConfigurationWorkingCopy getCheckConfiguration() {
@@ -155,7 +156,7 @@ public void create() {
155156

156157
/**
157158
* Creates the dialogs main contents.
158-
*
159+
*
159160
* @param parent
160161
* the parent composite
161162
*/
@@ -359,7 +360,7 @@ protected void okPressed() {
359360

360361
/**
361362
* Creates the configuration type specific location editor.
362-
*
363+
*
363364
* @param configType
364365
* the configuration type
365366
*/
@@ -438,7 +439,7 @@ private void initialize() {
438439

439440
/**
440441
* Creates a non conflicting name out of a name proposal.
441-
*
442+
*
442443
* @param config
443444
* the working copy to set the name on
444445
* @param checkConfigName

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/ResolvablePropertiesDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public class ResolvablePropertiesDialog extends TitleAreaDialog {
118118
public ResolvablePropertiesDialog(Shell parent, CheckConfigurationWorkingCopy checkConfig) {
119119
super(parent);
120120
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
121+
setHelpAvailable(false);
121122
mCheckConfig = checkConfig;
122123
}
123124

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/ResolvablePropertyEditDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public class ResolvablePropertyEditDialog extends TitleAreaDialog {
6666
*/
6767
ResolvablePropertyEditDialog(Shell parent, ResolvableProperty prop) {
6868
super(parent);
69+
setHelpAvailable(false);
6970
setShellStyle(getShellStyle() | SWT.RESIZE);
7071
mProperty = prop;
7172
}

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/RuleConfigurationEditDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public class RuleConfigurationEditDialog extends TitleAreaDialog {
109109
RuleConfigurationEditDialog(Shell parent, Module rule, boolean readonly, String title) {
110110
super(parent);
111111
setShellStyle(getShellStyle() | SWT.RESIZE);
112+
setHelpAvailable(false);
112113
mRule = rule;
113114
mReadonly = readonly;
114115
mTitle = title;

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/properties/FileMatchPatternEditDialog.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
/**
5353
* Dialog to edit file match patterns.
54-
*
54+
*
5555
* @author David Schneider
5656
* @author Lars Ködderitzsch
5757
*/
@@ -65,20 +65,21 @@ public class FileMatchPatternEditDialog extends TitleAreaDialog {
6565

6666
/**
6767
* Creates a file matching pattern editor dialog.
68-
*
68+
*
6969
* @param parentShell
7070
* the parent shell
7171
* @param pattern
7272
* the pattern
7373
*/
7474
public FileMatchPatternEditDialog(Shell parentShell, FileMatchPattern pattern) {
7575
super(parentShell);
76+
setHelpAvailable(false);
7677
mPattern = pattern;
7778
}
7879

7980
/**
8081
* Returns the pattern edited by this dialog.
81-
*
82+
*
8283
* @return the pattern
8384
*/
8485
public FileMatchPattern getPattern() {
@@ -165,7 +166,7 @@ protected void configureShell(Shell shell) {
165166

166167
/**
167168
* Creates the content assistant.
168-
*
169+
*
169170
* @return the content assistant
170171
*/
171172
private SubjectControlContentAssistant createContentAssistant() {

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/properties/FileSetEditDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public class FileSetEditDialog extends TitleAreaDialog {
133133
CheckstylePropertyPage propsPage) throws CheckstylePluginException {
134134
super(parent);
135135
setShellStyle(getShellStyle() | SWT.RESIZE);
136+
setHelpAvailable(false);
136137
mProject = project;
137138
mFileSet = fileSet;
138139
mPropertyPage = propsPage;

net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/stats/views/internal/CheckstyleMarkerFilterDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public class CheckstyleMarkerFilterDialog extends TitleAreaDialog {
137137
public CheckstyleMarkerFilterDialog(Shell shell, CheckstyleMarkerFilter filter) {
138138

139139
super(shell);
140+
setHelpAvailable(false);
140141
mFilter = filter;
141142
}
142143

0 commit comments

Comments
 (0)