-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathplugin.xml
More file actions
640 lines (632 loc) · 29.9 KB
/
Copy pathplugin.xml
File metadata and controls
640 lines (632 loc) · 29.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.services">
<sourceProvider provider="software.aws.toolkits.eclipse.amazonq.lsp.auth.AuthSourceProvider">
<variable name="is_logged_in" priorityLevel="workbench"/>
</sourceProvider>
</extension>
<extension point="org.eclipse.ui.views">
<!-- Old View Ids registered necessary to migrate to ViewContainer -->
<category
name="Amazon Q"
id="amazonq">
</category>
<view
id="software.aws.toolkits.eclipse.amazonq.views.ReauthenticateView"
name="Amazon Q"
icon="icons/AmazonQ.png"
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.DependencyMissingView"
name="Amazon Q"
icon="icons/AmazonQ.png"
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.ChatAssetMissingView"
name="Amazon Q"
icon="icons/AmazonQ.png"
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
name="Amazon Q"
icon="icons/AmazonQ.png"
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"
category="amazonq"
inject="true">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQChatWebview"
name="Amazon Q"
icon="icons/AmazonQ.png"
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"
inject="true">
</view>
</extension>
<extension point="org.eclipse.ui.activities">
<!-- These activities and activityPatternBindings prevent the view from showing up in the Show View menu. Logic exists that will filter these views out. -->
<!-- ToolkitLoginWebview is intentionally excluded here as this should be the only view that should show in the menu. -->
<activityPatternBinding
activityId="software.aws.toolkits.eclipse.amazonq.activity.AmazonQCodeReferenceView"
isEqualityPattern="true"
pattern="amazon-q-eclipse/software.aws.toolkits.eclipse.amazonq.views.AmazonQCodeReferenceView">
</activityPatternBinding>
<activityPatternBinding
activityId="software.aws.toolkits.eclipse.amazonq.activity.AmazonQViewContainer"
isEqualityPattern="true"
pattern="amazon-q-eclipse/software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer">
</activityPatternBinding>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<!-- These perspectiveExtensions ensure that the view is display in the appropriate portion of the layout. In most cases, it should stack the ToolkitLoginWebview. -->
<perspectiveExtension
targetID="*">
<view
id="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relative="org.eclipse.ui.editorss"
relationship="right"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQChatWebview"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQCodeReferenceView"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.DependencyMissingView"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.ReauthenticateView"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.DependencyMissingView"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
<view
id="software.aws.toolkits.eclipse.amazonq.views.ChatAssetMissingView"
relative="software.aws.toolkits.eclipse.amazonq.views.ToolkitLoginWebview"
relationship="stack"
visible="false">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.views">
<!-- If adding a new view: -->
<!-- 1. Include the view in the activities extension point to hide it from the Show View menu -->
<!-- 2. Include the view in the perspectiveExtensions extension point to display it in the appropriate part of the layout -->
<category
name="Amazon Q"
id="amazonq">
</category>
<view
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"
name="Amazon Q"
icon="icons/AmazonQ.png">
</view>
<view
class="software.aws.toolkits.eclipse.amazonq.views.AmazonQCodeReferenceView"
icon="icons/AmazonQ.png"
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQCodeReferenceView"
name="Amazon Q Code Reference"
restorable="true">
</view>
</extension>
<extension point="org.eclipse.ui.activities">
<!-- These activities and activityPatternBindings prevent the view from showing up in the Show View menu. Logic exists that will filter these views out. -->
<!-- ToolkitLoginWebview is intentionally excluded here as this should be the only view that should show in the menu. -->
<activityPatternBinding
activityId="software.aws.toolkits.eclipse.amazonq.activity.AmazonQCodeReferenceView"
isEqualityPattern="true"
pattern="amazon-q-eclipse/software.aws.toolkits.eclipse.amazonq.views.AmazonQCodeReferenceView">
</activityPatternBinding>
<activityPatternBinding
activityId="software.aws.toolkits.eclipse.amazonq.activity.AmazonQViewContainer"
isEqualityPattern="true"
pattern="amazon-q-eclipse/software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer">
</activityPatternBinding>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<!-- These perspectiveExtensions ensure that the view is display in the appropriate portion of the layout. In most cases, it should stack the ToolkitLoginWebview. -->
<perspectiveExtension
targetID="*">
<view
id="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"
relative="org.eclipse.ui.editorss"
relationship="right"
visible="false">
</view>
</perspectiveExtension>
</extension>
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
id="software.aws.toolkits.eclipse.amazonq.abap"
name="ABAP Source"
base-type="org.eclipse.core.runtime.text"
file-extensions="abap">
</content-type>
</extension>
<extension
point="org.eclipse.lsp4e.languageServer">
<server
class="software.aws.toolkits.eclipse.amazonq.lsp.connection.QLspConnectionProvider"
clientImpl="software.aws.toolkits.eclipse.amazonq.lsp.AmazonQLspClientImpl"
id="software.aws.toolkits.eclipse.amazonq.qlanguageserver"
label="Amazon Q Language Server"
launcherBuilder="software.aws.toolkits.eclipse.amazonq.lsp.AmazonQLspServerBuilder"
lastDocumentDisconnectedTimeout="31560000"
singleton="true">
</server>
<contentTypeMapping
contentType="org.eclipse.jdt.core.javaSource"
id="software.aws.toolkits.eclipse.amazonq.qlanguageserver"
languageId="java">
</contentTypeMapping>
<contentTypeMapping
contentType="software.aws.toolkits.eclipse.amazonq.abap"
id="software.aws.toolkits.eclipse.amazonq.qlanguageserver"
languageId="abap">
</contentTypeMapping>
<contentTypeMapping
contentType="org.eclipse.core.runtime.text"
id="software.aws.toolkits.eclipse.amazonq.qlanguageserver">
</contentTypeMapping>
<contentTypeMapping
contentType="org.eclipse.wst.jsdt.core.jsSource"
id="software.aws.toolkits.eclipse.amazonq.qlanguageserver"
languageId="javascript">
</contentTypeMapping>
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.eclipse.jdt.core.javaSource">
</participant>
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.eclipse.wst.jsdt.core.jsSource">
</participant>
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="software.aws.toolkits.eclipse.amazonq.abap">
</participant>
</extension>
<extension point="org.eclipse.ui.commands">
<category
id="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Amazon Q">
</category>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Trigger Suggestions"
id="software.aws.toolkits.eclipse.amazonq.commands.triggerSuggestions">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Trigger Inline Chat"
id="software.aws.toolkits.eclipse.amazonq.commands.triggerInlineChat">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Accept Suggestions"
id="software.aws.toolkits.eclipse.amazonq.commands.acceptSuggestions">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Reject Suggestions"
id="software.aws.toolkits.eclipse.amazonq.commands.rejectSuggestions">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Accept Inline Chat"
id="software.aws.toolkits.eclipse.amazonq.commands.acceptInlineChat">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Reject Inline Chat"
id="software.aws.toolkits.eclipse.amazonq.commands.rejectInlineChat">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsForward"
name="Toggle Suggestions Forward">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsBackward"
name="Toggle Suggestions Backward">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.explain"
name="Explain">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.refactor"
name="Refactor">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.fix"
name="Fix">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.optimize"
name="Optimize">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
id="software.aws.toolkits.eclipse.amazonq.commands.sendToPrompt"
name="Send To Prompt">
</command>
<command
categoryId="software.aws.toolkits.eclipse.amazonq.commands.category"
name="Open Amazon Q Login View"
id="software.aws.toolkits.eclipse.amazonq.commands.openAmazonQLoginView">
</command>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QTriggerSuggestionsHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerSuggestions">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QTriggerInlineChatHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerInlineChat">
<activeWhen>
<with variable="is_logged_in">
<equals value="true"/>
</with>
</activeWhen>
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QOpenLoginViewHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerInlineChat">
<activeWhen>
<with variable="is_logged_in">
<equals value="false"/>
</with>
</activeWhen>
</handler>
<handler
commandId="software.aws.toolkits.eclipse.amazonq.commands.acceptSuggestions"
class="software.aws.toolkits.eclipse.amazonq.handlers.QAcceptSuggestionsHandler">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QRejectSuggestionsHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.rejectSuggestions">
</handler>
<handler
commandId="software.aws.toolkits.eclipse.amazonq.commands.acceptInlineChat"
class="software.aws.toolkits.eclipse.amazonq.handlers.QAcceptInlineChatHandler">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QRejectInlineChatHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.rejectInlineChat">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QToggleSuggestionsForwardHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsForward">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QToggleSuggestionsBackwardHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsBackward">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QExplainHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.explain">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QRefactorHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.refactor">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QFixHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.fix">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QOptimizeHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.optimize">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QSendToPromptHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.sendToPrompt">
</handler>
<handler
class="software.aws.toolkits.eclipse.amazonq.handlers.QOpenLoginViewHandler"
commandId="software.aws.toolkits.eclipse.amazonq.commands.openAmazonQLoginView">
</handler>
</extension>
<extension point="org.eclipse.ui.bindings">
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerSuggestions"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+C">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerInlineChat"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+SHIFT+I">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.acceptSuggestions"
contextId="org.eclipse.ui.suggestionsContext"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="TAB">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.rejectSuggestions"
contextId="org.eclipse.ui.suggestionsContext"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="ESC">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.acceptInlineChat"
contextId="org.eclipse.ui.inlineChatContext"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="ENTER">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.rejectInlineChat"
contextId="org.eclipse.ui.inlineChatContext"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="ESC">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsBackward"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+[">
</key>
<key
commandId="software.aws.toolkits.eclipse.amazonq.commands.toggleSuggestionsForward"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+]">
</key>
</extension>
<extension point="org.eclipse.ui.startup">
<startup
class="software.aws.toolkits.eclipse.amazonq.lsp.LspStartupActivity">
</startup>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
<type name="diffAnnotation.added"/>
<type name="diffAnnotation.deleted"/>
<type name="diffAnnotation.added.dark"/>
<type name="diffAnnotation.deleted.dark"/>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<!-- Added code annotation -->
<specification
annotationType="diffAnnotation.added"
colorPreferenceKey="diffAnnotation.added.color"
colorPreferenceValue="230,255,230"
contributesToHeader="false"
highlightPreferenceKey="diffAnnotation.added.highlight"
highlightPreferenceValue="true"
includeOnPreferencePage="true"
label="Added Code"
overviewRulerPreferenceKey="diffAnnotation.added.overview"
overviewRulerPreferenceValue="true"
presentationLayer="0"
textPreferenceKey="diffAnnotation.added.text"
textPreferenceValue="true"
textStylePreferenceValue="BACKGROUND"
verticalRulerPreferenceKey="diffAnnotation.added.ruler"
verticalRulerPreferenceValue="true">
</specification>
<!-- Deleted code annotation -->
<specification
annotationType="diffAnnotation.deleted"
colorPreferenceKey="diffAnnotation.deleted.color"
colorPreferenceValue="255,230,230"
contributesToHeader="false"
highlightPreferenceKey="diffAnnotation.deleted.highlight"
highlightPreferenceValue="true"
includeOnPreferencePage="true"
label="Deleted Code"
overviewRulerPreferenceKey="diffAnnotation.deleted.overview"
overviewRulerPreferenceValue="true"
presentationLayer="0"
textPreferenceKey="diffAnnotation.deleted.text"
textPreferenceValue="true"
textStylePreferenceValue="BACKGROUND"
verticalRulerPreferenceKey="diffAnnotation.deleted.ruler"
verticalRulerPreferenceValue="true">
</specification>
<!-- Dark mode - Added code annotation -->
<specification
annotationType="diffAnnotation.added.dark"
colorPreferenceKey="diffAnnotation.added.dark.color"
colorPreferenceValue="0,70,0"
contributesToHeader="false"
highlightPreferenceKey="diffAnnotation.added.dark.highlight"
highlightPreferenceValue="true"
includeOnPreferencePage="true"
label="Added Code (Dark Theme)"
overviewRulerPreferenceKey="diffAnnotation.added.dark.overview"
overviewRulerPreferenceValue="true"
presentationLayer="0"
textPreferenceKey="diffAnnotation.added.dark.text"
textPreferenceValue="true"
textStylePreferenceValue="BACKGROUND"
verticalRulerPreferenceKey="diffAnnotation.added.dark.ruler"
verticalRulerPreferenceValue="true">
</specification>
<!-- Dark mode - Deleted code annotation -->
<specification
annotationType="diffAnnotation.deleted.dark"
colorPreferenceKey="diffAnnotation.deleted.dark.color"
colorPreferenceValue="70,0,0"
contributesToHeader="false"
highlightPreferenceKey="diffAnnotation.deleted.dark.highlight"
highlightPreferenceValue="true"
includeOnPreferencePage="true"
label="Deleted Code (Dark Theme)"
overviewRulerPreferenceKey="diffAnnotation.deleted.dark.overview"
overviewRulerPreferenceValue="true"
presentationLayer="0"
textPreferenceKey="diffAnnotation.deleted.dark.text"
textPreferenceValue="true"
textStylePreferenceValue="BACKGROUND"
verticalRulerPreferenceKey="diffAnnotation.deleted.dark.ruler"
verticalRulerPreferenceValue="true">
</specification>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
class="software.aws.toolkits.eclipse.amazonq.preferences.AmazonQPreferencePage"
id="software.aws.toolkits.eclipse.amazonq.preferences.AmazonQPreferencePage"
name="Amazon Q">
</page>
</extension>
<extension point="org.eclipse.core.runtime.preferences">
<initializer
class="software.aws.toolkits.eclipse.amazonq.preferences.AmazonQPreferenceInitializer">
</initializer>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?endof">
<toolbar id="software.aws.toolkits.eclipse.amazonq.toolbar">
<command id="software.aws.toolkits.eclipse.amazonq.toolbar.command"
commandId="software.aws.toolkits.eclipse.amazonq.commands.openAmazonQLoginView"
icon="icons/AmazonQ.png"
style="pulldown"
tooltip="Amazon Q">
<visibleWhen checkEnabled="false">
<with variable="is_logged_in"> <!-- Provided by AuthSourceProvider -->
<equals value="true"/>
</with>
</visibleWhen>
</command>
</toolbar>
<toolbar id="software.aws.toolkits.eclipse.amazonq.toolbar-unauthenticated">
<command id="software.aws.toolkits.eclipse.amazonq.toolbar-unauthenticated.command"
commandId="software.aws.toolkits.eclipse.amazonq.commands.openAmazonQLoginView"
icon="icons/AmazonQDisconnected.png"
tooltip="Amazon Q">
<visibleWhen checkEnabled="false">
<with variable="is_logged_in"> <!-- Provided by AuthSourceProvider -->
<equals value="false"/>
</with>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
<menuContribution locationURI="menu:showView?before=viewsShortlist">
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.openAmazonQLoginView"
icon="icons/AmazonQ.png"
label="Amazon Q"
style="push">
</command>
</menuContribution>
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icons/AmazonQ.png"
label="Amazon Q">
<visibleWhen checkEnabled="false">
<and>
<with variable="activePartId">
<or>
<equals value="org.eclipse.ui.DefaultTextEditor"/>
<equals value="org.eclipse.jdt.ui.CompilationUnitEditor"/>
<equals value="org.eclipse.ui.genericeditor.GenericEditor"/>
<equals value="software.aws.toolkits.eclipse.amazonq.views.AmazonQViewContainer"/>
<equals value="com.sap.adt.programs.ui.AdtProgramEditor"/>
<equals value="com.sap.adt.programs.ui.AdtIncludeEditor"/>
<equals value="com.sap.adt.abapClassEditor"/>
<equals value="com.sap.adt.abapInterfaceEditor"/>
<!-- SAP GUI Editor for .asprog files -->
<equals value="com.sap.adt.sapgui.ui.editors.WinGuiEditor"/>
<!-- CDS Service Definition Editor for .assrvds files -->
<equals value="com.sap.adt.cds.srvd.ui.editors.SrvdSourceEditor"/>
<!-- Behavior Definition Editor for .asbdef files -->
<equals value="com.sap.wbobj.bdef.ui.editors.BdefSourceEditor"/>
<!-- CDS Data Definition Language Editor for .asddls files -->
<equals value="com.sap.adt.cds.ddl.ui.editors.DdlSourceEditor"/>
<!-- Dictionary Table Editor for .astabldt files -->
<equals value="com.sap.wbobj.dictionary.tabldt.ui.editors.DdicTableEditor"/>
<!-- Dictionary Structure Editor for .astablds files -->
<equals value="com.sap.wbobj.dictionary.tablds.ui.editors.DdicStructureEditor"/>
<!-- ABAP Function Group Include Editor for .asfugr files -->
<equals value="com.sap.adt.functions.ui.includes.abapFunctionGroupIncludeEditor"/>
<!-- ABAP Function Module Editor for .asfunc files -->
<equals value="com.sap.adt.functions.ui.fmodules.abapFunctionModuleEditor"/>
<!-- ABAP Function Group Editor for .asfugr files -->
<equals value="com.sap.adt.functions.ui.includes.abapFunctionGroupEditor"/>
</or>
</with>
</and>
</visibleWhen>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.explain"
label="Explain">
</command>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.refactor"
label="Refactor">
</command>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.fix"
label="Fix">
</command>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.optimize"
label="Optimize">
</command>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.sendToPrompt"
label="Send To Prompt">
</command>
<command
commandId="software.aws.toolkits.eclipse.amazonq.commands.triggerInlineChat"
label="Inline Chat">
</command>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar id="software.aws.toolkits.eclipse.amazonq.statusbar">
<control
class="software.aws.toolkits.eclipse.amazonq.views.actions.InlineQueryStatusBarContribution"
id="software.aws.toolkits.eclipse.amazonq.views.actions.InlineQueryStatusBarContribution"
>
<visibleWhen checkEnabled="false">
<with variable="is_logged_in">
<equals value="true"/>
</with>
</visibleWhen>
</control>
</toolbar>
</menuContribution>
</extension>
</plugin>