|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 28-36
Link Here
|
| 28 |
import org.eclipse.pde.internal.ui.refactoring.RefactoringActionFactory; |
28 |
import org.eclipse.pde.internal.ui.refactoring.RefactoringActionFactory; |
| 29 |
import org.eclipse.pde.internal.ui.search.dependencies.DependencyExtentAction; |
29 |
import org.eclipse.pde.internal.ui.search.dependencies.DependencyExtentAction; |
| 30 |
import org.eclipse.pde.internal.ui.search.dependencies.UnusedDependenciesAction; |
30 |
import org.eclipse.pde.internal.ui.search.dependencies.UnusedDependenciesAction; |
|
|
31 |
import org.eclipse.pde.internal.ui.views.plugins.ImportActionGroup; |
| 31 |
import org.eclipse.swt.widgets.*; |
32 |
import org.eclipse.swt.widgets.*; |
| 32 |
import org.eclipse.ui.IActionBars; |
33 |
import org.eclipse.ui.IActionBars; |
| 33 |
import org.eclipse.ui.IWorkbenchActionConstants; |
34 |
import org.eclipse.ui.IWorkbenchActionConstants; |
|
|
35 |
import org.eclipse.ui.actions.ActionContext; |
| 34 |
import org.eclipse.ui.part.Page; |
36 |
import org.eclipse.ui.part.Page; |
| 35 |
|
37 |
|
| 36 |
public abstract class DependenciesViewPage extends Page { |
38 |
public abstract class DependenciesViewPage extends Page { |
|
Lines 136-141
Link Here
|
| 136 |
manager.add(fOpenAction); |
138 |
manager.add(fOpenAction); |
| 137 |
manager.add(new Separator()); |
139 |
manager.add(new Separator()); |
| 138 |
} |
140 |
} |
|
|
141 |
|
| 142 |
if (ImportActionGroup.canImport(selection)) { |
| 143 |
ImportActionGroup actionGroup = new ImportActionGroup(); |
| 144 |
actionGroup.setContext(new ActionContext(selection)); |
| 145 |
actionGroup.fillContextMenu(manager); |
| 146 |
manager.add(new Separator()); |
| 147 |
} |
| 148 |
|
| 139 |
fFocusOnSelectionAction.update(getSelectedObject()); |
149 |
fFocusOnSelectionAction.update(getSelectedObject()); |
| 140 |
if (fFocusOnSelectionAction.isEnabled()) |
150 |
if (fFocusOnSelectionAction.isEnabled()) |
| 141 |
manager.add(fFocusOnSelectionAction); |
151 |
manager.add(fFocusOnSelectionAction); |