Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e4802a0283613c085ee274dd72fa846c06516105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/****************************************************************************
 * Copyright (c) 2007 Composent, Inc. and others.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 *    Composent, Inc. - initial API and implementation
 *
 * SPDX-License-Identifier: EPL-2.0
 *****************************************************************************/

package org.eclipse.ecf.docshare;

import org.eclipse.core.filesystem.IFileStore;
import org.eclipse.ui.ide.FileStoreEditorInput;

/**
 * @since 2.1
 */
public class DocShareEditorInput extends FileStoreEditorInput {

	private final String user;
	private final String fileName;

	public DocShareEditorInput(IFileStore fileStore, String user, String file) {
		super(fileStore);
		this.user = user;
		this.fileName = file;
	}

	/* (non-Javadoc)
	 * @see org.eclipse.ui.IEditorInput#getName()
	 */
	public String getName() {
		return user + ": " + fileName; //$NON-NLS-1$
	}

}

Back to the top