<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
This program and the accompanying materials are made available under the terms
of the Eclipse Public License v1.0 which accompanies this distribution, and is 
available at http://www.eclipse.org/legal/epl-v10.html

Initial Contributors:
The following IBM employees contributed to the Remote System Explorer
component that contains this file: David McKnight, Kushal Munir, 
Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, 
Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.

Contributors:
Martin Oberhuber (Wind River) - [180519] declaratively register adapter factories
Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
Martin Oberhuber (Wind River) - [186523] Move subsystemConfigurations from UI to core
Martin Oberhuber (Wind River) - [186748] Move ISubSystemConfigurationAdapter from UI/rse.core.subsystems.util
-->
<?eclipse version="3.1"?>
<plugin>

<!-- ============================================ -->
<!-- Register Adapter Factories                   -->
<!-- ============================================ -->
 
	<extension point="org.eclipse.core.runtime.adapters">
		<!-- IRemoteProcess --> 
		<factory 
				class="org.eclipse.rse.internal.processes.ui.view.SystemViewProcessAdapterFactory" 
				adaptableType="org.eclipse.rse.subsystems.processes.core.subsystem.IRemoteProcess">
            <adapter type="org.eclipse.rse.ui.view.ISystemViewElementAdapter"/>
			<adapter type="org.eclipse.rse.core.subsystems.ISystemDragDropAdapter"/>
			<adapter type="org.eclipse.rse.ui.view.ISystemRemoteElementAdapter"/>
			<adapter type="org.eclipse.ui.views.properties.IPropertySource"/>
			<adapter type="org.eclipse.ui.model.IWorkbenchAdapter"/>
			<adapter type="org.eclipse.ui.IActionFilter"/>
			<!-- TODO Check: These are not in the adapter factories 
			     getAdapterList() Although the adapter implements them
			<adapter type="org.eclipse.ui.progress.IDeferredWorkbenchAdapter"/>
			<adapter type="org.eclipse.rse.core.subsystems.IRemoteObjectIdentifier"/>
			-->
		</factory> 
		<!-- IRemoteProcessSubSystemConfiguration --> 
		<factory 
				class="org.eclipse.rse.internal.processes.ui.view.RemoteProcessSubSystemConfigurationAdapterFactory" 
				adaptableType="org.eclipse.rse.subsystems.processes.core.subsystem.IRemoteProcessSubSystemConfiguration">
            <adapter type="org.eclipse.rse.ui.subsystems.ISubSystemConfigurationAdapter"/>
		</factory> 
	</extension>

<!-- ============================================== -->
<!-- Define subsystem configurations for processes...     -->
<!-- ============================================== -->
<!-- let's wait until this is supported on windows
      <extension
         point="org.eclipse.rse.core.subsystemConfigurations">
      <factory
            systemTypeIds="org.eclipse.rse.systemtype.local"
            name="%Factory.LocalProcesses"
            iconlive="icons/full/obj16/activeprocess.gif"
            icon="icons/full/obj16/activeprocess.gif"
            category="processes"
            class="org.eclipse.rse.subsystems.processes.local.LocalProcessSubSystemConfiguration"
            vendor="%providerName"
            id="local.processes">
      </factory>
      </extension>
-->
   <extension
         point="org.eclipse.ui.propertyPages">   
      <page
            name="%PropertyPage.ServerLauncherSettings" 
            class="org.eclipse.rse.internal.ui.propertypages.ServerLauncherPropertyPage"
            id="org.eclipse.rse.ui.propertypages.serverLauncherPropertyPage">
            <filter name="serverLaunchPP" value="true"/>
         <enabledWhen>
            <instanceof value="org.eclipse.rse.subsystems.processes.servicesubsystem.ProcessServiceSubSystem"/>
         </enabledWhen>
      </page>
      <page
            name="%PropertyPage.Service"
            class="org.eclipse.rse.internal.processes.ui.propertypages.ProcessServicesPropertyPage"
            id="org.eclipse.rse.processes.ui.propertypages.ProcessServicesPropertyPage">
         <enabledWhen>
            <instanceof value="org.eclipse.rse.subsystems.processes.servicesubsystem.ProcessServiceSubSystem"/>
         </enabledWhen>
      </page>
   </extension>
   
<!-- ============================================ -->
<!-- Define Help Context                          -->
<!-- ============================================ -->
   <extension
         point="org.eclipse.help.contexts">
      <contexts
            file="HelpContexts.xml">
      </contexts>
   </extension>
 
</plugin>