Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-03-18 17:12:48 -0500
committerJean Michel-Lemieux2004-03-18 17:12:48 -0500
commitb4c5ebd9b743808b80477a2b45285bb6f45c1aae (patch)
tree669e38309ceedc092cce87c056fe66a584ebb308 /examples
parent7f7df3d9f3793450ea7f176b6c4716762886438b (diff)
downloadeclipse.platform.team-b4c5ebd9b743808b80477a2b45285bb6f45c1aae.tar.gz
eclipse.platform.team-b4c5ebd9b743808b80477a2b45285bb6f45c1aae.tar.xz
eclipse.platform.team-b4c5ebd9b743808b80477a2b45285bb6f45c1aae.zip
Removed Deployment support from team core.
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/DeployAction.java48
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/FileSystemDeploymentProvider.java55
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/NullAction.java42
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/UnDeployAction.java54
4 files changed, 0 insertions, 199 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/DeployAction.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/DeployAction.java
deleted file mode 100644
index 7fc9c2790..000000000
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/DeployAction.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.team.examples.filesystem.deployment;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.team.core.*;
-import org.eclipse.team.internal.ui.actions.TeamAction;
-import org.eclipse.ui.IActionDelegate;
-
-public class DeployAction extends TeamAction implements IActionDelegate {
-
- public void run(IAction action) {
- IContainer container = (IContainer)getSelectedResources()[0];
- IDeploymentProviderManager manager = Team.getDeploymentManager();
- FileSystemDeploymentProvider provider = new FileSystemDeploymentProvider();
- try {
- manager.map(container, provider);
- } catch (TeamException e) {
- ErrorDialog.openError(getShell(), "Error", "Mapping", e.getStatus());
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.internal.ui.actions.TeamAction#isEnabled()
- */
- protected boolean isEnabled() throws TeamException {
- IResource[] resources = getSelectedResources();
- if(resources.length == 1) {
- IResource resource = resources[0];
- IDeploymentProviderManager manager = Team.getDeploymentManager();
- if(manager.getMappedTo(resource, FileSystemDeploymentProvider.ID)) {
- return false;
- }
- }
- return true;
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/FileSystemDeploymentProvider.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/FileSystemDeploymentProvider.java
deleted file mode 100644
index 19848f476..000000000
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/FileSystemDeploymentProvider.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.team.examples.filesystem.deployment;
-
-import org.eclipse.team.core.DeploymentProvider;
-import org.eclipse.team.internal.core.IMemento;
-
-public class FileSystemDeploymentProvider extends DeploymentProvider {
-
- public final static String ID = "org.eclipse.team.examples.filesystem.FileSystemDeploymentProvider";
-
- public String getID() {
- return ID;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.core.DeploymentProvider#init()
- */
- public void init() {
- // TODO Auto-generated method stub
- System.out.println("Initialized " + getName());
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.core.DeploymentProvider#dispose()
- */
- public void dispose() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.core.DeploymentProvider#saveState(org.eclipse.team.core.IMemento)
- */
- public void saveState(IMemento memento) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.core.DeploymentProvider#restoreState(org.eclipse.team.core.IMemento)
- */
- public void restoreState(IMemento memento) {
- // TODO Auto-generated method stub
-
- }
-}
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/NullAction.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/NullAction.java
deleted file mode 100644
index 9216d190a..000000000
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/NullAction.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.team.examples.filesystem.deployment;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.team.core.IDeploymentProviderManager;
-import org.eclipse.team.core.Team;
-import org.eclipse.team.core.TeamException;
-import org.eclipse.team.internal.ui.actions.TeamAction;
-import org.eclipse.ui.IActionDelegate;
-
-public class NullAction extends TeamAction implements IActionDelegate {
-
- public void run(IAction action) {
- MessageDialog.openQuestion(getShell(), "Action Run", "Action Run");
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.internal.ui.actions.TeamAction#isEnabled()
- */
- protected boolean isEnabled() throws TeamException {
- IResource[] resources = getSelectedResources();
- if(resources.length == 1) {
- IResource resource = resources[0];
- IDeploymentProviderManager manager = Team.getDeploymentManager();
- if(! manager.getMappedTo(resource, FileSystemDeploymentProvider.ID)) {
- return false;
- }
- }
- return true;
- }
-} \ No newline at end of file
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/UnDeployAction.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/UnDeployAction.java
deleted file mode 100644
index 5466a25fc..000000000
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/deployment/UnDeployAction.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.team.examples.filesystem.deployment;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.team.core.DeploymentProvider;
-import org.eclipse.team.core.IDeploymentProviderManager;
-import org.eclipse.team.core.Team;
-import org.eclipse.team.core.TeamException;
-import org.eclipse.team.internal.ui.actions.TeamAction;
-import org.eclipse.ui.IActionDelegate;
-
-public class UnDeployAction extends TeamAction implements IActionDelegate {
-
- public void run(IAction action) {
- IContainer container = (IContainer)getSelectedResources()[0];
- IDeploymentProviderManager manager = Team.getDeploymentManager();
- try {
- DeploymentProvider[] providers = manager.getMappings(container, FileSystemDeploymentProvider.ID);
- for (int i = 0; i < providers.length; i++) {
- DeploymentProvider provider = providers[i];
- manager.unmap(container, provider);
- }
- } catch (TeamException e) {
- ErrorDialog.openError(getShell(), "Error", "Un-Mapping", e.getStatus());
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.internal.ui.actions.TeamAction#isEnabled()
- */
- protected boolean isEnabled() throws TeamException {
- IResource[] resources = getSelectedResources();
- if(resources.length == 1) {
- IResource resource = resources[0];
- IDeploymentProviderManager manager = Team.getDeploymentManager();
- if(! manager.getMappedTo(resource, FileSystemDeploymentProvider.ID)) {
- return false;
- }
- }
- return true;
- }
-} \ No newline at end of file

Back to the top