Fix 90591 - BPEL process element should have Add Import actions milestone13_root
authorlativ@netbeans.org
Wed, 14 Mar 2007 09:05:25 +0000
changeset 9854914d0c2a3b
parent 97 a6ff4c2bef86
child 99 729a7ad5b2c7
Fix 90591 - BPEL process element should have Add Import actions
bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelNode.java
bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelProcessNode.java
bpel.editors/src/org/netbeans/modules/bpel/nodes/ImportContainerNode.java
bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/AddSchemaImportAddAction.java
bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/AddWsdlImportAddAction.java
bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/Bundle.properties
     1.1 --- a/bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelNode.java	Wed Mar 14 03:17:14 2007 +0000
     1.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelNode.java	Wed Mar 14 09:05:25 2007 +0000
     1.3 @@ -84,6 +84,7 @@
     1.4  import org.netbeans.modules.bpel.nodes.actions.AddOnEventAction;
     1.5  import org.netbeans.modules.bpel.nodes.actions.AddPropertyAction;
     1.6  import org.netbeans.modules.bpel.nodes.actions.AddPropertyAliasToWsdlAction;
     1.7 +import org.netbeans.modules.bpel.nodes.actions.AddSchemaImportAction;
     1.8  import org.netbeans.modules.bpel.nodes.actions.AddTerminationHandlerAction;
     1.9  import org.netbeans.modules.bpel.nodes.actions.BpelNodeAction;
    1.10  import org.netbeans.modules.bpel.nodes.actions.BpelNodeNewType;
    1.11 @@ -93,6 +94,7 @@
    1.12  import org.netbeans.modules.bpel.nodes.actions.MoveElseIfLeftAction;
    1.13  import org.netbeans.modules.bpel.nodes.actions.MoveElseIfRightAction;
    1.14  import org.netbeans.modules.bpel.nodes.actions.AddVariableAction;
    1.15 +import org.netbeans.modules.bpel.nodes.actions.AddWsdlImportAction;
    1.16  import org.netbeans.modules.bpel.nodes.actions.DeleteAction;
    1.17  import org.netbeans.modules.bpel.nodes.actions.GoToCorrelationSetContainerSourceAction;
    1.18  import org.netbeans.modules.bpel.nodes.actions.GoToVariableContainerSourceAction;
    1.19 @@ -104,7 +106,6 @@
    1.20  import org.netbeans.modules.bpel.nodes.dnd.Util;
    1.21  import org.netbeans.modules.bpel.properties.PropertyType;
    1.22  import org.netbeans.modules.bpel.properties.props.PropertyUtils;
    1.23 -import org.netbeans.modules.refactoring.api.ui.RefactoringActionsFactory;
    1.24  import org.netbeans.modules.soa.ui.SoaUiUtil;
    1.25  import org.netbeans.modules.soa.ui.form.CustomNodeEditor;
    1.26  import org.netbeans.modules.xml.xam.Component;
    1.27 @@ -268,6 +269,10 @@
    1.28                    SystemAction.get(GoToDiagrammAction.class));
    1.29          ACTION_TYPE_MAP.put(ActionType.CHANGE_ORDER_ACTION,
    1.30                    SystemAction.get(ReorderAction.class));
    1.31 +        ACTION_TYPE_MAP.put(ActionType.ADD_WSDL_IMPORT,
    1.32 +                  SystemAction.get(AddWsdlImportAction.class));
    1.33 +        ACTION_TYPE_MAP.put(ActionType.ADD_SCHEMA_IMPORT,
    1.34 +                  SystemAction.get(AddSchemaImportAction.class));
    1.35      }
    1.36      
    1.37      private Object reference;
     2.1 --- a/bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelProcessNode.java	Wed Mar 14 03:17:14 2007 +0000
     2.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/BpelProcessNode.java	Wed Mar 14 09:05:25 2007 +0000
     2.3 @@ -160,7 +160,9 @@
     2.4              // ActionType.ADD_MESSAGE_EXCHANGE, // Issue 85553
     2.5              ActionType.ADD_PARTNER_LINK,
     2.6              ActionType.ADD_EVENT_HANDLERS,
     2.7 -            ActionType.ADD_FAULT_HANDLERS 
     2.8 +            ActionType.ADD_FAULT_HANDLERS,
     2.9 +            ActionType.ADD_WSDL_IMPORT,
    2.10 +            ActionType.ADD_SCHEMA_IMPORT
    2.11          };
    2.12      }
    2.13  
     3.1 --- a/bpel.editors/src/org/netbeans/modules/bpel/nodes/ImportContainerNode.java	Wed Mar 14 03:17:14 2007 +0000
     3.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/ImportContainerNode.java	Wed Mar 14 09:05:25 2007 +0000
     3.3 @@ -25,7 +25,9 @@
     3.4  import org.netbeans.modules.bpel.model.api.Process;
     3.5  import org.netbeans.modules.bpel.nodes.actions.ActionType;
     3.6  import org.netbeans.modules.bpel.nodes.actions.AddSchemaImportAction;
     3.7 +import org.netbeans.modules.bpel.nodes.actions.AddSchemaImportAddAction;
     3.8  import org.netbeans.modules.bpel.nodes.actions.AddWsdlImportAction;
     3.9 +import org.netbeans.modules.bpel.nodes.actions.AddWsdlImportAddAction;
    3.10  import org.openide.nodes.Children;
    3.11  import org.openide.util.Lookup;
    3.12  import static org.netbeans.modules.bpel.properties.PropertyType.*;
    3.13 @@ -70,15 +72,16 @@
    3.14              ActionType.ADD_SCHEMA_IMPORT
    3.15          };
    3.16      }
    3.17 -
    3.18 +    
    3.19 +    @Override
    3.20      public Action createAction(ActionType actionType) {
    3.21          Action action = null;
    3.22          switch (actionType) {
    3.23              case ADD_WSDL_IMPORT : 
    3.24 -                action = SystemAction.get(AddWsdlImportAction.class);
    3.25 +                action = SystemAction.get(AddWsdlImportAddAction.class);
    3.26                  break;
    3.27              case ADD_SCHEMA_IMPORT:
    3.28 -                action = SystemAction.get(AddSchemaImportAction.class);
    3.29 +                action = SystemAction.get(AddSchemaImportAddAction.class);
    3.30                  break;
    3.31              default 
    3.32                  : action = super.createAction(actionType);
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/AddSchemaImportAddAction.java	Wed Mar 14 09:05:25 2007 +0000
     4.3 @@ -0,0 +1,38 @@
     4.4 +/*
     4.5 + * The contents of this file are subject to the terms of the Common Development
     4.6 + * and Distribution License (the License). You may not use this file except in
     4.7 + * compliance with the License.
     4.8 + *
     4.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    4.10 + * or http://www.netbeans.org/cddl.txt.
    4.11 + *
    4.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
    4.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
    4.14 + * If applicable, add the following below the CDDL Header, with the fields
    4.15 + * enclosed by brackets [] replaced by your own identifying information:
    4.16 + * "Portions Copyrighted [year] [name of copyright owner]"
    4.17 + *
    4.18 + * The Original Software is NetBeans. The Initial Developer of the Original
    4.19 + * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    4.20 + * Microsystems, Inc. All Rights Reserved.
    4.21 + */
    4.22 +package org.netbeans.modules.bpel.nodes.actions;
    4.23 +
    4.24 +import org.openide.util.NbBundle;
    4.25 +
    4.26 +/**
    4.27 + *
    4.28 + * @author vb160295
    4.29 + * @version 1.0
    4.30 + */
    4.31 +public class AddSchemaImportAddAction extends AddSchemaImportAction {
    4.32 +
    4.33 +    /**
    4.34 +     * @see BpelNodeAction#getBundleName()
    4.35 +     * @return localized action name 
    4.36 +     */
    4.37 +    @Override
    4.38 +    protected String getBundleName() {
    4.39 +        return NbBundle.getMessage(BpelNodeAction.class, "CTL_DESC_AddSchemaImportAction");
    4.40 +    }
    4.41 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/AddWsdlImportAddAction.java	Wed Mar 14 09:05:25 2007 +0000
     5.3 @@ -0,0 +1,38 @@
     5.4 +/*
     5.5 + * The contents of this file are subject to the terms of the Common Development
     5.6 + * and Distribution License (the License). You may not use this file except in
     5.7 + * compliance with the License.
     5.8 + *
     5.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    5.10 + * or http://www.netbeans.org/cddl.txt.
    5.11 + *
    5.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
    5.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
    5.14 + * If applicable, add the following below the CDDL Header, with the fields
    5.15 + * enclosed by brackets [] replaced by your own identifying information:
    5.16 + * "Portions Copyrighted [year] [name of copyright owner]"
    5.17 + *
    5.18 + * The Original Software is NetBeans. The Initial Developer of the Original
    5.19 + * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    5.20 + * Microsystems, Inc. All Rights Reserved.
    5.21 + */
    5.22 +package org.netbeans.modules.bpel.nodes.actions;
    5.23 +
    5.24 +import org.openide.util.NbBundle;
    5.25 +
    5.26 +/**
    5.27 + *
    5.28 + * @author vb160295
    5.29 + * @version 1.0
    5.30 + */
    5.31 +public class AddWsdlImportAddAction extends AddWsdlImportAction {
    5.32 +
    5.33 +    /**
    5.34 +     * @see BpelNodeAction#getBundleName()
    5.35 +     * @return localized action name 
    5.36 +     */
    5.37 +    @Override
    5.38 +    protected String getBundleName() {
    5.39 +        return NbBundle.getMessage(BpelNodeAction.class, "CTL_DESC_AddSchemaImportAction");
    5.40 +    }
    5.41 +}
     6.1 --- a/bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/Bundle.properties	Wed Mar 14 03:17:14 2007 +0000
     6.2 +++ b/bpel.editors/src/org/netbeans/modules/bpel/nodes/actions/Bundle.properties	Wed Mar 14 09:05:25 2007 +0000
     6.3 @@ -93,8 +93,10 @@
     6.4  CTL_SwapElseIfWithMainAction=Swap With Main
     6.5  
     6.6  # AddImportAction
     6.7 -CTL_AddSchemaImportAction=Add Schema Import ...
     6.8 -CTL_AddWsdlImportAction=Add WSDL Import ...
     6.9 +CTL_AddSchemaImportAction=Schema Import ...
    6.10 +CTL_DESC_AddSchemaImportAction=Add Schema Import ...
    6.11 +CTL_AddWsdlImportAction=WSDL Import ...
    6.12 +CTL_DESC_AddWsdlImportAction=Add WSDL Import ...
    6.13  CTL_SelectImports=Select imports
    6.14  CTL_SelectOk=OK
    6.15