Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 118087 | Differences between
and this patch

Collapse All | Expand All

(-)wsexplorer/uddi/forms/ud_categories_table.jsp (+6 lines)
Lines 27-38 Link Here
27
    <td height=40 valign="bottom" align="left" nowrap class="labels">
27
    <td height=40 valign="bottom" align="left" nowrap class="labels">
28
      <strong><%=uddiPerspective.getMessage("FORM_LABEL_USER_DEFINED_CATEGORIES")%></strong>
28
      <strong><%=uddiPerspective.getMessage("FORM_LABEL_USER_DEFINED_CATEGORIES")%></strong>
29
    </td>
29
    </td>
30
    <!--
30
    <td height=40 valign="bottom" align="left" nowrap class="labels">
31
    <td height=40 valign="bottom" align="left" nowrap class="labels">
31
      <a href="javascript:editSelectedDetailsUserDefinedCategoryRows('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_EDIT")%></a>
32
      <a href="javascript:editSelectedDetailsUserDefinedCategoryRows('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_EDIT")%></a>
32
    </td>
33
    </td>
33
    <td height=40 valign="bottom" align="left" nowrap class="labels">
34
    <td height=40 valign="bottom" align="left" nowrap class="labels">
34
      <a href="javascript:cancelSelectedDetailsUserDefinedCategoryRows('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_CANCEL")%></a>
35
      <a href="javascript:cancelSelectedDetailsUserDefinedCategoryRows('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_CANCEL")%></a>
35
    </td>
36
    </td>
37
    -->
36
    <td nowrap width="90%">&nbsp;</td>
38
    <td nowrap width="90%">&nbsp;</td>
37
  </tr>
39
  </tr>
38
</table>
40
</table>
Lines 46-56 Link Here
46
<div id="<%=tableContainerId%>" style="display:'';">
48
<div id="<%=tableContainerId%>" style="display:'';">
47
  <table width="95%" cellpadding=3 cellspacing=0 class="tableborder">
49
  <table width="95%" cellpadding=3 cellspacing=0 class="tableborder">
48
    <tr>
50
    <tr>
51
      <!--
49
      <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerId%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th>
52
      <th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerId%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th>
53
      -->
50
      <th class="headercolor" width="15%"><%=uddiPerspective.getMessage("FORM_LABEL_NAME")%></th>
54
      <th class="headercolor" width="15%"><%=uddiPerspective.getMessage("FORM_LABEL_NAME")%></th>
55
      <!--
51
      <th class="headercolor" width="10%"><%=uddiPerspective.getMessage("FORM_LABEL_CHECKED")%></th>
56
      <th class="headercolor" width="10%"><%=uddiPerspective.getMessage("FORM_LABEL_CHECKED")%></th>
52
      <th class="headercolor" width="70%"><%=uddiPerspective.getMessage("FORM_LABEL_FILE")%></th>
57
      <th class="headercolor" width="70%"><%=uddiPerspective.getMessage("FORM_LABEL_FILE")%></th>
53
      <th class="headercolor" width="*"><%=controller.getMessage("FORM_LABEL_ACTIONS")%></th>
58
      <th class="headercolor" width="*"><%=controller.getMessage("FORM_LABEL_ACTIONS")%></th>
59
      -->
54
    </tr>
60
    </tr>
55
  </table>
61
  </table>
56
</div>  
62
</div>  
(-)wsexplorer/uddi/scripts/detailstables.jsp (-38 / +38 lines)
Lines 859-911 Link Here
859
    var table = getTable(tableContainerId);
859
    var table = getTable(tableContainerId);
860
    var tableBody = table.getElementsByTagName("TBODY").item(0);
860
    var tableBody = table.getElementsByTagName("TBODY").item(0);
861
    var newRow = document.createElement("tr");
861
    var newRow = document.createElement("tr");
862
    var column0 = document.createElement("td");
862
    //var column0 = document.createElement("td");
863
    var column1 = document.createElement("td");
863
    var column1 = document.createElement("td");
864
    var column2 = document.createElement("td");
864
    //var column2 = document.createElement("td");
865
    var column3 = document.createElement("td");
865
    //var column3 = document.createElement("td");
866
    var column4 = document.createElement("td");
866
    //var column4 = document.createElement("td");
867
    
867
    
868
    column0.className = "checkboxcells";
868
    //column0.className = "checkboxcells";
869
    column1.className = "tablecells";
869
    column1.className = "tablecells";
870
    column1.width = "15%";
870
    column1.width = "15%";
871
    column2.className = "tablecells";
871
    //column2.className = "tablecells";
872
    column2.width = "10%";
872
    //column2.width = "10%";
873
    column3.className = "tablecells";
873
    //column3.className = "tablecells";
874
    column3.width = "70%";
874
    //column3.width = "70%";
875
    column4.className = "tablecells";
875
    //column4.className = "tablecells";
876
    
876
    
877
    var rowCheckbox = createRowCheckbox();
877
    //var rowCheckbox = createRowCheckbox();
878
    column0.appendChild(rowCheckbox);
878
    //column0.appendChild(rowCheckbox);
879
    
879
    
880
    column1.appendChild(createHiddenElement("",fileName));  <%// original file name%>
880
    //column1.appendChild(createHiddenElement("",fileName));  <%// original file name%>
881
    column1.appendChild(createHiddenElement("",hasError));  <%// mode%>
881
    //column1.appendChild(createHiddenElement("",hasError));  <%// mode%>
882
    column1.appendChild(createHiddenElement("",tModelKey)); <%// tModelKey%>
882
    //column1.appendChild(createHiddenElement("",tModelKey)); <%// tModelKey%>
883
    column1.appendChild(document.createTextNode(categoryName));
883
    column1.appendChild(document.createTextNode(categoryName));
884
    
884
    
885
    column2.appendChild(document.createTextNode(isChecked));
885
    //column2.appendChild(document.createTextNode(isChecked));
886
    
886
    
887
    if (hasError)
887
    //if (hasError)
888
    {
888
    //{
889
      column3.appendChild(createHiddenElement("<%=UDDIActionInputs.CATEGORY_TMODEL_KEY%>",tModelKey));
889
    //  column3.appendChild(createHiddenElement("<%=UDDIActionInputs.CATEGORY_TMODEL_KEY%>",tModelKey));
890
      var fileInput = document.createElement("input");
890
    //  var fileInput = document.createElement("input");
891
      fileInput.setAttribute("name","<%=UDDIActionInputs.CATEGORY_FILENAME%>");
891
    //  fileInput.setAttribute("name","<%=UDDIActionInputs.CATEGORY_FILENAME%>");
892
      fileInput.setAttribute("type","file");
892
    //  fileInput.setAttribute("type","file");
893
      fileInput.title = "<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("FORM_CONTROL_TITLE_CATEGORY_FILE"))%>";
893
    //  fileInput.title = "<%=HTMLUtils.JSMangle(uddiPerspective.getMessage("FORM_CONTROL_TITLE_CATEGORY_FILE"))%>";
894
      fileInput.className = "tablefilebrowse";
894
    //  fileInput.className = "tablefilebrowse";
895
      column3.appendChild(fileInput);
895
    //  column3.appendChild(fileInput);
896
      addDetailsUserDefinedCategoryRowCancelLink(tableContainerId,column4,table.rows.length);
896
    //  addDetailsUserDefinedCategoryRowCancelLink(tableContainerId,column4,table.rows.length);
897
    }
897
    //}
898
    else
898
    //else
899
    {
899
    //{
900
      column3.appendChild(document.createTextNode(fileName));
900
    //  column3.appendChild(document.createTextNode(fileName));
901
      addDetailsUserDefinedCategoryRowEditLink(tableContainerId,column4,table.rows.length);
901
    //  addDetailsUserDefinedCategoryRowEditLink(tableContainerId,column4,table.rows.length);
902
    }
