David Morgan Spenser Savage | 91e7a96 | 2009-08-20 18:32:02 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Licensed to the Apache Software Foundation (ASF) under one |
| 4 | or more contributor license agreements. See the NOTICE file |
| 5 | distributed with this work for additional information |
| 6 | regarding copyright ownership. The ASF licenses this file |
| 7 | to you under the Apache License, Version 2.0 (the |
| 8 | "License"); you may not use this file except in compliance |
| 9 | with the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, |
| 14 | software distributed under the License is distributed on an |
| 15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | KIND, either express or implied. See the License for the |
| 17 | specific language governing permissions and limitations |
| 18 | under the License. |
| 19 | --> |
| 20 | <?eclipse version="3.2"?> |
| 21 | <plugin> |
| 22 | <extension point = "org.eclipse.debug.core.launchConfigurationTypes"> |
| 23 | <launchConfigurationType |
| 24 | id="org.apache.felix.sigil.eclipse.runtime.OSGi" |
| 25 | name="OSGi Application" |
| 26 | delegate="org.apache.felix.sigil.eclipse.runtime.OSGiLauncher" |
| 27 | modes= "run, debug" |
| 28 | sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector" |
| 29 | sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"> |
| 30 | </launchConfigurationType> |
| 31 | </extension> |
| 32 | <extension |
| 33 | point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| 34 | <launchConfigurationTabGroup |
| 35 | class="org.apache.felix.sigil.eclipse.runtime.config.OSGiLaunchConfigurationTabGroup" |
| 36 | id="org.apache.felix.sigil.eclipse.runtime.config.OSGiLaunchConfigurationTabGroup" |
| 37 | type="org.apache.felix.sigil.eclipse.runtime.OSGi"/> |
| 38 | </extension> |
| 39 | <extension |
| 40 | point="org.eclipse.debug.ui.launchShortcuts"> |
| 41 | <shortcut |
| 42 | class="org.apache.felix.sigil.eclipse.runtime.shortcut.OSGiLaunchShortCut" |
David Morgan Spenser Savage | eebc662 | 2009-10-29 11:34:49 +0000 | [diff] [blame] | 43 | icon="/icons/logo16x16.gif" |
| 44 | id="org.apache.felix.sigil.eclipse.runtime.shortcut" |
David Morgan Spenser Savage | 91e7a96 | 2009-08-20 18:32:02 +0000 | [diff] [blame] | 45 | label="OSGi Application" |
| 46 | modes="run,debug"> |
| 47 | <contextualLaunch> |
| 48 | <enablement> |
| 49 | <with variable="selection"> |
| 50 | <count value="1"/> |
| 51 | <iterate> |
| 52 | <or> |
| 53 | <instanceof value="org.eclipse.jdt.core.IJavaProject"/> |
| 54 | <test |
| 55 | property="org.apache.felix.sigil.isSigilProject" |
| 56 | value="true"/> |
| 57 | </or> |
| 58 | </iterate> |
| 59 | </with> |
| 60 | </enablement> |
| 61 | </contextualLaunch> |
| 62 | </shortcut> |
| 63 | </extension> |
| 64 | <extension |
| 65 | point="org.eclipse.jdt.launching.classpathProviders"> |
| 66 | <classpathProvider |
David Morgan Spenser Savage | eebc662 | 2009-10-29 11:34:49 +0000 | [diff] [blame] | 67 | class="org.apache.felix.sigil.eclipse.runtime.source.SigilSourcePathProvider" |
| 68 | id="org.apache.felix.sigil.classpath.Provider"/> |
David Morgan Spenser Savage | 91e7a96 | 2009-08-20 18:32:02 +0000 | [diff] [blame] | 69 | </extension> |
| 70 | <extension |
| 71 | point="org.eclipse.debug.ui.launchConfigurationTypeImages"> |
| 72 | <launchConfigurationTypeImage |
| 73 | configTypeID="org.apache.felix.sigil.eclipse.runtime.OSGi" |
David Morgan Spenser Savage | eebc662 | 2009-10-29 11:34:49 +0000 | [diff] [blame] | 74 | icon="icons/logo16x16.gif" |
David Morgan Spenser Savage | 91e7a96 | 2009-08-20 18:32:02 +0000 | [diff] [blame] | 75 | id="org.apache.felix.sigil.eclipse.runtime.OSGi"> |
| 76 | </launchConfigurationTypeImage> |
| 77 | </extension> |
| 78 | <extension |
| 79 | point="org.eclipse.ui.commands"> |
| 80 | <command |
| 81 | id="org.apache.felix.sigil.runtime.commands.installProject" |
| 82 | name="%commandInstallProject"> |
| 83 | </command> |
| 84 | <command |
| 85 | id="org.apache.felix.sigil.runtime.commands.uninstallProject" |
| 86 | name="%commandUninstallProject"> |
| 87 | </command> |
| 88 | <command |
| 89 | id="org.apache.felix.sigil.runtime.commands.reinstallProject" |
| 90 | name="%commandReinstallProject"> |
| 91 | </command> |
| 92 | <command |
| 93 | id="org.apache.felix.sigil.runtime.commands.startProject" |
| 94 | name="%commandStartProject"> |
| 95 | </command> |
| 96 | <command |
| 97 | id="org.apache.felix.sigil.runtime.commands.stopProject" |
| 98 | name="%commandStopProject"> |
| 99 | </command> |
| 100 | </extension> |
| 101 | <extension |
| 102 | point="org.eclipse.ui.commandImages"> |
| 103 | <image |
| 104 | commandId="org.apache.felix.sigil.runtime.commands.installProject" |
| 105 | icon="etc/images/installBundle.png"> |
| 106 | </image> |
| 107 | <image |
| 108 | commandId="org.apache.felix.sigil.runtime.commands.uninstallProject" |
| 109 | icon="etc/images/uninstallBundle.png"> |
| 110 | </image> |
| 111 | <image |
| 112 | commandId="org.apache.felix.sigil.runtime.commands.reinstallProject" |
| 113 | icon="etc/images/refreshBundle.png"> |
| 114 | </image> |
| 115 | <image |
| 116 | commandId="org.apache.felix.sigil.runtime.commands.startProject" |
| 117 | icon="etc/images/startBundle.png"> |
| 118 | </image> |
| 119 | <image |
| 120 | commandId="org.apache.felix.sigil.runtime.commands.stopProject" |
| 121 | icon="etc/images/stopBundle.png"> |
| 122 | </image> |
| 123 | </extension> |
| 124 | <extension |
| 125 | point="org.eclipse.ui.handlers"> |
| 126 | <handler |
| 127 | class="org.cauldron.sigil.runtime.handlers.project.SelectionProjectHandler:install" |
| 128 | commandId="org.apache.felix.sigil.runtime.commands.installProject"> |
| 129 | <activeWhen> |
| 130 | <with |
| 131 | variable="selection"> |
| 132 | <iterate |
| 133 | ifEmpty="false" |
| 134 | operator="or"> |
| 135 | <and> |
| 136 | <or> |
| 137 | <instanceof |
| 138 | value="org.eclipse.core.resources.IFile"> |
| 139 | </instanceof> |
| 140 | <instanceof |
| 141 | value="org.eclipse.core.resources.IProject"> |
| 142 | </instanceof> |
| 143 | </or> |
| 144 | <test |
| 145 | property="org.cauldron.sigil.isSigilProject" |
| 146 | value="true"> |
| 147 | </test> |
| 148 | </and> |
| 149 | </iterate> |
| 150 | </with> |
| 151 | </activeWhen> |
| 152 | </handler> |
| 153 | <handler |
| 154 | class="org.cauldron.sigil.runtime.handlers.project.SelectionProjectHandler:start" |
| 155 | commandId="org.apache.felix.sigil.runtime.commands.startProject"> |
| 156 | <activeWhen> |
| 157 | <with |
| 158 | variable="selection"> |
| 159 | <iterate |
| 160 | ifEmpty="false" |
| 161 | operator="or"> |
| 162 | <and> |
| 163 | <or> |
| 164 | <instanceof |
| 165 | value="org.eclipse.core.resources.IFile"> |
| 166 | </instanceof> |
| 167 | <instanceof |
| 168 | value="org.eclipse.core.resources.IProject"> |
| 169 | </instanceof> |
| 170 | </or> |
| 171 | <test |
| 172 | property="org.cauldron.sigil.isSigilProject" |
| 173 | value="true"> |
| 174 | </test> |
| 175 | </and> |
| 176 | </iterate> |
| 177 | </with> |
| 178 | </activeWhen> |
| 179 | </handler> |
| 180 | <handler |
| 181 | class="org.cauldron.sigil.runtime.handlers.project.SelectionProjectHandler:stop" |
| 182 | commandId="org.apache.felix.sigil.runtime.commands.stopProject"> |
| 183 | <activeWhen> |
| 184 | <with |
| 185 | variable="selection"> |
| 186 | <iterate |
| 187 | ifEmpty="false" |
| 188 | operator="or"> |
| 189 | <and> |
| 190 | <or> |
| 191 | <instanceof |
| 192 | value="org.eclipse.core.resources.IFile"> |
| 193 | </instanceof> |
| 194 | <instanceof |
| 195 | value="org.eclipse.core.resources.IProject"> |
| 196 | </instanceof> |
| 197 | </or> |
| 198 | <test |
| 199 | property="org.cauldron.sigil.isSigilProject" |
| 200 | value="true"> |
| 201 | </test> |
| 202 | </and> |
| 203 | </iterate> |
| 204 | </with> |
| 205 | </activeWhen> |
| 206 | </handler> |
| 207 | <handler |
| 208 | class="org.cauldron.sigil.runtime.handlers.project.SelectionProjectHandler:uninstall" |
| 209 | commandId="org.apache.felix.sigil.runtime.commands.uninstallProject"> |
| 210 | <activeWhen> |
| 211 | <with |
| 212 | variable="selection"> |
| 213 | <iterate |
| 214 | ifEmpty="false" |
| 215 | operator="or"> |
| 216 | <and> |
| 217 | <or> |
| 218 | <instanceof |
| 219 | value="org.eclipse.core.resources.IFile"> |
| 220 | </instanceof> |
| 221 | <instanceof |
| 222 | value="org.eclipse.core.resources.IProject"> |
| 223 | </instanceof> |
| 224 | </or> |
| 225 | <test |
| 226 | property="org.cauldron.sigil.isSigilProject" |
| 227 | value="true"> |
| 228 | </test> |
| 229 | </and> |
| 230 | </iterate> |
| 231 | </with> |
| 232 | </activeWhen> |
| 233 | </handler> |
| 234 | <handler |
| 235 | class="org.cauldron.sigil.runtime.handlers.project.SelectionProjectHandler:reinstall" |
| 236 | commandId="org.apache.felix.sigil.runtime.commands.reinstallProject"> |
| 237 | <activeWhen> |
| 238 | <with |
| 239 | variable="selection"> |
| 240 | <iterate |
| 241 | ifEmpty="false" |
| 242 | operator="or"> |
| 243 | <and> |
| 244 | <or> |
| 245 | <instanceof |
| 246 | value="org.eclipse.core.resources.IFile"> |
| 247 | </instanceof> |
| 248 | <instanceof |
| 249 | value="org.eclipse.core.resources.IProject"> |
| 250 | </instanceof> |
| 251 | </or> |
| 252 | <test |
| 253 | property="org.cauldron.sigil.isSigilProject" |
| 254 | value="true"> |
| 255 | </test> |
| 256 | </and> |
| 257 | </iterate> |
| 258 | </with> |
| 259 | </activeWhen> |
| 260 | </handler> |
| 261 | <handler |
| 262 | class="org.cauldron.sigil.runtime.handlers.project.EditorProjectHandler:install" |
| 263 | commandId="org.apache.felix.sigil.runtime.commands.installProject"> |
| 264 | <activeWhen> |
| 265 | <with |
| 266 | variable="activePartId"> |
| 267 | <equals |
| 268 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 269 | </equals> |
| 270 | </with> |
| 271 | </activeWhen> |
| 272 | </handler> |
| 273 | <handler |
| 274 | class="org.cauldron.sigil.runtime.handlers.project.EditorProjectHandler:uninstall" |
| 275 | commandId="org.apache.felix.sigil.runtime.commands.uninstallProject"> |
| 276 | <activeWhen> |
| 277 | <with |
| 278 | variable="activePartId"> |
| 279 | <equals |
| 280 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 281 | </equals> |
| 282 | </with> |
| 283 | </activeWhen> |
| 284 | </handler> |
| 285 | <handler |
| 286 | class="org.cauldron.sigil.runtime.handlers.project.EditorProjectHandler:reinstall" |
| 287 | commandId="org.apache.felix.sigil.runtime.commands.reinstallProject"> |
| 288 | <activeWhen> |
| 289 | <with |
| 290 | variable="activePartId"> |
| 291 | <equals |
| 292 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 293 | </equals> |
| 294 | </with> |
| 295 | </activeWhen> |
| 296 | </handler> |
| 297 | </extension> |
| 298 | <extension |
| 299 | point="org.eclipse.ui.menus"> |
| 300 | <menuContribution |
| 301 | locationURI="popup:org.eclipse.ui.popup.any"> |
| 302 | <separator |
| 303 | name="org.cauldron.sigil.runtime.separator" |
| 304 | visible="true"> |
| 305 | </separator> |
| 306 | <command |
| 307 | commandId="org.apache.felix.sigil.runtime.commands.installProject" |
| 308 | label="Install Project" |
| 309 | style="push"> |
| 310 | <visibleWhen |
| 311 | checkEnabled="true"> |
| 312 | </visibleWhen> |
| 313 | </command> |
| 314 | <command |
| 315 | commandId="org.apache.felix.sigil.runtime.commands.uninstallProject" |
| 316 | label="Uninstall Project" |
| 317 | style="push"> |
| 318 | <visibleWhen |
| 319 | checkEnabled="true"> |
| 320 | </visibleWhen> |
| 321 | </command> |
| 322 | <command |
| 323 | commandId="org.apache.felix.sigil.runtime.commands.reinstallProject" |
| 324 | label="Reinstall Project" |
| 325 | style="push"> |
| 326 | <visibleWhen |
| 327 | checkEnabled="true"> |
| 328 | </visibleWhen> |
| 329 | </command> |
| 330 | <command |
| 331 | commandId="org.apache.felix.sigil.runtime.commands.startProject" |
| 332 | label="Start Project" |
| 333 | style="push"> |
| 334 | <visibleWhen |
| 335 | checkEnabled="true"> |
| 336 | </visibleWhen> |
| 337 | </command> |
| 338 | <command |
| 339 | commandId="org.apache.felix.sigil.runtime.commands.stopProject" |
| 340 | label="Stop Project" |
| 341 | style="push"> |
| 342 | <visibleWhen |
| 343 | checkEnabled="true"> |
| 344 | </visibleWhen> |
| 345 | </command> |
| 346 | </menuContribution> |
| 347 | <menuContribution |
| 348 | locationURI="toolbar:org.eclipse.ui.main.toolbar"> |
| 349 | <toolbar |
| 350 | id="org.cauldron.sigil.runtime.toolbar1"> |
| 351 | <command |
| 352 | commandId="org.apache.felix.sigil.runtime.commands.installProject" |
| 353 | label="Install Project" |
| 354 | style="push"> |
| 355 | <visibleWhen |
| 356 | checkEnabled="true"> |
| 357 | <with |
| 358 | variable="activePartId"> |
| 359 | <equals |
| 360 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 361 | </equals> |
| 362 | </with> |
| 363 | </visibleWhen> |
| 364 | </command> |
| 365 | <command |
| 366 | commandId="org.apache.felix.sigil.runtime.commands.uninstallProject" |
| 367 | label="Uninstall Project" |
| 368 | style="push"> |
| 369 | <visibleWhen |
| 370 | checkEnabled="true"> |
| 371 | <with |
| 372 | variable="activePartId"> |
| 373 | <equals |
| 374 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 375 | </equals> |
| 376 | </with> |
| 377 | </visibleWhen> |
| 378 | </command> |
| 379 | <command |
| 380 | commandId="org.apache.felix.sigil.runtime.commands.reinstallProject" |
| 381 | label="Re Install Project" |
| 382 | style="push"> |
| 383 | <visibleWhen |
| 384 | checkEnabled="true"> |
| 385 | <with |
| 386 | variable="activePartId"> |
| 387 | <equals |
| 388 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 389 | </equals> |
| 390 | </with> |
| 391 | </visibleWhen> |
| 392 | </command> |
| 393 | <command |
| 394 | commandId="org.apache.felix.sigil.runtime.commands.startProject" |
| 395 | label="Start Project" |
| 396 | style="push"> |
| 397 | <visibleWhen |
| 398 | checkEnabled="true"> |
| 399 | <with |
| 400 | variable="activePartId"> |
| 401 | <equals |
| 402 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 403 | </equals> |
| 404 | </with> |
| 405 | </visibleWhen> |
| 406 | </command> |
| 407 | <command |
| 408 | commandId="org.apache.felix.sigil.runtime.commands.stopProject" |
| 409 | label="Stop Project" |
| 410 | style="push"> |
| 411 | <visibleWhen |
| 412 | checkEnabled="true"> |
| 413 | <with |
| 414 | variable="activePartId"> |
| 415 | <equals |
| 416 | value="org.cauldron.sigil.editors.SigilProjectEditor"> |
| 417 | </equals> |
| 418 | </with> |
| 419 | </visibleWhen> |
| 420 | </command> |
| 421 | </toolbar> |
| 422 | </menuContribution> |
| 423 | </extension> |
| 424 | <!-- extension |
| 425 | point="org.eclipse.ui.contexts"> |
| 426 | <context |
| 427 | id="org.cauldron.sigil.runtime.contexts.compositeEditor" |
| 428 | name="Composite Editor" |
| 429 | parentId="org.eclipse.ui.textEditorScope"> |
| 430 | </context> |
| 431 | </extension> |
| 432 | <extension |
| 433 | point="org.eclipse.ui.bindings"> |
| 434 | <key |
| 435 | commandId="org.apache.felix.sigil.runtime.commands.installComposite" |
| 436 | contextId="org.cauldron.sigil.runtime.contexts.compositeEditor" |
| 437 | schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| 438 | sequence="M1+I"> |
| 439 | </key> |
| 440 | <key |
| 441 | commandId="org.apache.felix.sigil.runtime.commands.uninstallComposite" |
| 442 | contextId="org.cauldron.sigil.runtime.contexts.compositeEditor" |
| 443 | schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| 444 | sequence="M1+U"> |
| 445 | </key> |
| 446 | <key |
| 447 | commandId="org.apache.felix.sigil.runtime.commands.reinstallComposite" |
| 448 | contextId="org.cauldron.sigil.runtime.contexts.compositeEditor" |
| 449 | schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| 450 | sequence="M1+M2+I"> |
| 451 | </key> |
| 452 | </extension --> |
| 453 | <!-- extension |
| 454 | point="org.eclipse.ui.views"> |
| 455 | <view |
| 456 | category="org.cauldron.sigil.ui.views" |
| 457 | class="org.cauldron.sigil.runtime.views.NewtonInstancesView" |
| 458 | icon="etc/images/newton.png" |
| 459 | id="org.cauldron.sigil.runtime.newtonInstancesView" |
| 460 | name="Newton Instances" |
| 461 | restorable="true"> |
| 462 | </view> |
| 463 | </extension --> |
| 464 | <!-- extension |
| 465 | point="org.eclipse.core.runtime.adapters"> |
| 466 | <factory |
| 467 | adaptableType="org.cauldron.sigil.runtime.registry.INewtonRegistry" |
| 468 | class="org.cauldron.sigil.runtime.views.DeferredAdapterFactory"> |
| 469 | <adapter |
| 470 | type="org.eclipse.ui.progress.IDeferredWorkbenchAdapter"> |
| 471 | </adapter> |
| 472 | </factory> |
| 473 | <factory |
| 474 | adaptableType="org.cauldron.sigil.runtime.registry.INewtonInstance" |
| 475 | class="org.cauldron.sigil.runtime.views.DeferredAdapterFactory"> |
| 476 | <adapter |
| 477 | type="org.eclipse.ui.progress.IDeferredWorkbenchAdapter"> |
| 478 | </adapter> |
| 479 | </factory> |
| 480 | <factory |
| 481 | adaptableType="org.cauldron.sigil.runtime.model.IBundleState" |
| 482 | class="org.cauldron.sigil.runtime.views.DeferredAdapterFactory"> |
| 483 | <adapter |
| 484 | type="org.eclipse.ui.progress.IDeferredWorkbenchAdapter"> |
| 485 | </adapter> |
| 486 | </factory> |
| 487 | </extension --> |
| 488 | <!-- extension |
| 489 | point="org.eclipse.ui.perspectiveExtensions"> |
| 490 | <perspectiveExtension |
| 491 | targetID="org.cauldron.sigil.ui.perspective1"> |
| 492 | <viewShortcut |
| 493 | id="org.cauldron.sigil.runtime.newtonInstancesView"> |
| 494 | </viewShortcut> |
| 495 | </perspectiveExtension> |
| 496 | </extension --> |
| 497 | <!-- extension |
| 498 | point="org.eclipse.core.runtime.preferences"> |
| 499 | <initializer |
| 500 | class="org.cauldron.sigil.runtime.prefs.PreferenceInitializer"> |
| 501 | </initializer> |
| 502 | </extension --> |
| 503 | <!-- extension |
| 504 | point="org.eclipse.ui.preferencePages"> |
| 505 | <page |
| 506 | category="org.cauldron.sigil.ui.preferences.SigilPreferencePage" |
| 507 | class="org.cauldron.sigil.runtime.prefs.RuntimePreferencesPage" |
| 508 | id="org.cauldron.sigil.runtime.preferences.RuntimePreferencesPage" |
| 509 | name="Runtime"> |
| 510 | </page> |
| 511 | </extension --> |
| 512 | <!-- extension |
| 513 | point="org.cauldron.sigil.installbuilder"> |
| 514 | <builder |
| 515 | class="org.cauldron.sigil.runtime.install.NewtonV1_2InstallBuilder"> |
| 516 | </builder> |
| 517 | <builder |
| 518 | class="org.cauldron.sigil.runtime.install.NewtonV1_3InstallBuilder"> |
| 519 | </builder> |
| 520 | <builder |
| 521 | class="org.cauldron.sigil.runtime.install.NewtonV1_4InstallBuilder"> |
| 522 | </builder> |
| 523 | </extension --> |
| 524 | <!-- extension |
| 525 | point="org.cauldron.sigil.repositoryprovider"> |
| 526 | <provider |
| 527 | class="org.cauldron.sigil.runtime.repository.PlatformRepositoryProvider" |
| 528 | defaultLevel="-2" |
| 529 | dynamic="false" |
| 530 | id="org.cauldron.sigil.runtime.provider" |
| 531 | type="OSGi Platform Repository"> |
| 532 | </provider> |
| 533 | </extension --> |
| 534 | </plugin> |