This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - Create Asynchronous sample project. - Open diagram of AsynchronousSampleClient process. - Goto Navigator window. - Select 'AynchronousSampleClient > Correlation Sets > correlator > correlatorProp' node in tree and delete it. - Notice that property was not deleted from correlation set but deleted from wsdl.
here is the fix: --- BpelNode.java *************** *** 48,49 **** --- 48,50 ---- import org.netbeans.modules.bpel.nodes.actions.DeleteBpelExtensibiltyWsdlRefAction; + import org.netbeans.modules.bpel.nodes.actions.DeletePropertyAction; import org.netbeans.modules.bpel.nodes.actions.FindMexPeerAction; *************** --- 153,156 ---- ACTION_TYPE_MAP.put(ActionType.DELETE_BPEL_EXT_FROM_WSDL ,SystemAction.get(DeleteBpelExtensibiltyWsdlRefAction.class)); + ACTION_TYPE_MAP.put(ActionType.DELETE_PROPERTY_ACTION + ,SystemAction.get(DeletePropertyAction.class)); --- CorrelationPropertyNode.java *************** *** 29,34 **** --- 29,35 ---- import org.netbeans.modules.xml.schema.model.GlobalElement; import org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent; import org.netbeans.modules.xml.xam.Reference; + import org.openide.nodes.Node; import org.openide.nodes.Sheet; import static org.netbeans.modules.bpel.properties.PropertyType.*; import org.netbeans.modules.bpel.nodes.actions.ActionType; *************** *** 161,171 **** } } protected ActionType[] getActionsArray() { return new ActionType[] { ActionType.SHOW_POPERTY_EDITOR, ActionType.SEPARATOR, ! ActionType.DELETE_BPEL_EXT_FROM_WSDL, ActionType.SEPARATOR, ActionType.PROPERTIES, }; --- 162,186 ---- } } + + private boolean isBpelExtNode() { + Node parent = getParentNode(); + while (parent != null) { + if (parent instanceof ImportWsdlNode) { + return true; + } + } + return false; + } + protected ActionType[] getActionsArray() { + ActionType deleteActionType = isBpelExtNode() + ? ActionType.DELETE_BPEL_EXT_FROM_WSDL + : ActionType.DELETE_PROPERTY_ACTION; return new ActionType[] { ActionType.SHOW_POPERTY_EDITOR, ActionType.SEPARATOR, ! deleteActionType, ActionType.SEPARATOR, ActionType.PROPERTIES, };
fix has been checked into release55_dev
corrected: CorrelationPropertyNode.java import org.netbeans.modules.xml.schema.model.GlobalElement; import org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent; import org.netbeans.modules.xml.xam.Reference; +import org.openide.nodes.Node; import org.openide.nodes.Sheet; @@ -161,11 +162,25 @@ } } + + private boolean isBpelExtNode() { + Node parent = getParentNode(); + while (parent != null) { + if (parent instanceof ImportWsdlNode) { + return true; + } + parent = parent.getParentNode(); + } + return false; + } + protected ActionType[] getActionsArray() { + ActionType deleteActionType = isBpelExtNode() + ? ActionType.DELETE_BPEL_EXT_FROM_WSDL + : ActionType.DELETE_PROPERTY_ACTION; return new ActionType[] { ActionType.SHOW_POPERTY_EDITOR, ActionType.SEPARATOR, - ActionType.DELETE_BPEL_EXT_FROM_WSDL, + deleteActionType, ActionType.SEPARATOR, ActionType.PROPERTIES, }; BpelNode.java ------------------- import org.netbeans.modules.bpel.model.api.support.UniqueId; import org.netbeans.modules.bpel.nodes.actions.AddPropertyToWsdlAction; import org.netbeans.modules.bpel.nodes.actions.DeleteBpelExtensibiltyWsdlRefAction; +import org.netbeans.modules.bpel.nodes.actions.DeletePropertyAction; import org.netbeans.modules.bpel.nodes.actions.FindMexPeerAction; import org.netbeans.modules.bpel.nodes.actions.GoToMessageExchangeContainerSourceAction; import org.netbeans.modules.bpel.nodes.actions.MoveDownCopyAction; @@ -151,6 +152,8 @@ ACTION_TYPE_MAP.put(ActionType.REMOVE,SystemAction.get(DeleteAction.class)); ACTION_TYPE_MAP.put(ActionType.DELETE_BPEL_EXT_FROM_WSDL ,SystemAction.get(DeleteBpelExtensibiltyWsdlRefAction.class)); + ACTION_TYPE_MAP.put(ActionType.DELETE_PROPERTY_ACTION + ,SystemAction.get(DeletePropertyAction.class)); ACTION_TYPE_MAP.put(ActionType.SHOW_POPERTY_EDITOR ,SystemAction.get(ShowPropertyEditorAction.class)); ACTION_TYPE_MAP.put(ActionType.ADD_CATCH
Since this issue is being documented. Downgrade the Priority from P1 to P2 for 5.5 Release.
Added to RNs Use the following link to review the wording and location of the issue in the staged Release Notes http://nbstaging.czech/community/releases/55/entpack_relnotes.html#87221
fix is in release55_dev and in trunk
Can not be verified - see 93405 Issue No context menu, no action after press Del.
WinXP, NB5.5.1+ gavotte 070206
Context menus are backed. Ready to verify.
Verified