mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
[205132] Got rid of the no-longer used service context object.
This commit is contained in:
parent
64a3c6512a
commit
d9ee930837
1 changed files with 0 additions and 40 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue