-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
468 lines (465 loc) · 14.8 KB
/
Copy pathplugin.xml
File metadata and controls
468 lines (465 loc) · 14.8 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="xy.ai.workbench.editor.AISessionEditor"
contributorClass="xy.ai.workbench.editor.AISessionEditorContributor"
extensions="md"
icon="icons/sample.png"
id="xy.ai.workbench.editor.AISessionEditor"
name="XY.AI Editor"
symbolicFontName="org.eclipse.jface.bannerfont">
</editor>
</extension>
<extension
point="org.eclipse.help.contexts">
<contexts
file="contexts.xml">
</contexts>
</extension>
<extension
point="org.eclipse.ui.views">
<category
id="XY.AI.Workbench"
name="AI">
</category>
<view
allowMultiple="false"
category="XY.AI.Workbench"
class="xy.ai.workbench.view.AISessionView"
icon="icons/sample.png"
id="xy.ai.workbench.view.AISessionView"
inject="true"
name="XY.Ai Session Settings">
</view>
<view
allowMultiple="false"
category="XY.AI.Workbench"
class="xy.ai.workbench.view.AIBatchView"
icon="icons/sample.png"
id="xy.ai.workbench.view.AIBatchView"
inject="true"
name="XY.AI Batch List">
</view>
<view
name="AI Explorer"
icon="icons/sample.png"
category="XY.AI.Workbench"
class="xy.ai.workbench.view.explorer.MarkdownExplorerView"
id="xy.ai.workbench.view.AIExplorer">
</view>
<view
allowMultiple="false"
category="XY.AI.Workbench"
class="xy.ai.workbench.view.ClaudeCodeSessionView"
icon="icons/sample.png"
id="xy.ai.workbench.view.ClaudeCodeSessionView"
inject="true"
name="Claude Code Sessions">
</view>
</extension>
<extension point="org.eclipse.ui.navigator.navigatorContent">
<navigatorContent
name="AI Content"
contentProvider="xy.ai.workbench.view.explorer.MarkdownContentProvider"
labelProvider="xy.ai.workbench.view.explorer.MarkdownLabelProvider"
id="xy.ai.workbench.view.content.AIContent"
priority="normal">
<triggerPoints>
<instanceof value="org.eclipse.core.resources.IResource" />
</triggerPoints>
<possibleChildren>
<instanceof value="org.eclipse.core.resources.IResource" />
</possibleChildren>
<commonWizard
type="new"
wizardId="XY.AI.Workbench.wizard.newfile.chat"
menuGroupId="new.ext">
<enablement>
<instanceof value="org.eclipse.core.resources.IFolder"/>
</enablement>
</commonWizard>
<commonWizard
type="new"
wizardId="XY.AI.Workbench.wizard.newfile.markdown"
menuGroupId="new.ext">
<enablement>
<instanceof value="org.eclipse.core.resources.IFolder"/>
</enablement>
</commonWizard>
<commonWizard
type="new"
wizardId="XY.AI.Workbench.wizard.newfile.context"
menuGroupId="new.ext">
<enablement>
<instanceof value="org.eclipse.core.resources.IFolder"/>
</enablement>
</commonWizard>
</navigatorContent>
<commonFilter
id="xy.ai.workbench.view.filter.GitIgnore"
name="Git Ignored Resources"
description="Hides resources excluded by a ".gitignore" file."
class="xy.ai.workbench.view.explorer.GitIgnoreViewerFilter"
activeByDefault="true">
</commonFilter>
<commonFilter
id="xy.ai.workbench.view.filter.Project"
name="Filter to Focused Project"
description="Limits the content to the project of the focused editor."
class="xy.ai.workbench.view.explorer.ProjectFilter"
activeByDefault="true"
visibleInUI="true">
</commonFilter>
</extension>
<extension point="org.eclipse.ui.navigator.navigatorContent">
<navigatorContent
name="Markdown Outline Content"
contentProvider="xy.ai.workbench.editor.outline.MarkdownNavigatorContentProvider"
labelProvider="xy.ai.workbench.editor.outline.MarkdownNavigatorLabelProvider"
id="xy.ai.workbench.editor.outline.content.MarkdownOutline"
priority="normal">
<triggerPoints>
<or>
<instanceof value="xy.ai.workbench.editor.mdast.MarkdownDocument" />
<instanceof value="xy.ai.workbench.editor.outline.NodeElement" />
</or>
</triggerPoints>
<possibleChildren>
<instanceof value="xy.ai.workbench.editor.outline.NodeElement" />
</possibleChildren>
</navigatorContent>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.ScriptBlock"
name="Script Blocks"
description="Hides fenced script block nodes."
class="xy.ai.workbench.editor.outline.filter.ScriptBlockFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.LineComment"
name="Line Comments"
description="Hides line comment nodes."
class="xy.ai.workbench.editor.outline.filter.LineCommentFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Paragraph"
name="Paragraphs"
description="Hides plain paragraph nodes."
class="xy.ai.workbench.editor.outline.filter.ParagraphFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Headings"
name="Headings"
description="Hides heading section nodes of all levels (and their substructure)."
class="xy.ai.workbench.editor.outline.filter.HeadingFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Thinking"
name="Agent Thinking"
description="Hides agent 'thinking' block nodes."
class="xy.ai.workbench.editor.outline.filter.ThinkingFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Text"
name="Agent Text"
description="Hides agent 'text' block nodes."
class="xy.ai.workbench.editor.outline.filter.TextBlockFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.ToolUse"
name="Agent Tool Use"
description="Hides agent 'tool use' block nodes."
class="xy.ai.workbench.editor.outline.filter.ToolUseFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.ReasoningToken"
name="Agent Reasoning Tokens"
description="Hides agent reasoning token block nodes."
class="xy.ai.workbench.editor.outline.filter.ReasoningTokenFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.TokenStats"
name="Agent Token Stats"
description="Hides agent token statistics block nodes."
class="xy.ai.workbench.editor.outline.filter.TokenStatsFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.SystemInit"
name="Agent System Init"
description="Hides agent system-init block nodes."
class="xy.ai.workbench.editor.outline.filter.SystemInitFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Answer"
name="Tool Answers"
description="Hides tool answer block nodes."
class="xy.ai.workbench.editor.outline.filter.AnswerFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.ControlRequest"
name="Control Requests"
description="Hides control request section nodes."
class="xy.ai.workbench.editor.outline.filter.ControlRequestFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.Page"
name="Page"
description="Hides the page section node."
class="xy.ai.workbench.editor.outline.filter.PageFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.UserSection"
name="User Sections"
description="Hides chat 'user' section nodes."
class="xy.ai.workbench.editor.outline.filter.UserSectionFilter">
</commonFilter>
<commonFilter
id="xy.ai.workbench.editor.outline.filter.AgentSection"
name="Agent Sections"
description="Hides chat 'agent' section nodes."
class="xy.ai.workbench.editor.outline.filter.AgentSectionFilter">
</commonFilter>
</extension>
<extension point="org.eclipse.ui.navigator.viewer">
<viewer
viewerId="xy.ai.workbench.editor.outline">
</viewer>
<viewerContentBinding viewerId="xy.ai.workbench.editor.outline">
<includes>
<contentExtension pattern="xy\.ai\.workbench\.editor\.outline\..*" />
</includes>
<excludes>
<contentExtension pattern="^(?!xy\.ai\.workbench\.editor\.outline\.).*" />
</excludes>
</viewerContentBinding>
</extension>
<extension point="org.eclipse.ui.navigator.viewer">
<viewer
inheritBindingsFromViewer="org.eclipse.ui.navigator.ProjectExplorer"
popupMenuId="org.eclipse.ui.navigator.ProjectExplorer#PopupMenu"
viewerId="xy.ai.workbench.view.AIExplorer">
</viewer>
<viewerContentBinding viewerId="xy.ai.workbench.view.AIExplorer">
<includes>
<contentExtension pattern="xy.ai.workbench.view.content.AIContent"/>
<contentExtension pattern="xy.ai.workbench.view.filter.GitIgnore"/>
<contentExtension pattern="xy.ai.workbench.view.filter.Project"/>
<contentExtension pattern="xy.ai.workbench.view.linkHelper.AILinkHelper"/>
</includes>
<excludes>
<contentExtension
pattern="^(?!xy\.ai\.workbench\.view\.(content\.AIContent|filter\.(GitIgnore|Project)|linkHelper\.AILinkHelper)$).*">
</contentExtension>
</excludes>
</viewerContentBinding>
</extension>
<extension point="org.eclipse.ui.navigator.linkHelper">
<linkHelper
class="xy.ai.workbench.view.explorer.MarkdownLinkHelper"
id="xy.ai.workbench.view.linkHelper.AILinkHelper">
<selectionEnablement>
<instanceof value="org.eclipse.core.resources.IFile"/>
</selectionEnablement>
<editorInputEnablement>
<instanceof value="org.eclipse.ui.IFileEditorInput"/>
</editorInputEnablement>
</linkHelper>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="XY.AI.Workbench.commands.category"
name="AI">
</category>
<command
categoryId="XY.AI.Workbench.commands.category"
id="XY.AI.Workbench.commands.submitPromptCommand"
name="Submit prompt">
</command>
<command
categoryId="XY.AI.Workbench.commands.category"
id="XY.AI.Workbench.commands.editor.comment"
name="Toggle AI Comment">
</command>
<command
categoryId="XY.AI.Workbench.commands.category"
id="XY.AI.Workbench.commands.copyPath"
name="Copy Path">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="xy.ai.workbench.handlers.SessionExecuteHandler"
commandId="XY.AI.Workbench.commands.submitPromptCommand">
</handler>
<handler
class="xy.ai.workbench.editor.CommentHandler"
commandId="XY.AI.Workbench.commands.editor.comment">
<activeWhen>
<and>
<with variable="activeEditorId">
<equals
value="xy.ai.workbench.editor.AISessionEditor">
</equals>
</with>
<with variable="activeEditor">
<instanceof
value="xy.ai.workbench.editor.AISessionEditor" />
</with>
</and>
</activeWhen>
</handler>
<handler
class="xy.ai.workbench.handlers.CopyPathHandler"
commandId="XY.AI.Workbench.commands.copyPath">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="XY.AI.Workbench.commands.submitPromptCommand"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+Enter">
</key>
<key
commandId="XY.AI.Workbench.commands.editor.comment"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="Shift+Ctrl+C">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
id="XY.AI.Workbench.menus.aiMenu"
label="AI"
mnemonic="A">
<command
commandId="XY.AI.Workbench.commands.submitPromptCommand"
icon="icons/sample.png"
id="XY.AI.Workbench.menus.submitPromptCommand"
mnemonic="S">
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="XY.AI.Workbench.toolbars.aiToolbar">
<command
commandId="XY.AI.Workbench.commands.submitPromptCommand"
icon="icons/sample.png"
id="XY.AI.Workbench.toolbars.submitPromptCommand"
tooltip="Submit the current prompt">
</command>
</toolbar>
</menuContribution>
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
commandId="XY.AI.Workbench.commands.copyPath"
label="Copy Path"
mnemonic="P"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<iterate
ifEmpty="false">
<adapt
type="org.eclipse.core.resources.IResource">
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:#TextEditorContext?after=additions">
<command
commandId="XY.AI.Workbench.commands.copyPath"
label="Copy Path"
mnemonic="P"
style="push">
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<view
id="xy.ai.workbench.view.AIBatchView"
ratio="0.5"
relationship="bottom"
relative="org.eclipse.ui.views.ProblemView">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.fontDefinitions">
<fontDefinition
id="XY.AI.Workbench.fontDefinition1"
label="XY.AI Editor Font"
value="1|Arial|10.0|0|WINDOWS|1|0|0|0|0|0|0|0|0|3|0|0|0|Arial;">
</fontDefinition>
</extension>
<extension
id="xy.ai.workbench.promptmarker"
name="XY.AI Prompt Marker"
point="org.eclipse.core.resources.markers">
<persistent
value="true">
</persistent>
<super
type="org.eclipse.core.resources.taskmarker">
</super>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<wizard
id="XY.AI.Workbench.wizard.newfile.markdown"
name="Markdown File"
class="xy.ai.workbench.handlers.NewMarkdownWizard"
category="XY.AI.Workbench.newfile.category"
icon="icons/sample.png">
<description>
Creates a new Markdown file.
</description>
</wizard>
<wizard
id="XY.AI.Workbench.wizard.newfile.context"
name="Prompt Context"
class="xy.ai.workbench.handlers.NewPromptContextWizard"
category="XY.AI.Workbench.newfile.category"
icon="icons/sample.png">
<description>
Creates a new Prompt Context file.
</description>
</wizard>
<wizard
id="XY.AI.Workbench.wizard.newfile.chat"
name="AI Chat"
class="xy.ai.workbench.handlers.NewChatWizard"
category="XY.AI.Workbench.newfile.category"
icon="icons/sample.png">
<description>
Creates a new AI Chat file.
</description>
</wizard>
<category
id="XY.AI.Workbench.newfile.category"
name="AI Files">
</category>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
<type name="xy.ai.workbench.editor.spellcheck.spelling"/>
</extension>
</plugin>