Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: dca0b5e0cda23bad927305add1541bb869622834 (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
/*******************************************************************************
 * Copyright (c) 2007, 2008 Wind River Systems, Inc. and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Anton Leherbauer (Wind River Systems) - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.internal.ui.editor.asm;

import org.eclipse.cdt.internal.ui.editor.AbstractCModelOutlinePage;
import org.eclipse.cdt.ui.actions.CustomFiltersActionGroup;
import org.eclipse.cdt.ui.actions.OpenViewActionGroup;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.texteditor.ITextEditor;

/**
 * Content outline page for assembly translation units.
 *
 * @since 5.0
 */
public class AsmContentOutlinePage extends AbstractCModelOutlinePage {

	/**
	 * Creates a new outline page for the given editor.
	 * @param editor
	 */
	public AsmContentOutlinePage(ITextEditor editor) {
		super("#ASMOutlineContext", editor); //$NON-NLS-1$
	}

	@Override
	protected OpenViewActionGroup createOpenViewActionGroup() {
		OpenViewActionGroup ovag = new OpenViewActionGroup(this);
		ovag.setEnableIncludeBrowser(false);
		ovag.setSuppressCallHierarchy(true);
		ovag.setSuppressTypeHierarchy(true);
		return ovag;
	}

	@Override
	protected ActionGroup createCustomFiltersActionGroup() {
		return new CustomFiltersActionGroup("org.eclipse.cdt.ui.AsmOutlinePage", getTreeViewer()); //$NON-NLS-1$
	}

}

Back to the top