<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.6"?> <plugin> <extension-point id="additionalClasspaths" name="%ExtPoint.additionalClasspaths" schema="schema/additionalClasspaths.exsd"/> <!-- プロジェクト全体に対してインストゥルメンテーションを行う --> <extension point="org.eclipse.ui.handlers"> <handler class="org.ntlab.traceCollector.handlers.InstrumentationHandlerForOnlineAnalysis" commandId="org.ntlab.traceCollector.commands.instrumentationForOnlineAnalysis"> </handler> <handler class="org.ntlab.traceCollector.handlers.InstrumentationHandlerForOfflineAnalysis" commandId="org.ntlab.traceCollector.commands.instrumentationForOfflineAnalysis"> </handler> </extension> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions"> <command commandId="org.ntlab.traceCollector.commands.instrumentationForOnlineAnalysis" id="org.ntlab.traceCollector.menus.instrumentationForOnlineAnalysis" label="Instrumentation for Online Analysis"> <visibleWhen> <with variable="selection"> <iterate> <adapt type="org.eclipse.core.resources.IProject"> </adapt> </iterate> </with> </visibleWhen> </command> <command commandId="org.ntlab.traceCollector.commands.instrumentationForOfflineAnalysis" id="org.ntlab.traceCollector.menus.instrumentationForOfflineAnalysis" label="Instrumentation for Offline Analysis"> <visibleWhen> <with variable="selection"> <iterate> <adapt type="org.eclipse.core.resources.IProject"> </adapt> </iterate> </with> </visibleWhen> </command> </menuContribution> </extension> <!-- ロード時にトレーサを埋め込んで実行 --> <extension point="org.eclipse.debug.ui.launchShortcuts"> <shortcut class="org.ntlab.traceCollector.ui.TracerLaunchShortcut" id="org.ntlab.traceCollector.launch.shortcut" label="Java Application with Tracer" modes="run, debug"> <contextualLaunch> <enablement> <with variable="selection"> <iterate> <and> <adapt type="org.eclipse.jdt.core.IJavaElement"> <test property="org.eclipse.jdt.core.isInJavaProject"/> </adapt> <or> <test property="org.eclipse.jdt.launching.hasMain"/> <test property="org.eclipse.jdt.launching.isContainer"/> <test property="org.eclipse.jdt.launching.isPackageFragment"/> <test property="org.eclipse.jdt.launching.isPackageFragmentRoot"/> </or> </and> </iterate> </with> </enablement> </contextualLaunch> </shortcut> </extension> <extension point="org.eclipse.debug.core.launchConfigurationTypes"> <launchConfigurationType delegate="org.ntlab.traceCollector.TracerLaunchConfigurationDelegate" id="org.ntlab.traceCollector.launchConfigurationType" migrationDelegate="org.eclipse.jdt.internal.launching.JavaMigrationDelegate" modes="run, debug" name="Java Application with Tracer" sourceLocatorId="org.eclipse.jdt.launching.javaSourceLocator" sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"> </launchConfigurationType> </extension> <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups"> <launchConfigurationTabGroup class="org.ntlab.traceCollector.ui.TracerLocalJavaApplicationTabGroup" helpContextId="org.eclipse.jdt.debug.ui.launchConfigHelpContext.local_java_application" id="org.ntlab.traceCollector.launchConfigurationTabGroup" type="org.ntlab.traceCollector.launchConfigurationType"> <launchMode description="Java Application with Tracer" mode="run"> </launchMode> <launchMode description="Java Application with Tracer" mode="debug"> </launchMode> </launchConfigurationTabGroup> </extension> </plugin>