/** * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ /* * Created on Jan 15, 2006 */ package com.python.pydev.actions; import org.eclipse.jface.action.IAction; import org.python.pydev.editor.PyEdit; import org.python.pydev.editor.actions.PyAction; import org.python.pydev.ui.dialogs.TreeSelectionDialog; public class PyShowOutline extends PyAction { public void run(IAction action) { PyEdit pyEdit = getPyEdit(); TreeSelectionDialog dialog = new PyOutlineSelectionDialog(PyAction.getShell(), pyEdit); dialog.open(); //The dialog will take care of everything. } }