1
/*******************************************************************************
2
* Copyright (c) 2006, 2008 Wind River Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.examples.dsf.filebrowser;
15
import org.eclipse.cdt.dsf.ui.viewmodel.AbstractVMContext;
16
import org.eclipse.cdt.dsf.ui.viewmodel.IVMNode;
18
class FileVMContext extends AbstractVMContext {
20
FileVMContext(IVMNode layoutNode, File file) {
25
File getFile() { return fFile; }
28
public boolean equals(Object obj) {
29
return obj instanceof FileVMContext && ((FileVMContext)obj).getFile().equals(fFile);
33
public int hashCode() {
34
return fFile.hashCode();
38
public String toString() {
39
return fFile.toString();
b'\\ No newline at end of file'