|
44 | 44 | import org.eclipse.core.resources.IWorkspace;
|
45 | 45 | import org.eclipse.core.resources.IWorkspaceRoot;
|
46 | 46 | import org.eclipse.core.resources.ResourcesPlugin;
|
| 47 | +import org.eclipse.core.runtime.Adapters; |
47 | 48 | import org.eclipse.core.runtime.CoreException;
|
48 | 49 | import org.eclipse.core.runtime.IPath;
|
49 | 50 | import org.eclipse.core.runtime.IProgressMonitor;
|
|
93 | 94 | import org.eclipse.ui.IWorkbenchPage;
|
94 | 95 | import org.eclipse.ui.PartInitException;
|
95 | 96 | import org.eclipse.ui.console.ConsolePlugin;
|
| 97 | +import org.eclipse.ui.console.IConsoleView; |
96 | 98 | import org.eclipse.ui.console.IHyperlink;
|
97 | 99 | import org.eclipse.ui.console.IOConsole;
|
98 | 100 | import org.eclipse.ui.console.IOConsoleInputStream;
|
|
102 | 104 | import org.eclipse.ui.console.TextConsole;
|
103 | 105 | import org.eclipse.ui.editors.text.EditorsUI;
|
104 | 106 | import org.eclipse.ui.part.FileEditorInput;
|
| 107 | +import org.eclipse.ui.part.IPageBookViewPage; |
105 | 108 | import org.eclipse.ui.progress.UIJob;
|
106 | 109 |
|
107 | 110 | /**
|
@@ -280,6 +283,15 @@ protected ImageDescriptor computeImageDescriptor() {
|
280 | 283 | return null;
|
281 | 284 | }
|
282 | 285 |
|
| 286 | + @Override |
| 287 | + public IPageBookViewPage createPage(IConsoleView view) { |
| 288 | + IPageBookViewPage adapt = Adapters.adapt(getProcess(), IPageBookViewPage.class); |
| 289 | + if (adapt != null) { |
| 290 | + return adapt; |
| 291 | + } |
| 292 | + return super.createPage(view); |
| 293 | + } |
| 294 | + |
283 | 295 | /**
|
284 | 296 | * Computes and returns the current name of this console.
|
285 | 297 | *
|
|
0 commit comments