<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension point="org.eclipse.ui.startup">
 		<startup class="cn.net.connor.std.processedit.KStartup"/>
   </extension>
   <extension point="org.eclipse.ui.views">
   		<category id="cn.net.connor.std.processedit.view" name="工艺视图"/>
	    <view
	      category="cn.net.connor.std.processedit.view"
	   	  closable="true"
	      allowMultiple="false"
	      icon="icons/meprocess_16.png"
	      class="cn.net.connor.std.processedit.processview.ProcessPropertyView"
	      id="cn.net.connor.std.processedit.processview.ProcessPropertyView"
	      name="工艺工序编辑">
	   </view>
	    <view
	      category="cn.net.connor.std.processedit.view"
	   	  closable="true"
	      allowMultiple="false"
	      icon="icons/meoperation_16.png"
	      class="cn.net.connor.std.processedit.meopviewfx.MEOPEditView"
	      id="cn.net.connor.std.processedit.meopview.MEOPEditView"
	      name="工步编辑">
	   </view>
	</extension>
   <extension point="com.teamcenter.rac.aifrcp.viewDefs">
	    <view
              alwaysUseSetRootInputObject="true"
              autoCloseEnabled="true"
              folderId="RAC_Folder_UR"
              id="cn.net.connor.std.processedit.processview.ProcessPropertyView"
              selectionInPrimaryEffectsInvisbleSecondary="false"
              selectionInSecondaryEffectsPrimary="false"
              type="secondary">
        </view>
	    <view
              alwaysUseSetRootInputObject="true"
              autoCloseEnabled="true"
              folderId="RAC_Folder_UR"
              id="cn.net.connor.std.processedit.meopview.MEOPEditView"
              selectionInPrimaryEffectsInvisbleSecondary="false"
              selectionInSecondaryEffectsPrimary="false"
              type="secondary">
        </view>
	</extension>
	<extension point="org.eclipse.ui.commands">
	  <command name="创建工艺" id="cn.net.connor.std.processedit.commands.NewProcessCommand"/>
      <command name="创建工序" id="cn.net.connor.std.processedit.commands.NewMeopCommand"/>
      <command name="工艺工序编辑" id="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.processview.ProcessPropertyView"/>
      <command name="工步编辑" id="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.meopview.MEOPEditView"/>
      <command name="附件" id="cn.net.connor.std.processedit.commands.OpenViewCommand#com.teamcenter.rac.cme.attachments"/>
      <command name="修改工序号" id="cn.net.connor.std.processedit.commands.ModifyMeopNoCommand"/>
      <command name="标准工序略图" id="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_BZGXLT"/>
      <command name="下料工序略图" id="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_XLGXLT"/>
      <command name="创建原材料BOM" id="cn.net.connor.std.processedit.commands.CreateBOMViewHandler"/>
      <command name="工艺工序编码申请" id="cn.net.connor.std.processedit.gygxsqbm.GYBMSQHandler"/>
 
 <command name="工艺分工" id="ProcessDivisionHandler"/>
<command name="工序分工" id="GXDivisionHandler"/>


