1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!--   
   3    Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   4    
   5    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6    
   7    The contents of this file are subject to the terms of either the Universal Permissive License 
   8    v 1.0 as shown at http://oss.oracle.com/licenses/upl
   9    
  10    or the following license:
  11    
  12    Redistribution and use in source and binary forms, with or without modification, are permitted
  13    provided that the following conditions are met:
  14    
  15    1. Redistributions of source code must retain the above copyright notice, this list of conditions
  16    and the following disclaimer.
  17    
  18    2. Redistributions in binary form must reproduce the above copyright notice, this list of
  19    conditions and the following disclaimer in the documentation and/or other materials provided with
  20    the distribution.
  21    
  22    3. Neither the name of the copyright holder nor the names of its contributors may be used to
  23    endorse or promote products derived from this software without specific prior written permission.
  24    
  25    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  26    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  27    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  28    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  30    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  31    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
  32    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33 -->
  34 <?eclipse version="3.2"?>
  35 <plugin>
  36    <extension-point id="datapage" name="Flight Recorder Data Page" schema="schema/datapage.exsd"/>
  37 
  38  <extension point="org.eclipse.ui.views">
  39      <view
  40           allowMultiple="false"
  41           category="org.openjdk.jmc.ui.main"
  42           class="org.openjdk.jmc.flightrecorder.ui.views.stacktrace.StacktraceView"
  43           icon="icons/stckframe_obj.gif"
  44           id="org.openjdk.jmc.flightrecorder.ui.StacktraceView"
  45           name="%STACK_TRACE"
  46           restorable="true">
  47     </view>
  48     <view
  49         allowMultiple="false"
  50         category="org.openjdk.jmc.ui.main"
  51         class="org.openjdk.jmc.flightrecorder.ui.ResultPageBookView"
  52         icon="icons/jfr.png"
  53         id="org.openjdk.jmc.flightrecorder.ui.ResultView"
  54         name="%RESULTS"
  55         restorable="true">
  56     </view>
  57  </extension>
  58 
  59  <extension
  60        point="org.eclipse.ui.editors">
  61       <editor
  62             class="org.openjdk.jmc.flightrecorder.ui.JfrEditor"
  63             extensions="jfr"
  64             icon="icons/jfr.png"
  65             id="org.openjdk.jmc.flightrecorder.ui.JfrEditor"
  66             name="Flight Recording">
  67       </editor>
  68    </extension>
  69    
  70    <extension
  71          point="org.eclipse.ui.perspectiveExtensions">
  72       <perspectiveExtension
  73             targetID="org.openjdk.jmc.ui.idesupport.StandardPerspective">
  74          <view
  75                closeable="false"
  76                id="org.eclipse.ui.views.ContentOutline"
  77                minimized="false"
  78                moveable="true"
  79                relationship="stack"
  80                relative="org.openjdk.jmc.browser.views.JVMBrowserView"
  81                showTitle="false"
  82                standalone="false"
  83                visible="true">
  84          </view>
  85          <viewShortcut
  86                id="org.eclipse.ui.views.ContentOutline">
  87          </viewShortcut>
  88          <view
  89                closeable="true"
  90                id="org.eclipse.ui.views.PropertySheet"
  91                minimized="false"
  92                moveable="true"
  93                ratio="0.65"
  94                relationship="bottom"
  95                relative="org.eclipse.ui.views.ContentOutline"
  96                showTitle="true"
  97                standalone="false"
  98                visible="true">
  99          </view>
 100          <viewShortcut
 101                id="org.eclipse.ui.views.PropertySheet">
 102          </viewShortcut>
 103       </perspectiveExtension>
 104       <perspectiveExtension
 105             targetID="org.openjdk.jmc.ui.idesupport.StandardPerspective">
 106          <view
 107                closeable="false"
 108                id="org.openjdk.jmc.flightrecorder.ui.StacktraceView"
 109                minimized="false"
 110                moveable="true"
 111                ratio="0.75"
 112                relationship="bottom"
 113                relative="org.eclipse.ui.editorss"
 114                showTitle="false"
 115                standalone="false"
 116                visible="true">
 117          </view>
 118          <viewShortcut
 119                id="org.openjdk.jmc.flightrecorder.ui.StacktraceView">
 120          </viewShortcut>
 121       </perspectiveExtension>
 122       
 123       <perspectiveExtension
 124             targetID="org.openjdk.jmc.ui.idesupport.StandardPerspective">
 125          <view
 126                closeable="false"
 127                id="org.openjdk.jmc.flightrecorder.ui.ResultView"
 128                minimized="true"
 129                moveable="true"
 130                ratio="1"
 131                relationship="stack"
 132                relative="org.eclipse.ui.views.PropertySheet"
 133                showTitle="false"
 134                standalone="false"
 135                visible="true">
 136          </view>
 137          <viewShortcut
 138                id="org.openjdk.jmc.flightrecorder.ui.ResultView">
 139          </viewShortcut>
 140       </perspectiveExtension>
 141    </extension>
 142    
 143  <extension
 144        point="org.eclipse.ui.preferencePages">
 145     <page
 146           category="org.openjdk.jmc.ui.preferences.MissionControlPage"
 147           class="org.openjdk.jmc.flightrecorder.ui.preferences.GeneralPage"
 148           id="org.openjdk.jmc.flightrecorder.ui.preferences.GeneralPage"
 149           name="%FLIGHT_RECORDER">
 150     </page>
 151     <page
 152           category="org.openjdk.jmc.flightrecorder.ui.preferences.GeneralPage"
 153           class="org.openjdk.jmc.flightrecorder.ui.preferences.RulesPage"
 154           id="org.openjdk.jmc.flightrecorder.ui.preferences.RulesPage"
 155           name="%FLR_RULES">
 156     </page>
 157  </extension>
 158 
 159  <extension
 160          point="org.eclipse.ui.exportWizards">
 161       <wizard
 162             category="org.openjdk.jmc.ui.wizards.export"
 163             class="org.openjdk.jmc.flightrecorder.ui.PagesExportWizard"
 164             icon="icons/log.gif"
 165             id="org.openjdk.jmc.flightrecorder.ui.pages"
 166             name="%FLR_PAGES">
 167                 <description>
 168            %EXPORT_FLR_PAGES_DESCRIPTION
 169         </description>
 170       </wizard>
 171   </extension>
 172   <extension
 173          point="org.eclipse.ui.importWizards">
 174       <wizard
 175             category="org.openjdk.jmc.ui.wizards.import"
 176             class="org.openjdk.jmc.flightrecorder.ui.PagesImportWizard"
 177             icon="icons/log.gif"
 178             id="org.openjdk.jmc.flightrecorder.ui.pages"
 179             name="%FLR_PAGES">
 180         <description>
 181            %IMPORT_FLR_PAGES_DESCRIPTION
 182         </description>
 183       </wizard>
 184   </extension>
 185    
 186  <extension
 187        point="org.eclipse.core.runtime.preferences">
 188     <initializer
 189           class="org.openjdk.jmc.flightrecorder.ui.preferences.Initializer">
 190     </initializer>
 191  </extension>
 192  
 193   <extension
 194          point="org.eclipse.ui.menus">
 195       <menuContribution
 196             locationURI="menu:org.openjdk.jmc.flightrecorder.ui.FlightRecordingEditor.tabs">
 197          <menu
 198                icon="icons/chart_pie_16x16.png"
 199                id="mc.flr.memory"
 200                label="Memory">
 201          </menu>
 202       </menuContribution>
 203    </extension>
 204    <extension point="org.eclipse.help.contexts">
 205       <contexts file="org.openjdk.jmc.flightrecorder.ui_contexts.xml" />
 206    </extension>
 207    <extension
 208          point="org.openjdk.jmc.flightrecorder.ui.datapage">
 209       <factory
 210             class="org.openjdk.jmc.flightrecorder.ui.overview.ResultOverview$ResultOverviewPageFactory"
 211             id="org.openjdk.jmc.flightrecorder.ui.resultoverview">
 212       </factory>
 213       <factory
 214             class="org.openjdk.jmc.flightrecorder.ui.pages.JavaApplicationPage$JavaApplicationPageFactory"
 215             id="org.openjdk.jmc.flightrecorder.ui.javaapplication">
 216       </factory>
 217       <factory
 218                 class="org.openjdk.jmc.flightrecorder.ui.pages.ThreadsPage$ThreadsPageFactory"
 219                 id="org.openjdk.jmc.flightrecorder.ui.threads">
 220       </factory>
 221       <factory
 222             class="org.openjdk.jmc.flightrecorder.ui.pages.HeapPage$HeapPageFactory"
 223             id="org.openjdk.jmc.flightrecorder.ui.heap">
 224       </factory>
 225             <factory
 226             class="org.openjdk.jmc.flightrecorder.ui.pages.MemoryLeakPage$MemoryLeakPageFactory"
 227             id="org.openjdk.jmc.flightrecorder.ui.memoryleak">
 228       </factory>
 229       <factory
 230             class="org.openjdk.jmc.flightrecorder.ui.pages.LockInstancesPage$LockInstancesPageFactory"
 231             id="org.openjdk.jmc.flightrecorder.ui.lockinstances">
 232       </factory>
 233       <factory
 234             class="org.openjdk.jmc.flightrecorder.ui.pages.FileIOPage$FileIOPageFactory"
 235             id="org.openjdk.jmc.flightrecorder.ui.fileio">
 236       </factory>
 237       <factory
 238             class="org.openjdk.jmc.flightrecorder.ui.pages.SocketIOPage$SocketIOPageFactory"
 239             id="org.openjdk.jmc.flightrecorder.ui.socketio">
 240       </factory>
 241       <factory
 242             class="org.openjdk.jmc.flightrecorder.ui.pages.MethodProfilingPage$MethodProfilingPageFactory"
 243             id="org.openjdk.jmc.flightrecorder.ui.methodprofiling">
 244       </factory>
 245       <factory
 246             class="org.openjdk.jmc.flightrecorder.ui.pages.NativeLibraryPage$NativeLibraryPageFactory"
 247             id="org.openjdk.jmc.flightrecorder.ui.nativelibrary">
 248       </factory>
 249       <factory
 250             class="org.openjdk.jmc.flightrecorder.ui.pages.ExceptionsPage$ExceptionsPageFactory"
 251             id="org.openjdk.jmc.flightrecorder.ui.exceptions">
 252       </factory>
 253       <factory
 254             class="org.openjdk.jmc.flightrecorder.ui.pages.ThreadDumpsPage$ThreadDumpsPageFactory"
 255             id="org.openjdk.jmc.flightrecorder.ui.threaddumps">
 256       </factory>
 257       <factory
 258             class="org.openjdk.jmc.flightrecorder.ui.pages.JVMInformationPage$JVMInformationPageFactory"
 259             id="org.openjdk.jmc.flightrecorder.ui.jvminformation">
 260       </factory>
 261       <factory
 262             class="org.openjdk.jmc.flightrecorder.ui.pages.GarbageCollectionsPage$GarbageCollectionPageFactory"
 263             id="org.openjdk.jmc.flightrecorder.ui.garbagecollections">
 264       </factory>
 265       <factory
 266             class="org.openjdk.jmc.flightrecorder.ui.pages.GCConfigurationPage$GCConfigurationPageFactory"
 267             id="org.openjdk.jmc.flightrecorder.ui.gcconfiguration">
 268       </factory>
 269       <factory
 270             class="org.openjdk.jmc.flightrecorder.ui.pages.CompilationsPage$CompilationsPageFactory"
 271             id="org.openjdk.jmc.flightrecorder.ui.compilations">
 272       </factory>
 273       <factory
 274             class="org.openjdk.jmc.flightrecorder.ui.pages.CodeCachePage$CodeCachePageFactory"
 275             id="org.openjdk.jmc.flightrecorder.ui.codecache">
 276       </factory>
 277       <factory
 278             class="org.openjdk.jmc.flightrecorder.ui.pages.ClassLoadingPage$ClassLoadingPageFactory"
 279             id="org.openjdk.jmc.flightrecorder.ui.classloading">
 280       </factory>
 281       <factory
 282             class="org.openjdk.jmc.flightrecorder.ui.pages.TlabPage$TlabPageFactory"
 283             id="org.openjdk.jmc.flightrecorder.ui.tlab">
 284       </factory>
 285       <factory
 286             class="org.openjdk.jmc.flightrecorder.ui.pages.SystemPage$SystemPageFactory"
 287             id="org.openjdk.jmc.flightrecorder.ui.system">
 288       </factory>
 289       <factory
 290             class="org.openjdk.jmc.flightrecorder.ui.pages.ProcessesPage$ProcessesPageFactory"
 291             id="org.openjdk.jmc.flightrecorder.ui.processes">
 292       </factory>
 293       <factory
 294             class="org.openjdk.jmc.flightrecorder.ui.pages.SystemPropertiesPage$SystemPropertiesPageFactory"
 295             id="org.openjdk.jmc.flightrecorder.ui.systemproperties">
 296       </factory>
 297       <factory
 298             class="org.openjdk.jmc.flightrecorder.ui.pages.EnvironmentVariablesPage$EnvironmentVariablesPageFactory"
 299             id="org.openjdk.jmc.flightrecorder.ui.environmentvariables">
 300       </factory>
 301       <factory
 302             class="org.openjdk.jmc.flightrecorder.ui.pages.RecordingPage$RecordingPageFactory"
 303             id="org.openjdk.jmc.flightrecorder.ui.recording">
 304       </factory>
 305       <factory
 306             class="org.openjdk.jmc.flightrecorder.ui.pages.EventBrowserPage$Factory"
 307             id="org.openjdk.jmc.flightrecorder.ui.eventbrowser">
 308       </factory>
 309       <factory
 310             class="org.openjdk.jmc.flightrecorder.ui.pages.itemhandler.ItemHandlerPage$Factory"
 311             id="org.openjdk.jmc.flightrecorder.ui.itemhandler">
 312       </factory>
 313       <factory
 314             class="org.openjdk.jmc.flightrecorder.ui.pages.VMOperationPage$VMOperationsPageFactory"
 315             id="org.openjdk.jmc.flightrecorder.ui.vmoperations">
 316       </factory>  
 317     </extension>
 318    <extension point="org.openjdk.jmc.flightrecorder.ui.datapage">
 319          <pages weight="100" file="defaultPages.xml" /> 
 320    </extension>
 321 </plugin>