From d9ee930837828f52f102014df370e4aab817eaf1 Mon Sep 17 00:00:00 2001 From: Pawel Piech Date: Wed, 21 Nov 2007 23:47:55 +0000 Subject: [PATCH] [205132] Got rid of the no-longer used service context object. --- .../dd/dsf/datamodel/ServiceDMContext.java | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/datamodel/ServiceDMContext.java diff --git a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/datamodel/ServiceDMContext.java b/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/datamodel/ServiceDMContext.java deleted file mode 100644 index d3a27b76910..00000000000 --- a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/datamodel/ServiceDMContext.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 Wind River Systems 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: - * Wind River Systems - initial API and implementation - *******************************************************************************/ -package org.eclipse.dd.dsf.datamodel; - - -/** - * The Data Model Context representing the owner service, which is returned by - * {@link IDMService#getServiceContext()} methods. The service DM Context - * should be the parent of all contexts originating from the given service. - */ -public class ServiceDMContext extends AbstractDMContext { - String fServiceDMID; - - public ServiceDMContext(IDMService service, String serviceDMID) { - super(service, new IDMContext[0]); - fServiceDMID = serviceDMID; - } - - @Override - public String toString() { return baseToString() + fServiceDMID; } - - @Override - public boolean equals(Object obj) { - return obj instanceof ServiceDMContext && fServiceDMID.equals(((ServiceDMContext)obj).fServiceDMID); - } - - @Override - public int hashCode() { - return fServiceDMID.hashCode(); - } - -}