<command name="工艺复用" id="ProcessMultiplexHandler"/>
 
   </extension>
   <extension point="org.eclipse.ui.handlers">
      <handler commandId="cn.net.connor.std.processedit.commands.NewProcessCommand" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.NewMeopCommand" class="cn.net.connor.std.aifrcp.KHandler">
      	 <activeWhen>        
            <and>
            	<reference
                     definitionId="com.teamcenter.rac.cme.mpp.inMainView">
               	</reference>
            </and>               
         </activeWhen>
      </handler>
      <handler commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.processview.ProcessPropertyView" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.meopview.MEOPEditView" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#com.teamcenter.rac.cme.attachments" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.ModifyMeopNoCommand" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_BZGXLT" class="cn.net.connor.std.aifrcp.KHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_XLGXLT" class="cn.net.connor.std.aifrcp.KHandler"/>
      
      
      <handler commandId="ProcessDivisionHandler" class="cn.net.connor.std.processedit.ldy.ProcessDivisionHandler"/>
      <handler commandId="GXDivisionHandler" class="cn.net.connor.std.processedit.ldy.GXDivisionHandler"/>
      <handler commandId="ProcessMultiplexHandler" class="cn.net.connor.std.processedit.ldy.ProcessMultiplexHandler"/>
      <handler commandId="cn.net.connor.std.processedit.commands.CreateBOMViewHandler" class="cn.net.connor.std.processedit.commands.CreateBOMViewHandler"/>
      <handler commandId="cn.net.connor.std.processedit.gygxsqbm.GYBMSQHandler" class="cn.net.connor.std.processedit.gygxsqbm.GYBMSQHandler"/>
      
      
   </extension>
   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu label="工艺管理" id="cn.net.connor.std.processedit.mainmenu">
         	<separator name ="sp1" visible="false"/>
         	<separator name ="sp2" visible="true"/>
         	<separator name ="sp3" visible="true"/>
			<separator name ="sp4" visible="true"/>
			<separator name ="sp5" visible="true"/>
			<separator name ="sp6" visible="true"/>
			<separator name ="sp7" visible="true"/>
         	<menu label="生成工艺卡" id="cn.net.connor.std.processedit.mainmenu.card"/>
			<!--menu label="DWG 工序略图" id="cn.net.connor.std.processedit.mainmenu.dwgdataset"/-->
         </menu>
      </menuContribution>
      <menuContribution locationURI="menu:cn.net.connor.std.processedit.mainmenu.dwgdataset?after=additions">
         <command commandId="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_BZGXLT" id="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_BZGXLT">
         	<visibleWhen>        
					<with variable="rac_command_suppression">
					  <not>
						 <iterate operator="or">
							<equals
								  value="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_BZGXLT">
							</equals>
						 </iterate>
					  </not>
				   </with>                     
	         </visibleWhen>
         </command>
         <command commandId="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_XLGXLT" id="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_XLGXLT">
         	<visibleWhen>        
	     
					<with variable="rac_command_suppression">
					  <not>
						 <iterate operator="or">
							<equals
								  value="cn.net.connor.std.processedit.commands.NewDatasetFromTemplateCommand#Connor_AVIC_XLGXLT">
							</equals>
						 </iterate>
					  </not>
				   </with>                  
	         </visibleWhen>
         </command>
      </menuContribution>

	  <menuContribution locationURI="menu:cn.net.connor.std.processedit.mainmenu?after=sp6">
	  
	  
	           <command commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.processview.ProcessPropertyView"  id="cn.net.connor.std.processedit.mainmenu.gygxbj">
         	<visibleWhen>
				<with variable="rac_command_suppression">
				  <not>
					 <iterate operator="or">
						<equals
							  value="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.processview.ProcessPropertyView">
						</equals>
					 </iterate>
				  </not>
			   </with>           
	         </visibleWhen>
         </command>
	  
      	 <command commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.meopview.MEOPEditView" id="cn.net.connor.std.processedit.mainmenu.gdbj">
      		<visibleWhen>
				<with variable="rac_command_suppression">
				  <not>
					 <iterate operator="or">
						<equals
							  value="cn.net.connor.std.processedit.commands.OpenViewCommand#cn.net.connor.std.processedit.meopview.MEOPEditView">
						</equals>
					 </iterate>
				  </not>
			   </with>           
	         </visibleWhen> 
      	 </command>
      	 
      	        <command commandId="ProcessDivisionHandler" id="ProcessDivisionHandler" mnemonic="S"/>
				<command commandId="GXDivisionHandler" id="GXDivisionHandler" mnemonic="S"/>
				<command commandId="ProcessMultiplexHandler" id="ProcessMultiplexHandler" mnemonic="S"/>
      			<command commandId="cn.net.connor.std.processedit.commands.CreateBOMViewHandler" id="cn.net.connor.std.processedit.commands.CreateBOMViewHandler" mnemonic="S"/>
      			<command commandId="cn.net.connor.std.processedit.gygxsqbm.GYBMSQHandler" id="cn.net.connor.std.processedit.gygxsqbm.GYBMSQHandler" mnemonic="S"/>
      	
      				
      </menuContribution>
      <menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <command commandId="cn.net.connor.std.processedit.commands.NewProcessCommand" icon="icons/meprocess_16.png" id="popups.newprocess">
         	<visibleWhen>
				<with variable="rac_command_suppression">
				  <not>
					 <iterate operator="or">
						<equals
							  value="cn.net.connor.std.processedit.commands.NewProcessCommand">
						</equals>
					 </iterate>
				  </not>
			   </with>           
	         </visibleWhen> 
         </command>
         
         
  <command commandId="cn.net.connor.std.processedit.commands.NewMeopCommand" icon="icons/meoperation_16.png" id="popups.newmeop">
         	<visibleWhen>
				<with variable="rac_command_suppression">
				  <not>
					 <iterate operator="or">
						<equals
							  value="cn.net.connor.std.processedit.commands.NewMeopCommand">
						</equals>
					 </iterate>
				  </not>
			   </with>           
	         </visibleWhen> 
         </command>
         

      </menuContribution>
   </extension>
   <extension point="org.eclipse.ui.bindings">
      <!--创建工艺-->
      <key
            commandId="cn.net.connor.std.processedit.commands.NewProcessCommand"
            sequence="M3+N"
            schemeId="com.teamcenter.rac.scheme">
      </key>
      <!--创建工序-->
      <key
            commandId="cn.net.connor.std.processedit.commands.NewMeopCommand"
            sequence="M3+C"
            schemeId="com.teamcenter.rac.scheme">
      </key>
      <!--修订工艺>
      <!key
            commandId="com.connor.nhjs.gy.revise.process.ReviseProcessHandler"
            sequence="M3+R"
            schemeId="com.teamcenter.rac.scheme">
      </key-->
      <!--工序简图>
      <key
            commandId="cn.net.connor.std.word.commands.MeopDatasetCommand"
            sequence="M3+J"
            schemeId="com.teamcenter.rac.scheme">
      </key-->
      <!--工艺合本>
      <key
            commandId="cn.net.connor.std.word.commands.MergePDFCommand"
            sequence="M3+H"
            schemeId="com.teamcenter.rac.scheme">
      </key-->
      <!--打开附件-->
      <key
            commandId="cn.net.connor.std.processedit.commands.OpenViewCommand#com.teamcenter.rac.cme.attachments"
            sequence="M3+I"
            schemeId="com.teamcenter.rac.scheme">
      </key>
      <!--工艺借用-->
      <key
            commandId="ProcessBorrowHandler"
            sequence="M3+M"
            schemeId="com.teamcenter.rac.scheme">
      </key>
      <!--工序借用>
      <key
            commandId="MEOPBorrowHandler"
            sequence="M3+O"
            schemeId="com.teamcenter.rac.scheme">
      </key-->
      <!--创建变更>
      <key
            commandId="cn.com.create.change.CreateChangeHandler"
            sequence="M3+L"
            schemeId="com.teamcenter.rac.scheme">
      </key-->
   </extension>
</plugin>
