Additional Windchill Capabilities > Manufacturing Process Management > Customizing the Product Structure Explorer (PSE) > Disabling Actions by Object Type
  
Disabling Actions by Object Type
To disable an action in PSE by object type, follow these instructions:
1. Edit the ExplorerStructures.xml file.
Create a <TypeDefinition> element for the type(s) you will disable the action(s) for. For example, for the types org.my.MyTypeA , org.my.MyTypeB and org.my.MyTypeD which are children of WTPart you would define the following elements:
<TypeDefinition id="com.my.MyTypeATD"
typeId="WCTYPE|wt.part.WTPart|org.my.MyTypeA"/>

<TypeDefinition id="com.my.MyTypeBTD"
typeId="WCTYPE|wt.part.WTPart|org.my.MyTypeB"/>

<TypeDefinition id="com.my.MyTypeDTD"
typeId="WCTYPE|wt.part.WTPart|org.my.MyTypeD"/>
2. Edit the ExplorerValidators.xml file.
Create a <ValidatorDefinition> element for the group of types you wish to disable actions for. This will return false if the the type of the selected part matches one of the types referenced in the validator definition. For example, for the three types above, you would define a validator as follows:
<ValidatorDefinition id="com.my.IsNotEqualToTypesABDVAL"
validatorClass="com.ptc.windchill.explorer.structureexplorer.
validators.IsValidTypeValidator" inverted="true">
<Import id="com.my.MyTypeATD"/>
<Import id="com.my.MyTypeBTD"/>
<Import id="com.my.MyTypeDTD"/>
</ValidatorDefinition>
* 
It is important that the value for the validatorClass attribute of ValidatorDefinition be the exact class listed above, and that the the inverted attribute be set to “true”.
3. Edit the ExplorerActions.xml file.
Add a <ValidatorEntry> element to the actions you wish to have disabled for the specified types.
<ActionDefinition id="ptc.wnc.exp.EditCommonAttrsAction" ... >
...
<ValidatorEntry>
<Import id="com.my.IsNotEqualToTypesABDVAL"/>
</ValidatorEntry>
...
</ActionDefinition>
This configuration will disable the Edit Common Attributes action in the PSE application whenever an part of type A, B or D is selected.