4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
- *
7
+ *
8
8
* http://www.apache.org/licenses/LICENSE-2.0
9
- *
9
+ *
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -132,39 +132,45 @@ public void componentHidden() {
132
132
}
133
133
134
134
private void createActions () {
135
- new ActionBuilder ("Search Info" , getName ()).toolBarIcon (Icons .INFO_ICON )
135
+ new ActionBuilder ("Search Info" , getOwner ())
136
+ .toolBarIcon (Icons .INFO_ICON )
136
137
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Search_Info_Action" ))
137
138
.onAction (c -> showSearchInfo ())
138
139
.buildAndInstallLocal (this );
139
140
140
- new ActionBuilder ("Show Searched Functions" , getName ()).toolBarIcon (FUNCTIONS_ICON )
141
+ new ActionBuilder ("Show Searched Functions" , getOwner ())
142
+ .toolBarIcon (FUNCTIONS_ICON )
141
143
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Searched_Functions" ))
142
144
.onAction (c -> showSearchedFunctions ())
143
145
.buildAndInstallLocal (this );
144
146
145
- new ActionBuilder ("Filter Results" , getName ()).toolBarIcon (Icons .CONFIGURE_FILTER_ICON )
147
+ new ActionBuilder ("Filter Results" , getOwner ())
148
+ .toolBarIcon (Icons .CONFIGURE_FILTER_ICON )
146
149
.helpLocation (
147
150
new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Filter_Results_Action" ))
148
151
.onAction (c -> showFilterPanel ())
149
152
.buildAndInstallLocal (this );
150
153
151
- new ActionBuilder ("Filter Executable" , getName ()).popupMenuPath ("Filter on this Executable" )
154
+ new ActionBuilder ("Filter Executable" , getOwner ())
155
+ .popupMenuPath ("Filter on this Executable" )
152
156
.description ("Filter on a specific executable in the function match table" )
153
157
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Filter_On_Executable" ))
154
158
.withContext (ExecutableTableActionContext .class )
155
159
.enabledWhen (c -> c .getSelectedRowCount () == 1 )
156
160
.onAction (this ::filterOnExecutable )
157
161
.buildAndInstallLocal (this );
158
162
159
- new ActionBuilder ("Load Executable" , getName ()).popupMenuPath ("Load Executable" )
163
+ new ActionBuilder ("Load Executable" , getOwner ())
164
+ .popupMenuPath ("Load Executable" )
160
165
.description ("Load the selected executable into the Codebrowser" )
161
166
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Load_Executable" ))
162
167
.withContext (ExecutableTableActionContext .class )
163
168
.enabledWhen (c -> c .getSelectedRowCount () == 1 )
164
169
.onAction (this ::loadExecutable )
165
170
.buildAndInstallLocal (this );
166
171
167
- new ActionBuilder ("Compare Functions" , getName ()).popupMenuPath ("Compare Functions" )
172
+ new ActionBuilder ("Compare Functions" , getOwner ())
173
+ .popupMenuPath ("Compare Functions" )
168
174
.popupMenuGroup ("1" )
169
175
.keyBinding ("shift c" )
170
176
.sharedKeyBinding ()
@@ -175,23 +181,25 @@ private void createActions() {
175
181
.onAction (this ::compareFunctions )
176
182
.buildAndInstallLocal (this );
177
183
178
- new ActionBuilder ("Apply Function Name" , getName ()).popupMenuPath ("Apply Name" )
184
+ new ActionBuilder ("Apply Function Name" , getOwner ())
185
+ .popupMenuPath ("Apply Name" )
179
186
.popupMenuGroup (APPLY_GROUP , "1" )
180
187
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Apply_Name" ))
181
188
.withContext (BSimMatchesTableActionContext .class )
182
189
.enabledWhen (c -> c .getSelectedRowCount () > 0 )
183
190
.onAction (this ::applyName )
184
191
.buildAndInstallLocal (this );
185
192
186
- new ActionBuilder ("Apply Function Signature" , getName ()).popupMenuPath ("Apply Signature" )
193
+ new ActionBuilder ("Apply Function Signature" , getOwner ())
194
+ .popupMenuPath ("Apply Signature" )
187
195
.popupMenuGroup (APPLY_GROUP , "2" )
188
196
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Apply_Signature" ))
189
197
.withContext (BSimMatchesTableActionContext .class )
190
198
.enabledWhen (c -> c .getSelectedRowCount () > 0 )
191
199
.onAction (this ::applySignature )
192
200
.buildAndInstallLocal (this );
193
201
194
- new ActionBuilder ("Apply Signature and Datatypes" , getName ())
202
+ new ActionBuilder ("Apply Signature and Datatypes" , getOwner ())
195
203
.popupMenuPath ("Apply Signature and Data Types" )
196
204
.popupMenuGroup (APPLY_GROUP , "3" )
197
205
.helpLocation (
@@ -201,7 +209,7 @@ private void createActions() {
201
209
.onAction (this ::applySignatureWithDatatypes )
202
210
.buildAndInstallLocal (this );
203
211
204
- showExecutableTableAction = new ToggleActionBuilder ("Show Executables Table" , getName ())
212
+ showExecutableTableAction = new ToggleActionBuilder ("Show Executables Table" , getOwner ())
205
213
.toolBarIcon (SPLIT_VIEW_ICON )
206
214
.description ("Toggles showing Executables table" )
207
215
.helpLocation (
@@ -212,7 +220,8 @@ private void createActions() {
212
220
213
221
addLocalAction (new SelectionNavigationAction (plugin , matchesTable .getTable ()));
214
222
215
- new ActionBuilder ("Clear BSim Error Status" , getName ()).popupMenuPath ("Clear error status" )
223
+ new ActionBuilder ("Clear BSim Error Status" , getOwner ())
224
+ .popupMenuPath ("Clear error status" )
216
225
.helpLocation (new HelpLocation (BSimSearchPlugin .HELP_TOPIC , "Clear_Error_Status" ))
217
226
.withContext (BSimMatchesTableActionContext .class )
218
227
.enabledWhen (this ::canClearErrors )
0 commit comments