diff options
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective')
41 files changed, 0 insertions, 1695 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddToUDDIPerspectiveTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddToUDDIPerspectiveTool.java deleted file mode 100644 index 98a1797fb..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddToUDDIPerspectiveTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.AddToUDDIPerspectiveAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ActionTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class AddToUDDIPerspectiveTool extends ActionTool { - - public AddToUDDIPerspectiveTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/add_to_uddi_perspective_enabled.gif", "favorites/images/add_to_uddi_perspective_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return AddToUDDIPerspectiveAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId()); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddWSILToWSILPerspectiveTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddWSILToWSILPerspectiveTool.java deleted file mode 100644 index 424812d69..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddWSILToWSILPerspectiveTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.AddWSILToWSILPerspectiveAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ActionTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class AddWSILToWSILPerspectiveTool extends ActionTool { - - public AddWSILToWSILPerspectiveTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/add_to_wsil_perspective_enabled.gif", "favorites/images/add_to_wsil_perspective_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return AddWSILToWSILPerspectiveAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId()); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesAddToWSDLPerspectiveTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesAddToWSDLPerspectiveTool.java deleted file mode 100644 index e100faa04..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesAddToWSDLPerspectiveTool.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.FavoritesAddToWSDLPerspectiveAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.AddToWSDLPerspectiveTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesAddToWSDLPerspectiveTool extends AddToWSDLPerspectiveTool { - - public FavoritesAddToWSDLPerspectiveTool(ToolManager toolManager, String alt) { - super(toolManager,alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return FavoritesAddToWSDLPerspectiveAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId()); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToFileSystemTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToFileSystemTool.java deleted file mode 100644 index a7110c533..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToFileSystemTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.actions.ImportToFileSystemAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ImportToFileSystemTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesImportToFileSystemTool extends ImportToFileSystemTool { - - public FavoritesImportToFileSystemTool(ToolManager toolManager, String alt) { - super(toolManager, alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return ImportToFileSystemAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(),"favorites/actions/FavoritesImportToFileSystemActionJSP.jsp"); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToWorkbenchTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToWorkbenchTool.java deleted file mode 100644 index 8cac8f0ed..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToWorkbenchTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ImportToWorkbenchTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesImportToWorkbenchTool extends ImportToWorkbenchTool { - - public FavoritesImportToWorkbenchTool(ToolManager toolManager, String alt) { - super(toolManager, alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesImportToWorkbenchForm.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesLaunchWebServiceWizardTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesLaunchWebServiceWizardTool.java deleted file mode 100644 index e19b359ff..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesLaunchWebServiceWizardTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.LaunchWebServiceWizardTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesLaunchWebServiceWizardTool extends LaunchWebServiceWizardTool { - - public FavoritesLaunchWebServiceWizardTool(ToolManager toolManager, String alt) { - super(toolManager, alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesLaunchWebServiceWizardForm.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesMainNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesMainNode.java deleted file mode 100644 index b560106a3..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesMainNode.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.constants.ModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesMainElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIBusinessFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIServiceInterfaceFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUserDefUDDIRegistryFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSDLServiceFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesWSILFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesMainNode extends FavoritesNavigatorNode { - public FavoritesMainNode(TreeElement treeElement, NodeManager nodeManager) { - super(treeElement, nodeManager, 1, "images/root_main.gif"); - - // Create UDDI Registry Folder Node - FavoritesUDDIRegistryFolderElement favUDDIRegistryFolderElement = new FavoritesUDDIRegistryFolderElement(getMessage("FAVORITES_UDDI_REGISTRIES_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favUDDIRegistryFolderElement, FavoritesModelConstants.REL_UDDI_REGISTRY_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesUDDIRegistryFolderNode favUDDIRegistryFolderNode = new FavoritesUDDIRegistryFolderNode(favUDDIRegistryFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favUDDIRegistryFolderNode); - favUDDIRegistryFolderNode.setVisibilityOfChildren(false); - favUDDIRegistryFolderElement.init((FavoritesMainElement)treeElement); - - // Create User defined UDDI Registry Folder Node - FavoritesUserDefUDDIRegistryFolderElement favUserDefUDDIFolderElement = new FavoritesUserDefUDDIRegistryFolderElement(getMessage("FAVORITES_USER_DEF_UDDI_REGISTRIES_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favUserDefUDDIFolderElement, FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesUserDefUDDIRegistryFolderNode favUserDefUDDIFolderNode = new FavoritesUserDefUDDIRegistryFolderNode(favUserDefUDDIFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favUserDefUDDIFolderNode); - favUserDefUDDIFolderNode.setVisibilityOfChildren(false); - favUserDefUDDIFolderElement.init((FavoritesMainElement)treeElement); - - // Create UDDI Business Folder Node - FavoritesUDDIBusinessFolderElement favUDDIBusinessFolderElement = new FavoritesUDDIBusinessFolderElement(getMessage("FAVORITES_UDDI_BUSINESSES_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favUDDIBusinessFolderElement, FavoritesModelConstants.REL_UDDI_BUSINESS_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesUDDIBusinessFolderNode favUDDIBusinessFolderNode = new FavoritesUDDIBusinessFolderNode(favUDDIBusinessFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favUDDIBusinessFolderNode); - favUDDIBusinessFolderNode.setVisibilityOfChildren(false); - favUDDIBusinessFolderElement.init((FavoritesMainElement)treeElement); - - // Create UDDI Service Folder Node - FavoritesUDDIServiceFolderElement favUDDIServiceFolderElement = new FavoritesUDDIServiceFolderElement(getMessage("FAVORITES_UDDI_SERVICE_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favUDDIServiceFolderElement, FavoritesModelConstants.REL_UDDI_SERVICE_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesUDDIServiceFolderNode favUDDIServiceFolderNode = new FavoritesUDDIServiceFolderNode(favUDDIServiceFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favUDDIServiceFolderNode); - favUDDIServiceFolderNode.setVisibilityOfChildren(false); - favUDDIServiceFolderElement.init((FavoritesMainElement)treeElement); - - // Create UDDI Service Interface Folder Node - FavoritesUDDIServiceInterfaceFolderElement favUDDIServiceInterfaceFolderElement = new FavoritesUDDIServiceInterfaceFolderElement(getMessage("FAVORITES_UDDI_SERVICE_INTERFACES_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favUDDIServiceInterfaceFolderElement, FavoritesModelConstants.REL_UDDI_SERVICE_INTERFACE_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesUDDIServiceInterfaceFolderNode favUDDIServiceInterfaceFolderNode = new FavoritesUDDIServiceInterfaceFolderNode(favUDDIServiceInterfaceFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favUDDIServiceInterfaceFolderNode); - favUDDIServiceInterfaceFolderNode.setVisibilityOfChildren(false); - favUDDIServiceInterfaceFolderElement.init((FavoritesMainElement)treeElement); - - // Create WSIL Folder Node - FavoritesWSILFolderElement favWSILFolderElement = new FavoritesWSILFolderElement(getMessage("FAVORITES_WSIL_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favWSILFolderElement, FavoritesModelConstants.REL_WSIL_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesWSILFolderNode favWSILFolderNode = new FavoritesWSILFolderNode(favWSILFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favWSILFolderNode); - favWSILFolderNode.setVisibilityOfChildren(false); - favWSILFolderElement.init((FavoritesMainElement)treeElement); - - // Create WSDL Service Folder Node - FavoritesWSDLServiceFolderElement favWSDLServiceFolderElement = new FavoritesWSDLServiceFolderElement(getMessage("FAVORITES_WSDL_SERVICE_FOLDER_NODE"), treeElement.getModel(), nodeManager); - treeElement.connect(favWSDLServiceFolderElement, FavoritesModelConstants.REL_WSDL_SERVICE_FOLDER_NODE, ModelConstants.REL_OWNER); - FavoritesWSDLServiceFolderNode favWSDLServiceFolderNode = new FavoritesWSDLServiceFolderNode(favWSDLServiceFolderElement, nodeManager, nodeDepth_ + 1); - addChild(favWSDLServiceFolderNode); - favWSDLServiceFolderNode.setVisibilityOfChildren(false); - favWSDLServiceFolderElement.init((FavoritesMainElement)treeElement); - - } - - protected void initTools() { - } - - private String getMessage(String msg) { - Controller controller = nodeManager_.getController(); - FavoritesPerspective favPerspective = controller.getFavoritesPerspective(); - return favPerspective.getMessage(msg); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorFolderNode.java deleted file mode 100644 index 035d0ac1b..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorFolderNode.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.FavoritesToggleNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FolderNode; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public abstract class FavoritesNavigatorFolderNode extends FolderNode { - - public FavoritesNavigatorFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - } - - protected String getToggleNodeActionHref() { - return FavoritesToggleNodeAction.getActionLink(nodeId_,isOpen_); - } - - protected String getLinkActionHref() { - return SelectFavoritesNodeAction.getActionLink(nodeId_, false); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorNode.java deleted file mode 100644 index 3b87d664c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorNode.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.FavoritesToggleNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public abstract class FavoritesNavigatorNode extends Node { - - public FavoritesNavigatorNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth, String imagePath) { - super(treeElement, nodeManager, nodeDepth, imagePath); - } - - protected String getToggleNodeActionHref() { - return FavoritesToggleNodeAction.getActionLink(nodeId_,isOpen_); - } - - protected String getLinkActionHref() { - return SelectFavoritesNodeAction.getActionLink(nodeId_, false); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesPerspective.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesPerspective.java deleted file mode 100644 index de498f999..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesPerspective.java +++ /dev/null @@ -1,161 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import javax.servlet.ServletContext; -import org.eclipse.wst.ws.internal.datamodel.BasicModel; -import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SwitchPerspectiveFromFavoritesAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesMainElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Perspective; -import org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils; - -public class FavoritesPerspective extends Perspective -{ - private BasicModel model_; - private NodeManager nodeManager_; - private String perspectiveContentFramesetCols_; - private String savedPerspectiveContentFramesetCols_; - private String actionsContainerFramesetRows_; - private String savedActionsContainerFramesetRows_; - - public FavoritesPerspective(Controller controller) - { - super("favorites",controller); - } - - public final void initPerspective(ServletContext application) - { - model_ = new BasicModel("FavoritesModel"); - FavoritesMainElement favoritesMainElement = new FavoritesMainElement(getMessage("FAVORITES_MAIN_NODE"), model_, controller_); - model_.setRootElement(favoritesMainElement); - nodeManager_ = new NodeManager(controller_); - FavoritesMainNode favMainNode = new FavoritesMainNode(favoritesMainElement, nodeManager_); - nodeManager_.setRootNode(favMainNode); - - // Starting frameset sizes. - if (!DirUtils.isRTL()) - perspectiveContentFramesetCols_ = "30%,*"; - else - perspectiveContentFramesetCols_ = "*,30%"; - savedPerspectiveContentFramesetCols_ = perspectiveContentFramesetCols_; - actionsContainerFramesetRows_ = "75%,*"; - savedActionsContainerFramesetRows_ = actionsContainerFramesetRows_; - } - - public NodeManager getNodeManager() { - return nodeManager_; - } - - public String getPerspectiveContentPage() - { - return "favorites/fav_perspective_content.jsp"; - } - - public int getPerspectiveId() - { - return ActionInputs.PERSPECTIVE_FAVORITES; - } - - public String getPanesFile() { - return "favorites/scripts/favoritesPanes.jsp"; - } - - public String getProcessFramesetsForm() - { - return "favorites/forms/ProcessFavoritesFramesetsForm.jsp"; - } - - public String getFramesetsFile() - { - return "favorites/scripts/favoritesframesets.jsp"; - } - - public String getTreeContentVar() { - return "favNavigatorContent"; - } - - public String getTreeContentPage() { - return "favorites/fav_navigator_content.jsp"; - } - - public String getPropertiesContainerVar() { - return "favPropertiesContainer"; - } - - public String getPropertiesContainerPage() { - return "favorites/fav_properties_container.jsp"; - } - - public String getStatusContentVar() { - return "favStatusContent"; - } - - public String getStatusContentPage() { - return "favorites/fav_status_content.jsp"; - } - - public String getPropertiesContentVar() { - return "favPropertiesContent"; - } - - public String getPropertiesContentPage() { - return "favorites/fav_properties_content.jsp"; - } - - public final String getPerspectiveContentFramesetCols() - { - return perspectiveContentFramesetCols_; - } - - public final void setPerspectiveContentFramesetCols(String cols) - { - perspectiveContentFramesetCols_ = cols; - } - - public final String getSavedPerspectiveContentFramesetCols() - { - return savedPerspectiveContentFramesetCols_; - } - - public final void setSavedPerspectiveContentFramesetCols(String cols) - { - savedPerspectiveContentFramesetCols_ = cols; - } - - public final String getActionsContainerFramesetRows() - { - return actionsContainerFramesetRows_; - } - - public final void setActionsContainerFramesetRows(String rows) - { - actionsContainerFramesetRows_ = rows; - } - - public final String getSavedActionsContainerFramesetRows() - { - return savedActionsContainerFramesetRows_; - } - - public final void setSavedActionsContainerFramesetRows(String rows) - { - savedActionsContainerFramesetRows_ = rows; - } - - public final String getSwitchPerspectiveFormActionLink(int targetPerspectiveId,boolean forHistory) - { - return SwitchPerspectiveFromFavoritesAction.getFormActionLink(targetPerspectiveId,forHistory); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesRestoreDefaultFavoritesTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesRestoreDefaultFavoritesTool.java deleted file mode 100644 index 026c6cbac..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesRestoreDefaultFavoritesTool.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.FavoritesRestoreDefaultFavoritesAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ActionTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesRestoreDefaultFavoritesTool extends ActionTool { - public FavoritesRestoreDefaultFavoritesTool(ToolManager toolManager, String alt) { - super(toolManager, "images/refresh_enabled.gif", "images/refresh_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return FavoritesRestoreDefaultFavoritesAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId()); - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesSetDefaultViewTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesSetDefaultViewTool.java deleted file mode 100644 index 6cec4f7ff..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesSetDefaultViewTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.SetDefaultViewTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesSetDefaultViewTool extends SetDefaultViewTool { - public FavoritesSetDefaultViewTool(ToolManager toolManager, String alt) { - super(toolManager, alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), selectedNode.getToolManager().getSelectedToolId(), ActionInputs.VIEWID_DEFAULT, ActionInputs.VIEWTOOLID_DEFAULT, forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), selectedNode.getToolManager().getSelectedToolId(), ActionInputs.VIEWID_DEFAULT, ActionInputs.VIEWTOOLID_DEFAULT, false); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessDetailsTool.java deleted file mode 100644 index f76153612..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesUDDIBusinessDetailsTool extends FormTool { - - public FavoritesUDDIBusinessDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesUDDIBusinessDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessFolderNode.java deleted file mode 100644 index 2622fcee7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessFolderNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIBusinessFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesUDDIBusinessFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_UDDI_BUSINESS_NODE)) { - FavoritesUDDIBusinessNode favoritesUDDIBusinessNode = new FavoritesUDDIBusinessNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(favoritesUDDIBusinessNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_UDDI_BUSINESS_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_UDDI_BUSINESS_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteUDDIBusinessTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_UDDI_BUSINESS")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessNode.java deleted file mode 100644 index 7cc8a2b17..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessNode.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIBusinessNode extends FavoritesNavigatorNode { - public FavoritesUDDIBusinessNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth, "favorites/images/uddi_business_node.gif"); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesUDDIBusinessDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_UDDI_BUSINESS_DETAILS")); - new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryDetailsTool.java deleted file mode 100644 index b3f6cd6a4..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesUDDIRegistryDetailsTool extends FormTool { - - public FavoritesUDDIRegistryDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesUDDIRegistryDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryFolderNode.java deleted file mode 100644 index a460a11ea..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryFolderNode.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import java.io.File; -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.datamodel.FavoritesUDDIRegistryFolderElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIRegistryFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesUDDIRegistryFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_UDDI_REGISTRY_NODE)) { - TreeElement regElement = (TreeElement)event.getParentElement(); - String imagePath; - StringBuffer categoriesDirectory = new StringBuffer(); - FavoritesUDDIRegistryFolderElement.formCategoriesDirectory(categoriesDirectory,nodeManager_.getController().getServletEngineStateLocation(),regElement.getName()); - File categoryDirectoryFile = new File(categoriesDirectory.toString()); - String[] categoryFiles = categoryDirectoryFile.list(); - if (categoryFiles != null && categoryFiles.length > 0) - imagePath = "favorites/images/uddi_registry_cat_node.gif"; - else - imagePath = "favorites/images/uddi_registry_node.gif"; - FavoritesUDDIRegistryNode favoritesUDDIRegistryNode = new FavoritesUDDIRegistryNode(regElement, nodeManager_, nodeDepth_ + 1, imagePath); - addChild(favoritesUDDIRegistryNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_UDDI_REGISTRY_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_UDDI_REGISTRY_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteUDDIRegistryTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_UDDI_REGISTRY")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryNode.java deleted file mode 100644 index a8f281314..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryNode.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIRegistryNode extends FavoritesNavigatorNode { - public FavoritesUDDIRegistryNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth,String imagePath) { - super(treeElement, nodeManager, nodeDepth, imagePath); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesUDDIRegistryDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_UDDI_REGISTRY_DETAILS")); - new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceDetailsTool.java deleted file mode 100644 index 324f4e000..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesUDDIServiceDetailsTool extends FormTool { - - public FavoritesUDDIServiceDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesUDDIServiceDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceFolderNode.java deleted file mode 100644 index 3314d2669..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceFolderNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIServiceFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesUDDIServiceFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_UDDI_SERVICE_NODE)) { - FavoritesUDDIServiceNode favoritesUDDIServiceNode = new FavoritesUDDIServiceNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(favoritesUDDIServiceNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_UDDI_SERVICE_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_UDDI_SERVICE_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteUDDIServiceTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_UDDI_SERVICE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceDetailsTool.java deleted file mode 100644 index cb92e7b2c..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesUDDIServiceInterfaceDetailsTool extends FormTool { - - public FavoritesUDDIServiceInterfaceDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesUDDIServiceIntDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceFolderNode.java deleted file mode 100644 index 83f667229..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceFolderNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIServiceInterfaceFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesUDDIServiceInterfaceFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_UDDI_SERVICE_INTERFACE_NODE)) { - FavoritesUDDIServiceInterfaceNode favoritesUDDIServiceInterfaceNode = new FavoritesUDDIServiceInterfaceNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(favoritesUDDIServiceInterfaceNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_UDDI_SERVICE_INTERFACE_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_UDDI_SERVICE_INTERFACE_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteUDDIServiceInterfaceTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_UDDI_SERVICE_INTERFACE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceNode.java deleted file mode 100644 index 0286ccc1b..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceNode.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIServiceInterfaceNode extends FavoritesNavigatorNode { - public FavoritesUDDIServiceInterfaceNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth, "favorites/images/uddi_service_interface_node.gif"); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesUDDIServiceInterfaceDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_UDDI_SERVICE_INTERFACE_DETAILS")); - new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceNode.java deleted file mode 100644 index 4eab77cf7..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceNode.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUDDIServiceNode extends FavoritesNavigatorNode { - public FavoritesUDDIServiceNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth, "favorites/images/uddi_service_node.gif"); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesUDDIServiceDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_UDDI_SERVICE_DETAILS")); - new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryDetailsTool.java deleted file mode 100644 index d495724b3..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryDetailsTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesUserDefUDDIRegistryDetailsTool extends FormTool -{ - public FavoritesUserDefUDDIRegistryDetailsTool(ToolManager toolManager, String alt) - { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) - { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesUserDefUDDIRegistryDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryFolderNode.java deleted file mode 100644 index 72fc0ec23..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryFolderNode.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesUserDefUDDIRegistryNodeAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUserDefUDDIRegistryFolderNode extends FavoritesNavigatorFolderNode -{ - public FavoritesUserDefUDDIRegistryFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) - { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() - { - public void relAdded(RelAddEvent event) - { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE)) - { - TreeElement regElement = (TreeElement)event.getParentElement(); - String imagePath = "favorites/images/uddi_registry_node.gif"; - FavoritesUserDefUDDIRegistryNode favUserDefUDDIRegistryNode = new FavoritesUserDefUDDIRegistryNode(regElement, nodeManager_, nodeDepth_ + 1, imagePath); - addChild(favUserDefUDDIRegistryNode); - } - } - - public void relRemoved(RelRemoveEvent event) - { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE)) - { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_USER_DEF_UDDI_REGISTRY_NODE)) - { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() - { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteUserDefUDDIRegistryTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_USER_DEF_UDDI_REGISTRY")); - } - - protected String getLinkActionHref() { - return SelectFavoritesUserDefUDDIRegistryNodeAction.getActionLink(nodeId_, false); - } - - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryNode.java deleted file mode 100644 index 1261756a9..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryNode.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesUserDefUDDIRegistryNode extends FavoritesNavigatorNode -{ - public FavoritesUserDefUDDIRegistryNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth, String imagePath) - { - super(treeElement, nodeManager, nodeDepth, imagePath); - } - - protected void initTools() - { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesUserDefUDDIRegistryDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_USER_DEF_UDDI_REGISTRY_DETAILS")); - new AddToUDDIPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_TO_UDDI_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLDetailsTool.java deleted file mode 100644 index 9d0e52edc..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesWSDLDetailsTool extends FormTool { - - public FavoritesWSDLDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesWSDLDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceFolderNode.java deleted file mode 100644 index 62f48db74..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceFolderNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesWSDLServiceFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesWSDLServiceFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_WSDL_SERVICE_NODE)) { - FavoritesWSDLServiceNode favoritesWSDLServiceNode = new FavoritesWSDLServiceNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(favoritesWSDLServiceNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_WSDL_SERVICE_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_WSDL_SERVICE_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteWSDLServiceTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_WSDL_SERVICE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceNode.java deleted file mode 100644 index 2c416a6fd..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceNode.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesWSDLServiceNode extends FavoritesNavigatorNode { - public FavoritesWSDLServiceNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth, "favorites/images/wsdl_service_node.gif"); - } - - protected void initTools() { - Controller controller = nodeManager_.getController(); - FavoritesPerspective favPerspective = controller.getFavoritesPerspective(); - new FavoritesWSDLDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_WSDL_DETAILS")); - new FavoritesImportToWorkbenchTool(toolManager_, controller.getMessage("ALT_IMPORT_WSDL_TO_WORKBENCH")); - new FavoritesImportToFileSystemTool(toolManager_, controller.getMessage("ALT_WSDL_IMPORT_TO_FS")); - new FavoritesLaunchWebServiceWizardTool(toolManager_, controller.getMessage("ALT_LAUNCH_WEB_SERVICE_WIZARD")); - new FavoritesAddToWSDLPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_WSDL_TO_WSDL_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILDetailsTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILDetailsTool.java deleted file mode 100644 index a702b81c5..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILDetailsTool.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class FavoritesWSILDetailsTool extends FormTool { - - public FavoritesWSILDetailsTool(ToolManager toolManager, String alt) { - super(toolManager, "images/details_enabled.gif", "images/details_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public final String getFormLink() - { - return "favorites/forms/FavoritesWSILDetailsPage.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILFolderNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILFolderNode.java deleted file mode 100644 index 1df461b0e..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILFolderNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.datamodel.ElementAdapter; -import org.eclipse.wst.ws.internal.datamodel.RelAddEvent; -import org.eclipse.wst.ws.internal.datamodel.RelRemoveEvent; -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.constants.FavoritesModelConstants; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesWSILFolderNode extends FavoritesNavigatorFolderNode { - public FavoritesWSILFolderNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth); - treeElement.addListener(new ElementAdapter() { - public void relAdded(RelAddEvent event) { - String rel = event.getOutBoundRelName(); - if (rel.equals(FavoritesModelConstants.REL_WSIL_NODE)) { - FavoritesWSILNode favoritesWSILNode = new FavoritesWSILNode((TreeElement)event.getParentElement(), nodeManager_, nodeDepth_ + 1); - addChild(favoritesWSILNode); - } - } - - public void relRemoved(RelRemoveEvent event) { - TreeElement childElement = null; - if (event.getInBoundRelName().equals(FavoritesModelConstants.REL_WSIL_NODE)) { - childElement = (TreeElement)event.getInboundElement(); - } - if (event.getOutBoundRelName().equals(FavoritesModelConstants.REL_WSIL_NODE)) { - childElement = (TreeElement)event.getOutBoundElement(); - } - removeChildNode(childElement); - } - }); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new ListFavoriteWSILTool(toolManager_, favPerspective.getMessage("ALT_LIST_FAVORITE_WSIL")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILNode.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILNode.java deleted file mode 100644 index a9f2d19ad..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILNode.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.datamodel.TreeElement; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.NodeManager; - -public class FavoritesWSILNode extends FavoritesNavigatorNode { - public FavoritesWSILNode(TreeElement treeElement, NodeManager nodeManager, int nodeDepth) { - super(treeElement, nodeManager, nodeDepth, "favorites/images/wsil_node.gif"); - } - - protected void initTools() { - FavoritesPerspective favPerspective = nodeManager_.getController().getFavoritesPerspective(); - new FavoritesWSILDetailsTool(toolManager_, favPerspective.getMessage("ALT_FAVORITES_WSIL_DETAILS")); - new AddWSILToWSILPerspectiveTool(toolManager_, favPerspective.getMessage("ALT_ADD_WSIL_TO_WSIL_PERSPECTIVE")); - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIBusinessTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIBusinessTool.java deleted file mode 100644 index ec1a8ffdd..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIBusinessTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteUDDIBusinessTool extends FormTool { - public ListFavoriteUDDIBusinessTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_business_enabled.gif", "favorites/images/list_business_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteUDDIBusinessView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIRegistryTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIRegistryTool.java deleted file mode 100644 index 70cd15290..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIRegistryTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteUDDIRegistryTool extends FormTool { - public ListFavoriteUDDIRegistryTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_registry_enabled.gif", "favorites/images/list_registry_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteUDDIRegistryView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceInterfaceTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceInterfaceTool.java deleted file mode 100644 index 8aaf24f5d..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceInterfaceTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteUDDIServiceInterfaceTool extends FormTool { - public ListFavoriteUDDIServiceInterfaceTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_service_interface_enabled.gif", "favorites/images/list_service_interface_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteUDDIServiceInterfaceView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceTool.java deleted file mode 100644 index 4f49c0d5b..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteUDDIServiceTool extends FormTool { - public ListFavoriteUDDIServiceTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_service_enabled.gif", "favorites/images/list_service_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteUDDIServiceView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUserDefUDDIRegistryTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUserDefUDDIRegistryTool.java deleted file mode 100644 index dab8c9563..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUserDefUDDIRegistryTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteUserDefUDDIRegistryTool extends FormTool -{ - public ListFavoriteUserDefUDDIRegistryTool(ToolManager toolManager, String alt) - { - super(toolManager, "favorites/images/list_registry_enabled.gif", "favorites/images/list_registry_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) - { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() - { - return "favorites/views/ListFavoriteUserDefUDDIRegistryView.jsp"; - } -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSDLServiceTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSDLServiceTool.java deleted file mode 100644 index 3bf208154..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSDLServiceTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteWSDLServiceTool extends FormTool { - public ListFavoriteWSDLServiceTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_wsdl_enabled.gif", "favorites/images/list_wsdl_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteWSDLServiceView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSILTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSILTool.java deleted file mode 100644 index 478325bca..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSILTool.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.FormTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class ListFavoriteWSILTool extends FormTool { - public ListFavoriteWSILTool(ToolManager toolManager, String alt) { - super(toolManager, "favorites/images/list_WSIL_enabled.gif", "favorites/images/list_WSIL_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getFormLink() { - return "favorites/views/ListFavoriteWSILView.jsp"; - } - -} diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/RemoveFavoritesTool.java b/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/RemoveFavoritesTool.java deleted file mode 100644 index e7672fa6a..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/RemoveFavoritesTool.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective; - -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.RemoveFavoritesAction; -import org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.SelectFavoritesToolAction; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ActionTool; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.Node; -import org.eclipse.wst.ws.internal.explorer.platform.perspective.ToolManager; - -public class RemoveFavoritesTool extends ActionTool { - - public RemoveFavoritesTool(ToolManager toolManager, String alt) { - super(toolManager, "images/clear_enabled.gif", "images/clear_highlighted.gif", alt); - } - - public String getSelectToolActionHref(boolean forHistory) { - Node selectedNode = toolManager_.getNode(); - return SelectFavoritesToolAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId(), forHistory); - } - - public String getActionLink() { - Node selectedNode = toolManager_.getNode(); - return RemoveFavoritesAction.getActionLink(selectedNode.getNodeId(), toolId_, selectedNode.getViewId(), selectedNode.getViewToolId()); - } - -} |