902
    //}
903
    
903
    
904
    newRow.appendChild(column0);
904
    //newRow.appendChild(column0);
905
    newRow.appendChild(column1);
905
    newRow.appendChild(column1);
906
    newRow.appendChild(column2);
906
    //newRow.appendChild(column2);
907
    newRow.appendChild(column3);
907
    //newRow.appendChild(column3);
908
    newRow.appendChild(column4);
908
    //newRow.appendChild(column4);
909
    
909
    
910
    tableBody.appendChild(newRow);
910
    tableBody.appendChild(newRow);
911
  }
911
  }
(-)wsexplorer-properties/favorites.properties (+19 lines)
Lines 19-29 Link Here
19
FAVORITES_UDDI_BUSINESSES_FOLDER_NODE=Favorite UDDI Businesses
19
FAVORITES_UDDI_BUSINESSES_FOLDER_NODE=Favorite UDDI Businesses
20
FAVORITES_UDDI_SERVICE_INTERFACES_FOLDER_NODE=Favorite UDDI Service Interfaces
20
FAVORITES_UDDI_SERVICE_INTERFACES_FOLDER_NODE=Favorite UDDI Service Interfaces
21
FAVORITES_UDDI_REGISTRIES_FOLDER_NODE=Favorite UDDI Registries
21
FAVORITES_UDDI_REGISTRIES_FOLDER_NODE=Favorite UDDI Registries
22
FAVORITES_USER_DEF_UDDI_REGISTRIES_FOLDER_NODE=Favorite User Defined UDDI Registries
22
23
23
# Form
24
# Form
24
FORM_LABEL_FAVORITE_WSIL=Favorite WSILs
25
FORM_LABEL_FAVORITE_WSIL=Favorite WSILs
25
FORM_LABEL_FAVORITE_WSDL=Favorite WSDLs
26
FORM_LABEL_FAVORITE_WSDL=Favorite WSDLs
26
FORM_LABEL_FAVORITE_UDDI_REGISTRY=Favorite UDDI Registries
27
FORM_LABEL_FAVORITE_UDDI_REGISTRY=Favorite UDDI Registries
28
FORM_LABEL_FAVORITE_USER_DEF_UDDI_REGISTRY=Favorite User Defined UDDI Registries
27
FORM_LABEL_FAVORITE_UDDI_SERVICE=Favorite UDDI Services
29
FORM_LABEL_FAVORITE_UDDI_SERVICE=Favorite UDDI Services
28
FORM_LABEL_FAVORITE_UDDI_BUSINESS=Favorite UDDI Business Entities
30
FORM_LABEL_FAVORITE_UDDI_BUSINESS=Favorite UDDI Business Entities
29
FORM_LABEL_FAVORITE_UDDI_SERVICE_INTERFACE=Favorite UDDI Service Interfaces
31
FORM_LABEL_FAVORITE_UDDI_SERVICE_INTERFACE=Favorite UDDI Service Interfaces
Lines 33-41 Link Here
33
FORM_LABEL_IMPORT_TO_WSDL_PERSPECTIVE=Add To WSDL Page
35
FORM_LABEL_IMPORT_TO_WSDL_PERSPECTIVE=Add To WSDL Page
34
FORM_LABEL_URL=URL
36
FORM_LABEL_URL=URL
35
FORM_LABEL_ITEM_NUMBER=Item #
37
FORM_LABEL_ITEM_NUMBER=Item #
38
FORM_LABEL_UDDI_VERSION=UDDI Version
36
FORM_LABEL_NAME=Name
39
FORM_LABEL_NAME=Name
40
FORM_LABEL_DESC=Description
41
FORM_LABEL_DEFAULT_LOGIN=Default Login
42
FORM_LABEL_DEFAULT_PASSWORD=Default Password
37
FORM_LABEL_INQUIRY_URL=Inquiry URL
43
FORM_LABEL_INQUIRY_URL=Inquiry URL
38
FORM_LABEL_PUBLISH_URL=Publish URL
44
FORM_LABEL_PUBLISH_URL=Publish URL
45
FORM_LABEL_SECURE_INQUIRY_URL=Secure Inquiry URL
46
FORM_LABEL_SECURE_PUBLISH_URL=Secure Publish URL
47
FORM_LABEL_TAXONOMY=Taxonomy
48
FORM_LABEL_LANGUAGE=Language
39
FORM_LABEL_REGISTRY_NAME=Registry Name
49
FORM_LABEL_REGISTRY_NAME=Registry Name
40
FORM_LABEL_BUSINESS_NAME=Business Name
50
FORM_LABEL_BUSINESS_NAME=Business Name
41
FORM_LABEL_BUSINESS_KEY=Business Key
51
FORM_LABEL_BUSINESS_KEY=Business Key
Lines 67-72 Link Here
67
ALT_LIST_FAVORITE_UDDI_REGISTRY=List Favorite UDDI Registries
77
ALT_LIST_FAVORITE_UDDI_REGISTRY=List Favorite UDDI Registries
68
FORM_LABEL_LIST_FAVORITE_UDDI_REGISTRY_DESC=Select a set of favorite UDDI registries and press <strong>Add to UDDI Page</strong> to open them in the UDDI navigator. Press <strong>Remove</strong> to remove the selections.
78
FORM_LABEL_LIST_FAVORITE_UDDI_REGISTRY_DESC=Select a set of favorite UDDI registries and press <strong>Add to UDDI Page</strong> to open them in the UDDI navigator. Press <strong>Remove</strong> to remove the selections.
69
79
80
# ListFavoriteUserDefUDDIRegistryAction
81
ALT_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY=List Favorite User Defined UDDI Registries
82
FORM_LABEL_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY_DESC=Select a set of favorite UDDI registries and press <strong>Add to UDDI Page</strong> to open them in the UDDI navigator.
83
70
# ListFavoriteUDDIServiceInterfaceAction
84
# ListFavoriteUDDIServiceInterfaceAction
71
ALT_LIST_FAVORITE_UDDI_SERVICE_INTERFACE=List Favorite UDDI Service Interfaces
85
ALT_LIST_FAVORITE_UDDI_SERVICE_INTERFACE=List Favorite UDDI Service Interfaces
72
FORM_LABEL_LIST_FAVORITE_UDDI_SERVICE_INTERFACE_DESC=Select a set of favorite UDDI service interfaces and press <strong>Add to UDDI Page</strong> to open them in the UDDI navigator. Press <strong>Remove</strong> to remove the selections.
86
FORM_LABEL_LIST_FAVORITE_UDDI_SERVICE_INTERFACE_DESC=Select a set of favorite UDDI service interfaces and press <strong>Add to UDDI Page</strong> to open them in the UDDI navigator. Press <strong>Remove</strong> to remove the selections.
Lines 80-85 Link Here
80
# FavoritesUDDIRegistryDetailsAction
94
# FavoritesUDDIRegistryDetailsAction
81
ALT_FAVORITES_UDDI_REGISTRY_DETAILS=Favorite UDDI Registry Details
95
ALT_FAVORITES_UDDI_REGISTRY_DETAILS=Favorite UDDI Registry Details
82
96
97
# FavoritesUserDefUDDIRegistryDetailsAction
98
ALT_FAVORITES_USER_DEF_UDDI_REGISTRY_DETAILS=Favorite User Defined UDDI Registry Details
99
83
# FavoritesUDDIBusinessDetailsAction
100
# FavoritesUDDIBusinessDetailsAction
84
ALT_FAVORITES_UDDI_BUSINESS_DETAILS=Favorite UDDI Business Details
101
ALT_FAVORITES_UDDI_BUSINESS_DETAILS=Favorite UDDI Business Details
85
102
Lines 131-136 Link Here
131
# Form titles
148
# Form titles
132
FORM_TITLE_UDDI_BUSINESS_DETAILS=UDDI Business Details Form
149
FORM_TITLE_UDDI_BUSINESS_DETAILS=UDDI Business Details Form
133
FORM_TITLE_UDDI_REGISTRY_DETAILS=UDDI Registry Details Form
150
FORM_TITLE_UDDI_REGISTRY_DETAILS=UDDI Registry Details Form
151
FORM_TITLE_USER_DEF_UDDI_REGISTRY_DETAILS=User Defined UDDI Registry Details Form
134
FORM_TITLE_UDDI_SERVICE_DETAILS=UDDI Service Details Form
152
FORM_TITLE_UDDI_SERVICE_DETAILS=UDDI Service Details Form
135
FORM_TITLE_UDDI_SERVICE_INTERFACE_DETAILS=UDDI Service Interface Details Form
153
FORM_TITLE_UDDI_SERVICE_INTERFACE_DETAILS=UDDI Service Interface Details Form
136
FORM_TITLE_WSDL_DETAILS=WSDL Details Form
154
FORM_TITLE_WSDL_DETAILS=WSDL Details Form
Lines 139-144 Link Here
139
# View titles
157
# View titles
140
VIEW_TITLE_UDDI_BUSINESS_LIST=UDDI Businesses List View
158
VIEW_TITLE_UDDI_BUSINESS_LIST=UDDI Businesses List View
141
VIEW_TITLE_UDDI_REGISTRY_LIST=UDDI Registries List View
159
VIEW_TITLE_UDDI_REGISTRY_LIST=UDDI Registries List View
160
VIEW_TITLE_USER_DEF_UDDI_REGISTRY_LIST=User Defined UDDI Registries List View
142
VIEW_TITLE_UDDI_SERVICE_INTERFACE_LIST=UDDI Service Interfaces List View
161
VIEW_TITLE_UDDI_SERVICE_INTERFACE_LIST=UDDI Service Interfaces List View
143
VIEW_TITLE_UDDI_SERVICE_LIST=UDDI Services List View
162
VIEW_TITLE_UDDI_SERVICE_LIST=UDDI Services List View
144
VIEW_TITLE_WSDL_SERVICE_LIST=WSDL Services List View
163
VIEW_TITLE_WSDL_SERVICE_LIST=WSDL Services List View
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddToUDDIPerspectiveAction.java (-2 / +38 lines)
Lines 14-19 Link Here
14
import java.io.File;
14
import java.io.File;
15
import java.util.Enumeration;
15
import java.util.Enumeration;
16
import java.util.Hashtable;
16
import java.util.Hashtable;
17
import java.util.Iterator;
17
import java.util.Vector;
18
import java.util.Vector;
18
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs;
19
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs;
19
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement;
20
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement;
Lines 23-28 Link Here
23
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement;
24
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement;
24
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceFolderElement;
25
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceFolderElement;
25
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceInterfaceFolderElement;
26
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceInterfaceFolderElement;
27
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUserDefUDDIRegistryFolderElement;
26
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
28
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
27
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node;
29
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node;
28
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
30
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
Lines 34-39 Link Here
34
import org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.UDDIMainNode;
36
import org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.UDDIMainNode;
35
import org.eclipse.wst.ws.internal.explorer.platform.util.URLUtils;
37
import org.eclipse.wst.ws.internal.explorer.platform.util.URLUtils;
36
import org.eclipse.wst.ws.internal.explorer.platform.util.Validator;
38
import org.eclipse.wst.ws.internal.explorer.platform.util.Validator;
39
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
40
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
37
41
38
public abstract class AddToUDDIPerspectiveAction extends MultipleLinkAction {
42
public abstract class AddToUDDIPerspectiveAction extends MultipleLinkAction {
39
    public AddToUDDIPerspectiveAction(Controller controller) {
43
    public AddToUDDIPerspectiveAction(Controller controller) {
Lines 64-71 Link Here
64
        return "favorites/actions/FavoritesAddToUDDIPerspectiveActionJSP.jsp";
68
        return "favorites/actions/FavoritesAddToUDDIPerspectiveActionJSP.jsp";
65
    }
69
    }
66
70
67
    protected boolean createRegistryInUDDIPerspective(String inquiryAPI, String publishAPI, String registryName, String registrationURL,boolean useExisting) {
71
    protected boolean createRegistryInUDDIPerspective(String inquiryAPI, String publishAPI, String registryName, String registrationURL, boolean useExisting)
68
        Vector registryNodes = getRegistryNodesByInquiryURL(inquiryAPI);
72
    {
73
      return createRegistryInUDDIPerspective(inquiryAPI, publishAPI, registryName, registrationURL, null, null, null, useExisting);
74
    }
75
76
    protected boolean createRegistryInUDDIPerspective(String inquiryAPI, String publishAPI, String registryName, String registrationURL, String defaultLogin, String defaultPassword, Taxonomies taxonomies, boolean useExisting) {
77
      Vector registryNodes = getRegistryNodesByInquiryURL(inquiryAPI);
69
        if (registryNodes != null)
78
        if (registryNodes != null)
70
        {
79
        {
71
          if (useExisting)
80
          if (useExisting)
Lines 97-102 Link Here
97
106
98
        if (Validator.validateURL(registrationURL))
107
        if (Validator.validateURL(registrationURL))
99
            propertyTable.put(UDDIActionInputs.REGISTRATION_URL,registrationURL);
108
            propertyTable.put(UDDIActionInputs.REGISTRATION_URL,registrationURL);
109
110
        if (defaultLogin != null)
111
          propertyTable.put(UDDIActionInputs.UDDI_USERNAME, defaultLogin);
112
113
        if (defaultPassword != null)
114
          propertyTable.put(UDDIActionInputs.UDDI_PASSWORD, defaultPassword);
100
            
115
            
101
        // If user-defined category metadata exists, search and make the associations.
116
        // If user-defined category metadata exists, search and make the associations.
102
        StringBuffer directoryBuffer = new StringBuffer();
117
        StringBuffer directoryBuffer = new StringBuffer();
Lines 114-119 Link Here
114
        if (!openRegAction.run())
129
        if (!openRegAction.run())
115
            return false;
130
            return false;
116
        
131
        
132
        if (taxonomies != null)
133
        {
134
          Hashtable taxonomyTable = new Hashtable();
135
          for (Iterator it = taxonomies.getTaxonomy().iterator(); it.hasNext();)
136
          {
137
            Taxonomy taxonomy = (Taxonomy)it.next();
138
            String name = taxonomy.getName();
139
            CategoryModel catModel = new CategoryModel();
140
            catModel.setDisplayName(name);
141
            catModel.setCategoryKey(name);
142
            // TODO: Use real TModel key instead of the name
143
            catModel.setTModelKey(name);
144
            catModel.loadFromTaxonomy(taxonomy);
145
            taxonomyTable.put(name, catModel);
146
          }
147
          RegistryElement regElement = (RegistryElement)(controller_.getUDDIPerspective().getNavigatorManager().getSelectedNode().getTreeElement());
148
          regElement.setUserDefinedCategories(taxonomyTable);
149
        }
150
        
117
        if (categoryFiles != null && categoryFiles.length > 0)
151
        if (categoryFiles != null && categoryFiles.length > 0)
118
        {
152
        {
119
          RegistryElement regElement = (RegistryElement)(controller_.getUDDIPerspective().getNavigatorManager().getSelectedNode().getTreeElement());
153
          RegistryElement regElement = (RegistryElement)(controller_.getUDDIPerspective().getNavigatorManager().getSelectedNode().getTreeElement());
Lines 203-208 Link Here
203
        // favorites folder element being selected.
237
        // favorites folder element being selected.
204
        if (favoritesFolderElement instanceof FavoritesUDDIRegistryFolderElement)
238
        if (favoritesFolderElement instanceof FavoritesUDDIRegistryFolderElement)
205
            return new AddRegistryToUDDIPerspectiveAction(controller);
239
            return new AddRegistryToUDDIPerspectiveAction(controller);
240
        else if (favoritesFolderElement instanceof FavoritesUserDefUDDIRegistryFolderElement)
241
            return new AddUserDefRegistryToUDDIPerspectiveAction(controller);
206
        else if (favoritesFolderElement instanceof FavoritesUDDIBusinessFolderElement)
242
        else if (favoritesFolderElement instanceof FavoritesUDDIBusinessFolderElement)
207
            return new AddBusinessToUDDIPerspectiveAction(controller);
243
            return new AddBusinessToUDDIPerspectiveAction(controller);
208
        else if (favoritesFolderElement instanceof FavoritesUDDIServiceFolderElement)
244
        else if (favoritesFolderElement instanceof FavoritesUDDIServiceFolderElement)
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/constants/FavoritesModelConstants.java (+2 lines)
Lines 19-30 Link Here
19
    public final static String REL_UDDI_BUSINESS_FOLDER_NODE = "relUDDIBusinessFolderNode";
19
    public final static String REL_UDDI_BUSINESS_FOLDER_NODE = "relUDDIBusinessFolderNode";
20
    public final static String REL_UDDI_SERVICE_INTERFACE_FOLDER_NODE = "relUDDIServiceInterfaceFolderNode";
20
    public final static String REL_UDDI_SERVICE_INTERFACE_FOLDER_NODE = "relUDDIServiceInterfaceFolderNode";
21
    public final static String REL_UDDI_REGISTRY_FOLDER_NODE = "relUDDIRegistryFolerNode";
21
    public final static String REL_UDDI_REGISTRY_FOLDER_NODE = "relUDDIRegistryFolerNode";
22
    public final static String REL_USER_DEF_UDDI_REGISTRY_FOLDER_NODE = "relUserDefUDDIRegistryFolderNode";
22
    public final static String REL_WSIL_NODE = "relWSILNode";
23
    public final static String REL_WSIL_NODE = "relWSILNode";
23
    public final static String REL_WSDL_SERVICE_NODE = "relWSDLServiceNode";
24
    public final static String REL_WSDL_SERVICE_NODE = "relWSDLServiceNode";
24
    public final static String REL_UDDI_SERVICE_NODE = "relUDDIServiceNode";
25
    public final static String REL_UDDI_SERVICE_NODE = "relUDDIServiceNode";
25
    public final static String REL_UDDI_BUSINESS_NODE = "relUDDIBusinessNode";
26
    public final static String REL_UDDI_BUSINESS_NODE = "relUDDIBusinessNode";
26
    public final static String REL_UDDI_SERVICE_INTERFACE_NODE = "relUDDIServiceInterfaceNode";
27
    public final static String REL_UDDI_SERVICE_INTERFACE_NODE = "relUDDIServiceInterfaceNode";
27
    public final static String REL_UDDI_REGISTRY_NODE = "relUDDIRegistryNode";
28
    public final static String REL_UDDI_REGISTRY_NODE = "relUDDIRegistryNode";
29
    public final static String REL_USER_DEF_UDDI_REGISTRY_NODE = "relUserDefUDDIRegistryNode";
28
30
29
    // Properties
31
    // Properties
30
    public final static String PROP_PLUGIN_METADATA_DIRECTORY = "pluginMetadataDirectory";
32
    public final static String PROP_PLUGIN_METADATA_DIRECTORY = "pluginMetadataDirectory";
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesMainNode.java (+9 lines)
Lines 19-24 Link Here
19
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement;
19
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement;
20
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceFolderElement;
20
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceFolderElement;
21
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceInterfaceFolderElement;
21
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceInterfaceFolderElement;
22
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUserDefUDDIRegistryFolderElement;
22
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSDLServiceFolderElement;
23
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSDLServiceFolderElement;
23
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSILFolderElement;
24
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSILFolderElement;
24
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
25
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
Lines 36-41 Link Here
36
        favUDDIRegistryFolderNode.setVisibilityOfChildren(false);
37
        favUDDIRegistryFolderNode.setVisibilityOfChildren(false);
37
        favUDDIRegistryFolderElement.init((FavoritesMainElement)treeElement);
38
        favUDDIRegistryFolderElement.init((FavoritesMainElement)treeElement);
38
39
40
        // Create User defined UDDI Registry Folder Node
41
        FavoritesUserDefUDDIRegistryFolderElement favUserDefUDDIFolderElement = new FavoritesUserDefUDDIRegistryFolderElement(getMessage("FAVORITES_USER_DEF_UDDI_REGISTRIES_FOLDER_NODE"), treeElement.getModel(), nodeManager);
42
        treeElement.connect(favUserDefUDDIFolderElement, FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_FOLDER_NODE, ModelConstants.REL_OWNER);
43
        FavoritesUserDefUDDIRegistryFolderNode favUserDefUDDIFolderNode = new FavoritesUserDefUDDIRegistryFolderNode(favUserDefUDDIFolderElement, nodeManager, nodeDepth_ + 1);
44
        addChild(favUserDefUDDIFolderNode);
45
        favUserDefUDDIFolderNode.setVisibilityOfChildren(false);
46
        favUserDefUDDIFolderElement.init((FavoritesMainElement)treeElement);
47
39
        // Create UDDI Business Folder Node
48
        // Create UDDI Business Folder Node
40
        FavoritesUDDIBusinessFolderElement favUDDIBusinessFolderElement = new FavoritesUDDIBusinessFolderElement(getMessage("FAVORITES_UDDI_BUSINESSES_FOLDER_NODE"), treeElement.getModel(), nodeManager);
49
        FavoritesUDDIBusinessFolderElement favUDDIBusinessFolderElement = new FavoritesUDDIBusinessFolderElement(getMessage("FAVORITES_UDDI_BUSINESSES_FOLDER_NODE"), treeElement.getModel(), nodeManager);
41
        treeElement.connect(favUDDIBusinessFolderElement, FavoritesModelConstants.REL_UDDI_BUSINESS_FOLDER_NODE, ModelConstants.REL_OWNER);
50
        treeElement.connect(favUDDIBusinessFolderElement, FavoritesModelConstants.REL_UDDI_BUSINESS_FOLDER_NODE, ModelConstants.REL_OWNER);
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/CategoryModel.java (+28 lines)
Lines 23-28 Link Here
23
import java.text.ParseException;
23
import java.text.ParseException;
24
import java.util.Enumeration;
24
import java.util.Enumeration;
25
import java.util.Hashtable;
25
import java.util.Hashtable;
26
import java.util.Iterator;
26
import java.util.Properties;
27
import java.util.Properties;
27
import java.util.Vector;
28
import java.util.Vector;
28
import javax.servlet.ServletContext;
29
import javax.servlet.ServletContext;
Lines 31-36 Link Here
31
import org.eclipse.wst.ws.internal.explorer.platform.constants.ModelConstants;
32
import org.eclipse.wst.ws.internal.explorer.platform.constants.ModelConstants;
32
import org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.UDDIModelConstants;
33
import org.eclipse.wst.ws.internal.explorer.platform.uddi.constants.UDDIModelConstants;
33
import org.eclipse.wst.ws.internal.explorer.platform.util.HTMLUtils;
34
import org.eclipse.wst.ws.internal.explorer.platform.util.HTMLUtils;
35
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category;
36
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
34
import org.uddi4j.util.KeyedReference;
37
import org.uddi4j.util.KeyedReference;
35
38
36
public class CategoryModel extends BasicModel
39
public class CategoryModel extends BasicModel
Lines 166-171 Link Here
166
    return string.startsWith("\"") && string.endsWith("\"");
169
    return string.startsWith("\"") && string.endsWith("\"");
167
  }
170
  }
168
171
172
  public final void loadFromTaxonomy(Taxonomy taxonomy)
173
  {
174
    String name = taxonomy.getName();
175
    CategoryElement root = new CategoryElement(name,null,this);
176
    setRootElement(root);
177
    categoryElements_ = new Hashtable();
178
    for (Iterator it = taxonomy.getCategory().iterator(); it.hasNext();)
179
    {
180
      addCategory(root, (Category)it.next());
181
    }
182
  }
183
184
  private void addCategory(CategoryElement parent, Category category)
185
  {
186
    String keyName = category.getName();
187
    String keyValue = category.getCode();
188
    CategoryElement child = new CategoryElement(keyName,new KeyedReference(keyName,keyValue,tModelKey_),this);
189
    parent.connect(child,UDDIModelConstants.REL_SUBCATEGORIES,ModelConstants.REL_OWNER);
190
    categoryElements_.put(keyValue, child);   
191
    for (Iterator it = category.getCategory().iterator(); it.hasNext();)
192
    {
193
      addCategory(child, (Category)it.next());
194
    }
195
  }
196
169
  public final byte loadFromDefaultDataFile()
197
  public final byte loadFromDefaultDataFile()
170
  {
198
  {
171
    try
199
    try
(-)wsexplorer/favorites/forms/FavoritesUserDefUDDIRegistryDetailsPage.jsp (+313 lines)
Added Link Here
1
<%
2
/*******************************************************************************
3
 * Copyright (c) 2005 IBM Corporation and others.
4
 * All rights reserved. This program and the accompanying materials
5
 * are made available under the terms of the Eclipse Public License v1.0
6
 * which accompanies this distribution, and is available at
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
9
 * Contributors:
10
 *     IBM Corporation - initial API and implementation
11
 *******************************************************************************/
12
%>
13
<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.perspective.*,
14
                                                        org.eclipse.wst.ws.internal.explorer.platform.constants.*,
15
                                                        org.eclipse.wst.ws.internal.explorer.platform.datamodel.*,
16
                                                        org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.*,
17
                                                        org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective,
18
                                                        org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.*,
19
                                                        org.eclipse.wst.ws.internal.explorer.platform.util.*,
20
                                                        org.apache.wsil.extension.uddi.*,
21
                                                        java.io.*,
22
                                                        java.util.*,
23
                                                        org.eclipse.wst.ws.internal.model.v10.registry.Name,
24
                                                        org.eclipse.wst.ws.internal.model.v10.registry.Description,
25
                                                        org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies,
26
                                                        org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" %>
27
28
<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
29
<%
30
        FavoritesPerspective favPerspective = controller.getFavoritesPerspective();
31
        NodeManager nodeManager = favPerspective.getNodeManager();
32
        Node selectedNode = nodeManager.getSelectedNode();
33
        ToolManager currentToolManager = selectedNode.getCurrentToolManager();
34
        TreeElement selectedElement = selectedNode.getTreeElement();
35
%>
36
<html>
37
<head>
38
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
39
    <title><%=favPerspective.getMessage("FORM_TITLE_USER_DEF_UDDI_REGISTRY_DETAILS")%></title>
40
    <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>">
41
</head>
42
<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin">
43
<div id="contentborder">
44
45
    <%
46
    String titleImagePath = "images/details_highlighted.gif";
47
    String title = favPerspective.getMessage("ALT_FAVORITES_USER_DEF_UDDI_REGISTRY_DETAILS");
48
    %>
49
    <%@ include file = "/forms/formheader.inc" %>
50
    <%
51
    if (selectedElement instanceof FavoritesUserDefUDDIRegistryElement) {
52
        FavoritesUserDefUDDIRegistryElement regElement = (FavoritesUserDefUDDIRegistryElement)selectedElement;
53
    %>
54
55
        <%
56
        String version = regElement.getVersion();
57
        if (version != null)
58
        {
59
        %>
60
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
61
            <tr>
62
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
63
                    <%=favPerspective.getMessage("FORM_LABEL_UDDI_VERSION")%>
64
                </th>
65
            </tr>
66
            <tr>
67
                <td class="tablecells">
68
                    <%=version%>
69
                </td>
70
            </tr>
71
        </table>
72
        <%
73
        }
74
        %>
75
76
        <%
77
        List names = regElement.getNames();
78
        if (names != null && !names.isEmpty())
79
        {
80
        %>
81
        <br>
82
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
83
            <tr>
84
                <th class="singleheadercolor" height=20 valign="bottom" align="left" width="1" nowrap>
85
                    <%=favPerspective.getMessage("FORM_LABEL_LANGUAGE")%>
86
                </th>
87
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
88
                    <%=favPerspective.getMessage("FORM_LABEL_REGISTRY_NAME")%>
89
                </th>
90
            </tr>
91
            <%
92
            for (Iterator it = names.iterator(); it.hasNext();)
93
            {
94
              Name name = (Name)it.next();
95
              String lang = name.getLang();
96
              %>
97
              <tr>
98
                <td class="tablecells"><%=lang != null ? lang : "--"%></td>
99
                <td class="tablecells"><%=name.getValue()%></td>
100
              </tr>
101
              <%
102
            }
103
            %>
104
        </table>
105
        <%
106
        }
107
        %>
108
109
        <%
110
        List descs = regElement.getDescs();
111
        if (descs != null && !descs.isEmpty())
112
        {
113
        %>
114
        <br>
115
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
116
            <tr>
117
                <th class="singleheadercolor" height=20 valign="bottom" align="left" width="1" nowrap>
118
                    <%=favPerspective.getMessage("FORM_LABEL_LANGUAGE")%>
119
                </th>
120
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
121
                    <%=favPerspective.getMessage("FORM_LABEL_DESC")%>
122
                </th>
123
            </tr>
124
            <%
125
            for (Iterator it = descs.iterator(); it.hasNext();)
126
            {
127
              Description desc = (Description)it.next();
128
              String lang = desc.getLang();
129
              %>
130
              <tr>
131
                <td class="tablecells"><%=lang != null ? lang : "--"%></td>
132
                <td class="tablecells"><%=desc.getValue()%></td>
133
              </tr>
134
              <%
135
            }
136
            %>
137
        </table>
138
        <%
139
        }
140
        %>
141
142
        <%
143
        String defaultLogin = regElement.getDefaultLogin();
144
        if (defaultLogin != null)
145
        {
146
        %>
147
        <br>
148
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
149
            <tr>
150
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
151
                    <%=favPerspective.getMessage("FORM_LABEL_DEFAULT_LOGIN")%>
152
                </th>
153
            </tr>
154
            <tr>
155
                <td class="tablecells">
156
                    <%=defaultLogin%>
157
                </td>
158
            </tr>
159
        </table>
160
        <%
161
        }
162
        %>
163
164
        <%
165
        String defaultPassword = regElement.getDefaultPassword();
166
        if (defaultPassword != null)
167
        {
168
        %>
169
        <br>
170
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
171
            <tr>
172
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
173
                    <%=favPerspective.getMessage("FORM_LABEL_DEFAULT_PASSWORD")%>
174
                </th>
175
            </tr>
176
            <tr>
177
                <td class="tablecells">
178
                    <%=defaultPassword%>
179
                </td>
180
            </tr>
181
        </table>
182
        <%
183
        }
184
        %>
185
186
        <%
187
        String inquiryURL = regElement.getInquiryURL();
188
        if (inquiryURL != null)
189
        {
190
        %>
191
        <br>
192
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
193
            <tr>
194
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
195
                    <%=favPerspective.getMessage("FORM_LABEL_INQUIRY_URL")%>
196
                </th>
197
            </tr>
198
            <tr>
199
                <td class="tablecells">
200
                    <%=inquiryURL%>
201
                </td>
202
            </tr>
203
        </table>
204
        <%
205
        }
206
        %>
207
208
     <%
209
     String publishURL = regElement.getPublishURL();
210
     if (Validator.validateURL(publishURL))
211
     {
212
     %>
213
        <br>
214
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
215
            <tr>
216
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
217
                    <%=favPerspective.getMessage("FORM_LABEL_PUBLISH_URL")%>
218
                </th>
219
            </tr>
220
            <tr>
221
                <td class="tablecells">
222
                    <%=publishURL%>
223
                </td>
224
            </tr>
225
        </table>
226
     <%
227
     }
228
229
     String secureInquiryURL = regElement.getSecureInquiryURL();
230
     if (Validator.validateURL(secureInquiryURL))
231
     {
232
     %>
233
        <br>
234
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
235
            <tr>
236
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
237
                    <%=favPerspective.getMessage("FORM_LABEL_SECURE_INQUIRY_URL")%>
238
                </th>
239
            </tr>
240
            <tr>
241
                <td class="tablecells">
242
                    <%=secureInquiryURL%>
243
                </td>
244
            </tr>
245
        </table>
246
     <%
247
     }
248
249
     String securePublishURL = regElement.getSecurePublishURL();
250
     if (Validator.validateURL(securePublishURL))
251
     {
252
     %>
253
        <br>
254
        <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
255
            <tr>
256
                <th class="singleheadercolor" height=20 valign="bottom" align="left">
257
                    <%=favPerspective.getMessage("FORM_LABEL_SECURE_PUBLISH_URL")%>
258
                </th>
259
            </tr>
260
            <tr>
261
                <td class="tablecells">
262
                    <%=securePublishURL%>
263
                </td>
264
            </tr>
265
        </table>
266
     <%
267
     }
268
     %>
269
     
270
     <%
271
     Taxonomies taxonomies = regElement.getTaxonomies();
272
     if (taxonomies != null)
273
     {
274
       List t = taxonomies.getTaxonomy();
275
       if (t != null && !t.isEmpty())
276
       {
277
       %>
278
         <br>
279
         <table width="95%" border=0 cellpadding=3 cellspacing=0 class="tableborder">
280
           <tr>
281
             <th class="singleheadercolor" height=20 valign="bottom" align="left">
282
               <%=favPerspective.getMessage("FORM_LABEL_TAXONOMY")%>
283
             </th>
284
           </tr>
285
           <%
286
           for (Iterator it = t.iterator(); it.hasNext();)
287
           {
288
             Taxonomy taxonomy = (Taxonomy)it.next();
289
           %>
290
           <tr>
291
             <td class="tablecells"><%=taxonomy.getName()%></td>
292
           </tr>
293
           <%
294
           }
295
           %>
296
         </table>
297
         <%
298
       }
299
     }
300
     %>
301
302
<jsp:useBean id="currentToolManagerHash" class="java.util.Hashtable" scope="request">
303
<%
304
  currentToolManagerHash.put(ActionInputs.CURRENT_TOOL_MANAGER,currentToolManager);
305
%>
306
</jsp:useBean>
307
<jsp:include page="/forms/otherActions.jsp" flush="true"/>
308
<%      
309
    }
310
%>
311
</div>
312
</body>
313
</html>
(-)wsexplorer/favorites/views/ListFavoriteUserDefUDDIRegistryView.jsp (+123 lines)
Added Link Here
1
<%
2
/*******************************************************************************
3
 * Copyright (c) 2001, 2004 IBM Corporation and others.
4
 * All rights reserved. This program and the accompanying materials
5
 * are made available under the terms of the Eclipse Public License v1.0
6
 * which accompanies this distribution, and is available at
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
9
 * Contributors:
10
 *     IBM Corporation - initial API and implementation
11
 *******************************************************************************/
12
%>
13
<%@ page contentType="text/html; charset=UTF-8" import="java.util.Enumeration,
14
                                                                                          java.util.Vector,
15
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.util.QuickSort,
16
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.perspective.*,
17
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.constants.*,
18
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.datamodel.*,
19
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.*,
20
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective,
21
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.*,
22
                                                                                          org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.*" %>
23
24
<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
25
<%
26
    String divFavoriteUDDIRegistryTable = "divFavoriteUDDIRegistryTable";
27
    String xdivFavoriteUDDIRegistryTable = "xdivFavoriteUDDIRegistryTable";
28
29
    FavoritesPerspective favoritesPerspective = controller.getFavoritesPerspective();
30
    NodeManager nodeManager = favoritesPerspective.getNodeManager();
31
    Node selectedNode = nodeManager.getSelectedNode();
32
    TreeElement selectedElement = selectedNode.getTreeElement();
33
%>
34
<html>
35
<head>
36
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
37
    <title><%=favoritesPerspective.getMessage("VIEW_TITLE_USER_DEF_UDDI_REGISTRY_LIST")%></title>
38
    <link rel="stylesheet" type="text/css" href="<%=response.encodeURL(controller.getPathWithContext("css/windows.css"))%>">
39
    <jsp:include page="/favorites/scripts/favoritesFormSubmit.jsp" flush="true"/>
40
    <jsp:include page="/favorites/scripts/favoritesTable.jsp" flush="true"/>
41
</head>
42
<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>" class="contentbodymargin">
43
<div id="contentborder">
44
    <%
45
    String titleImagePath = "favorites/images/list_registry_highlighted.gif";
46
    String title = favoritesPerspective.getMessage("ALT_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY");
47
    %>
48
    <%@ include file = "/forms/formheader.inc" %>
49
    <table>
50
      <tr>
51
        <td class="labels">
52
          <%=favoritesPerspective.getMessage("FORM_LABEL_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY_DESC")%>
53
        </td>
54
      </tr>
55
    </table>    
56
    <form action="<%=response.encodeURL(controller.getPathWithContext(RemoveFavoritesAction.getBaseActionLink()))%>" method="post" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>" style="margin-top:10px;">
57
    <%
58
    if (selectedElement instanceof FavoritesUserDefUDDIRegistryFolderElement) {
59
    %>
60
        <input type="hidden" name="<%=FavoritesActionInputs.MULTIPLE_LINK_ACTION%>" value="1">
61
        <table width="95%" border=0 cellpadding=6 cellspacing=0>
62
            <tr>
63
                <td height=20 valign="bottom" align="left" nowrap width=11>
64
                    <a href="javascript:twist('<%=divFavoriteUDDIRegistryTable%>','<%=xdivFavoriteUDDIRegistryTable%>')"><img name="<%=xdivFavoriteUDDIRegistryTable%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a>
65
                </td>
66
                <td height=20 valign="bottom" align="left" nowrap class="labels">
67
                    <strong><%=favoritesPerspective.getMessage("FORM_LABEL_FAVORITE_USER_DEF_UDDI_REGISTRY")%></strong>
68
                </td>
69
            </tr>
70
        </table>
71
72
        <table width="95%" border=0 cellpadding=0 cellspacing=0>
73
            <tr>
74
                <td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td>
75
            </tr>
76
        </table>
77
78
        <div id="<%=divFavoriteUDDIRegistryTable%>">
79
        <table width="95%" cellpadding=3 cellspacing=0 class="tableborder">
80
            <tr>
81
                <th class="checkboxcells" width=10><input type="checkbox" onClick="favHandleCheckAllClick('<%=divFavoriteUDDIRegistryTable%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th>
82
                <th class="headercolor"><%=favoritesPerspective.getMessage("FORM_LABEL_NAME")%></th>
83
            </tr>
84
            <%
85
                Enumeration e = ((FavoritesUserDefUDDIRegistryFolderElement)selectedElement).getAllFavorites();
86
                Vector sortedVector = new Vector();
87
                while (e.hasMoreElements()) {
88
                	sortedVector.add(e.nextElement());
89
             	  }
90
                QuickSort.sort(sortedVector);
91
                e = sortedVector.elements();
92
                while (e.hasMoreElements()) {
93
                    FavoritesUserDefUDDIRegistryElement favUDDIRegistryElement = (FavoritesUserDefUDDIRegistryElement)e.nextElement();
94
                    %>
95
                    <tr>
96
                        <td class="checkboxcells" width=10><input type="checkbox"  name="<%=FavoritesActionInputs.MASS_ACTION_NODE_ID%>" value="<%=selectedNode.getChildNode(favUDDIRegistryElement).getNodeId()%>" onClick="validateCheckBoxInput(this, this.checked)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX")%>"></td>
97
                        <td class="tablecells" nowrap><a href="<%=response.encodeURL(controller.getPathWithContext(SelectFavoritesNodeAction.getActionLink(selectedNode.getChildNode(favUDDIRegistryElement).getNodeId(), false)))%>" target="<%=FrameNames.PERSPECTIVE_WORKAREA%>"><%=favUDDIRegistryElement.getName()%></a></td>
98
                    </tr>
99
                    <%
100
                }
101
            %>
102
        </table>
103
        </div>
104
        <script language="javascript">
105
            twistInit('<%=divFavoriteUDDIRegistryTable%>','<%=xdivFavoriteUDDIRegistryTable%>');
106
        </script>
107
108
        <table border=0 cellpadding=2 cellspacing=0>
109
            <tr>
110
                <td height=40 valign="bottom" nowrap>
111
                    <input type="button" value="<%=favoritesPerspective.getMessage("FORM_LABEL_IMPORT_TO_UDDI_PERSPECTIVE")%>" onClick="setFormLocationAndSubmit('<%=divFavoriteUDDIRegistryTable%>', this.form, '<%=response.encodeURL(controller.getPathWithContext(AddToUDDIPerspectiveAction.getBaseActionLink()))%>')" class="button">
112
                </td>
113
                <td nowrap width="90%">&nbsp;</td>
114
            </tr>
115
        </table>
116
117
    <%
118
    }
119
%>
120
    </form>
121
</div>
122
</body>
123
</html>
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddUserDefRegistryToUDDIPerspectiveAction.java (+49 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.actions;
13
14
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs;
15
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement;
16
import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUserDefUDDIRegistryElement;
17
import org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective;
18
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller;
19
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node;
20
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
21
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
22
23
public class AddUserDefRegistryToUDDIPerspectiveAction extends AddToUDDIPerspectiveAction
24
{
25
  public AddUserDefRegistryToUDDIPerspectiveAction(Controller controller)
26
  {
27
    super(controller);
28
  }
29
30
  protected boolean executeSingleLinkAction()
31
  {
32
    int nodeID = Integer.parseInt((String)propertyTable_.get(ActionInputs.NODEID));
33
    FavoritesPerspective favPerspective = controller_.getFavoritesPerspective();
34
    NodeManager nodeManager = favPerspective.getNodeManager();
35
    Node selectedNode = nodeManager.getNode(nodeID);
36
    TreeElement selectedElement = selectedNode.getTreeElement();
37
    FavoritesUserDefUDDIRegistryElement regElement = (FavoritesUserDefUDDIRegistryElement)selectedElement;
38
    String registryName = regElement.getName();
39
    String inquiryAPI = regElement.getInquiryURL();
40
    String publishAPI = regElement.getPublishURL();
41
    String defaultLogin = regElement.getDefaultLogin();
42
    String defaultPassword = regElement.getDefaultPassword();
43
    Taxonomies taxonomies = regElement.getTaxonomies();
44
    if (!createRegistryInUDDIPerspective(inquiryAPI, publishAPI, registryName, null, defaultLogin, defaultPassword, taxonomies, false))
45
      return false;
46
    favPerspective.getMessageQueue().addMessage(favPerspective.getMessage("MSG_INFO_ADD_TO_UDDI_PERSPECTIVE_SUCCESSFUL", registryName));
47
    return true;
48
  }
49
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUserDefUDDIRegistryElement.java (+140 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel;
13
14
import java.util.List;
15
import org.eclipse.wst.ws.internal.datamodel.Model;
16
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
17
18
public class FavoritesUserDefUDDIRegistryElement extends FavoritesElement
19
{
20
  private List names;
21
  private List descs;
22
  private String version;
23
  private String defaultLogin;
24
  private String defaultPassword;
25
  private String inquiryURL;
26
  private String publishURL;
27
  private String secureInquiryURL;
28
  private String securePublishURL;
29
  private Taxonomies taxonomies;
30
31
  public String getDefaultLogin()
32
  {
33
    return defaultLogin;
34
  }
35
36
  public void setDefaultLogin(String defaultLogin)
37
  {
38
    this.defaultLogin = defaultLogin;
39
  }
40
41
  public String getDefaultPassword()
42
  {
43
    return defaultPassword;
44
  }
45
46
  public void setDefaultPassword(String defaultPassword)
47
  {
48
    this.defaultPassword = defaultPassword;
49
  }
50
51
  public Taxonomies getTaxonomies()
52
  {
53
    return taxonomies;
54
  }
55
56
  public void setTaxonomies(Taxonomies taxonomies)
57
  {
58
    this.taxonomies = taxonomies;
59
  }
60
61
  public FavoritesUserDefUDDIRegistryElement(String name, Model model)
62
  {
63
    super(name, model);
64
  }
65
66
  public List getDescs()
67
  {
68
    return descs;
69
  }
70
71
  public void setDescs(List descs)
72
  {
73
    this.descs = descs;
74
  }
75
76
  public String getInquiryURL()
77
  {
78
    return inquiryURL;
79
  }
80
81
  public void setInquiryURL(String inquiryURL)
82
  {
83
    this.inquiryURL = inquiryURL;
84
  }
85
86
  public List getNames()
87
  {
88
    return names;
89
  }
90
91
  public void setNames(List names)
92
  {
93
    this.names = names;
94
  }
95
96
  public String getPublishURL()
97
  {
98
    return publishURL;
99
  }
100
101
  public void setPublishURL(String publishURL)
102
  {
103
    this.publishURL = publishURL;
104
  }
105
106
  public String getSecureInquiryURL()
107
  {
108
    return secureInquiryURL;
109
  }
110
111
  public void setSecureInquiryURL(String secureInquiryURL)
112
  {
113
    this.secureInquiryURL = secureInquiryURL;
114
  }
115
116
  public String getSecurePublishURL()
117
  {
118
    return securePublishURL;
119
  }
120
121
  public void setSecurePublishURL(String securePublishURL)
122
  {
123
    this.securePublishURL = securePublishURL;
124
  }
125
126
  public String getVersion()
127
  {
128
    return version;
129
  }
130
131
  public void setVersion(String version)
132
  {
133
    this.version = version;
134
  }
135
136
  public String toString()
137
  {
138
    return getName();
139
  }
140
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUserDefUDDIRegistryFolderElement.java (+102 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel;
12
13
import java.util.Enumeration;
14
import java.util.Hashtable;
15
import java.util.List;
16
import org.eclipse.core.runtime.CoreException;
17
import org.eclipse.wst.ws.internal.datamodel.Model;
18
import org.eclipse.wst.ws.internal.explorer.platform.constants.ModelConstants;
19
import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants;
20
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
21
import org.eclipse.wst.ws.internal.model.v10.registry.Name;
22
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
23
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
24
import org.eclipse.wst.ws.internal.registry.IRegistryManager;
25
import org.eclipse.wst.ws.internal.registry.RegistryService;
26
27
/**
28
 * The data model element that represents a WSIL document
29
 */
30
public class FavoritesUserDefUDDIRegistryFolderElement extends FavoritesFolderElement
31
{
32
  public FavoritesUserDefUDDIRegistryFolderElement(String name, Model model, NodeManager nodeManager)
33
  {
34
    super(name, model, nodeManager);
35
  }
36
37
  public void init(FavoritesMainElement favMainElement)
38
  {
39
    RegistryService regService = RegistryService.instance();
40
    IRegistryManager regManager = regService.getDefaultRegistryManager();
41
    try
42
    {
43
      String[] regURIs = regManager.getRegistryURIs();
44
      for (int i = 0; i < regURIs.length; i++)
45
      {
46
        Registry reg = regManager.loadRegistry(regURIs[i]);
47
        if (reg instanceof UDDIRegistry)
48
        {
49
          UDDIRegistry uddiReg = (UDDIRegistry)reg;
50
          List names = uddiReg.getName();
51
          String displayName = names != null && !names.isEmpty() ? ((Name)names.get(0)).getValue() : "";
52
          FavoritesUserDefUDDIRegistryElement favUserDefUDDIRegElement = new FavoritesUserDefUDDIRegistryElement(displayName, getModel());
53
          favUserDefUDDIRegElement.setNames(names);
54
          favUserDefUDDIRegElement.setDescs(uddiReg.getDescription());
55
          favUserDefUDDIRegElement.setVersion(uddiReg.getVersion());
56
          favUserDefUDDIRegElement.setDefaultLogin(uddiReg.getDefaultLogin());
57
          favUserDefUDDIRegElement.setDefaultPassword(uddiReg.getDefaultPassword());
58
          favUserDefUDDIRegElement.setInquiryURL(uddiReg.getDiscoveryURL());
59
          favUserDefUDDIRegElement.setPublishURL(uddiReg.getPublicationURL());
60
          favUserDefUDDIRegElement.setSecureInquiryURL(uddiReg.getSecuredDiscoveryURL());
61
          favUserDefUDDIRegElement.setSecurePublishURL(uddiReg.getSecuredPublicationURL());
62
          favUserDefUDDIRegElement.setTaxonomies(uddiReg.getTaxonomies());
63
          connect(favUserDefUDDIRegElement, FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE, ModelConstants.REL_OWNER);
64
        }
65
      }
66
    }
67
    catch (CoreException ce)
68
    {
69
      // TODO: Better error reporting
70
      ce.printStackTrace();
71
    }
72
  }
73
74
  public boolean addFavorite(Hashtable table)
75
  {
76
    // do nothing
77
    return true;
78
  }
79
80
  public boolean favoriteExists(Hashtable table)
81
  {
82
    // do nothing
83
    return true;
84
  }
85
86
  public boolean removeFavoriteByNodeID(int nodeID, String pluginMetadataDirectory)
87
  {
88
    // do nothing
89
    return true;
90
  }
91
92
  public boolean removeAllFavorites(String pluginMetadataDirectory)
93
  {
94
    // do nothing
95
    return true;
96
  }
97
98
  public Enumeration getAllFavorites()
99
  {
100
    return getElements(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE);
101
  }
102
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryDetailsTool.java (+36 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective;
13
14
import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction;
15
import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool;
16
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node;
17
import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager;
18
19
public class FavoritesUserDefUDDIRegistryDetailsTool extends FormTool
20
{
21
  public FavoritesUserDefUDDIRegistryDetailsTool(ToolManager toolManager, String alt)
22
  {
23
    super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt);
24
  }
25
26
  public String getSelectToolActionHref(boolean forHistory)
27
  {
28
    Node selectedNode = toolManager_.getNode();
29
    return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory);
30
  }
31
32
  public final String getFormLink()
33
  {
34
    return "favorites/forms/FavoritesUserDefUDDIRegistryDetailsPage.jsp";
35
  }
36
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryFolderNode.java (+61 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective;
13
14
import org.eclipse.wst.ws.internal.datamodel.ElementAdapter;
15
import org.eclipse.wst.ws.internal.datamodel.RelAddEvent;
16
import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent;
17
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement;
18
import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants;
19
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
20
21
public class FavoritesUserDefUDDIRegistryFolderNode extends FavoritesNavigatorFolderNode
22
{
23
  public FavoritesUserDefUDDIRegistryFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth)
24
  {
25
    super(treeElement, nodeManager, nodeDepth);
26
    treeElement.addListener(new ElementAdapter()
27
    {
28
      public void relAdded(RelAddEvent event)
29
      {
30
        String rel = event.getOutBoundRelName();
31
        if (rel.equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE))
32
        {
33
          TreeElement regElement = (TreeElement)event.getParentElement();
34
          String imagePath = "favorites/images/uddi_registry_node.gif";
35
          FavoritesUserDefUDDIRegistryNode favUserDefUDDIRegistryNode = new FavoritesUserDefUDDIRegistryNode(regElement, nodeManager_, nodeDepth_ + 1, imagePath);
36
          addChild(favUserDefUDDIRegistryNode);
37
        }
38
      }
39
40
      public void relRemoved(RelRemoveEvent event)
41
      {
42
        TreeElement childElement = null;
43
        if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE))
44
        {
45
          childElement = (TreeElement)event.getInboundElement();
46
        }
47
        if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE))
48
        {
49
          childElement = (TreeElement)event.getOutBoundElement();
50
        }
51
        removeChildNode(childElement);
52
      }
53
    });
54
  }
55
56
  protected void initTools()
57
  {
58
    FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective();
59
    new ListFavoriteUserDefUDDIRegistryTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY"));
60
  }
61
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryNode.java (+30 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective;
13
14
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement;
15
import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager;
16
17
public class FavoritesUserDefUDDIRegistryNode extends FavoritesNavigatorNode
18
{
19
  public FavoritesUserDefUDDIRegistryNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth, String imagePath)
20
  {
21
    super(treeElement, nodeManager, nodeDepth, imagePath);
22
  }
23
24
  protected void initTools()
25
  {
26
    FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective();
27
    new FavoritesUserDefUDDIRegistryDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_USER_DEF_UDDI_REGISTRY_DETAILS"));
28
    new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE"));
29
  }
30
}
(-)wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUserDefUDDIRegistryTool.java (+36 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective;
13
14
import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction;
15
import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool;
16
import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node;
17
import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager;
18
19
public class ListFavoriteUserDefUDDIRegistryTool extends FormTool
20
{
21
  public ListFavoriteUserDefUDDIRegistryTool(ToolManager toolManager, String alt)
22
  {
23
    super(toolManager, "favorites/images/list_registry_enabled.gif", "favorites/images/list_registry_highlighted.gif", alt);
24
  }
25
26
  public String getSelectToolActionHref(boolean forHistory)
27
  {
28
    Node selectedNode = toolManager_.getNode();
29
    return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory);
30
  }
31
32
  public String getFormLink()
33
  {
34
    return "favorites/views/ListFavoriteUserDefUDDIRegistryView.jsp";
35
  }
36
}

Return to bug 118087