blob: 3d62b134cc60fb298324383c8c103b31d9c282bd (
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
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* Copyright (c) 2002 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*/
package org.eclipse.wst.sse.ui;
import java.util.List;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.wst.sse.core.IStructuredModel;
import org.eclipse.wst.sse.ui.view.events.ICaretListener;
import org.eclipse.wst.sse.ui.view.events.INodeSelectionListener;
import org.eclipse.wst.sse.ui.view.events.ITextSelectionListener;
public interface ViewerSelectionManager extends ICaretListener, IDoubleClickListener, ISelectionChangedListener, SelectionListener {
void addNodeDoubleClickListener(IDoubleClickListener listener);
void addNodeSelectionListener(INodeSelectionListener listener);
void addTextSelectionListener(ITextSelectionListener listener);
int getCaretPosition();
List getSelectedNodes();
void release();
void removeNodeDoubleClickListener(IDoubleClickListener listener);
void removeNodeSelectionListener(INodeSelectionListener listener);
void removeTextSelectionListener(ITextSelectionListener listener);
void setModel(IStructuredModel newModel);
void setTextViewer(ITextViewer newTextViewer);
}
|