| 1 | /*******************************************************************************\r |
| 2 | * Copyright (c) 2010 Ericsson\r |
| 3 | *\r |
| 4 | * All rights reserved. This program and the accompanying materials are\r |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which\r |
| 6 | * accompanies this distribution, and is available at\r |
| 7 | * http://www.eclipse.org/legal/epl-v10.html\r |
| 8 | *\r |
| 9 | * Contributors:\r |
| 10 | * Patrick Tasse - Initial API and implementation\r |
| 11 | *******************************************************************************/\r |
| 12 | \r |
| 13 | package org.eclipse.linuxtools.internal.tmf.ui.parsers.custom;\r |
| 14 | \r |
| 15 | import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;\r |
| 16 | import org.eclipse.linuxtools.tmf.core.trace.TmfContext;\r |
| 17 | \r |
| 18 | public class CustomXmlTraceContext extends TmfContext {\r |
| 19 | \r |
| 20 | public CustomXmlTraceContext(ITmfLocation location, long rank) {\r |
| 21 | super(location, rank);\r |
| 22 | }\r |
| 23 | \r |
| 24 | /* (non-Javadoc)\r |
| 25 | * @see java.lang.Object#hashCode()\r |
| 26 | */\r |
| 27 | @Override\r |
| 28 | public int hashCode() {\r |
| 29 | return super.hashCode();\r |
| 30 | }\r |
| 31 | \r |
| 32 | /* (non-Javadoc)\r |
| 33 | * @see java.lang.Object#equals(java.lang.Object)\r |
| 34 | */\r |
| 35 | @Override\r |
| 36 | public boolean equals(Object obj) {\r |
| 37 | if (this == obj) {\r |
| 38 | return true;\r |
| 39 | }\r |
| 40 | if (!super.equals(obj)) {\r |
| 41 | return false;\r |
| 42 | }\r |
| 43 | if (!(obj instanceof CustomXmlTraceContext)) {\r |
| 44 | return false;\r |
| 45 | }\r |
| 46 | return true;\r |
| 47 | }\r |
| 48 | \r |
| 49 | } |