01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal;
11:
12: /**
13: * @since 3.1
14: */
15: public class DirtyPerspectiveMarker {
16: /**
17: * @param id
18: */
19: public DirtyPerspectiveMarker(String id) {
20: perspectiveId = id;
21: }
22:
23: public String perspectiveId;
24:
25: /* (non-Javadoc)
26: * @see java.lang.Object#hashCode()
27: */
28: public int hashCode() {
29: return perspectiveId.hashCode();
30: }
31:
32: /* (non-Javadoc)
33: * @see java.lang.Object#equals(java.lang.Object)
34: */
35: public boolean equals(Object o) {
36: if (o instanceof DirtyPerspectiveMarker) {
37: return perspectiveId
38: .equals(((DirtyPerspectiveMarker) o).perspectiveId);
39: }
40: return false;
41: }
42: }
|