2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com
.intellij
.execution
.ui
;
19 import com
.intellij
.execution
.filters
.Filter
;
20 import com
.intellij
.execution
.filters
.HyperlinkInfo
;
21 import com
.intellij
.execution
.process
.ProcessHandler
;
22 import com
.intellij
.openapi
.actionSystem
.AnAction
;
23 import org
.jetbrains
.annotations
.NotNull
;
28 * @author Gregory.Shrago
30 public class ConsoleViewWrapper
implements ConsoleView
{
31 private final ConsoleView myDelegate
;
33 public ConsoleViewWrapper(final ConsoleView delegate
) {
34 myDelegate
= delegate
;
37 public ConsoleView
getDelegate() {
41 public void dispose() {
45 public JComponent
getComponent() {
46 return myDelegate
.getComponent();
49 public JComponent
getPreferredFocusableComponent() {
50 return myDelegate
.getPreferredFocusableComponent();
53 public void print(String s
, ConsoleViewContentType contentType
) {
54 myDelegate
.print(s
, contentType
);
61 public void scrollTo(int offset
) {
62 myDelegate
.scrollTo(offset
);
65 public void attachToProcess(ProcessHandler processHandler
) {
66 myDelegate
.attachToProcess(processHandler
);
69 public void setOutputPaused(boolean value
) {
70 myDelegate
.setOutputPaused(value
);
73 public boolean isOutputPaused() {
74 return myDelegate
.isOutputPaused();
77 public boolean hasDeferredOutput() {
78 return myDelegate
.hasDeferredOutput();
81 public void performWhenNoDeferredOutput(Runnable runnable
) {
82 myDelegate
.performWhenNoDeferredOutput(runnable
);
85 public void setHelpId(String helpId
) {
86 myDelegate
.setHelpId(helpId
);
89 public void addMessageFilter(Filter filter
) {
90 myDelegate
.addMessageFilter(filter
);
93 public void printHyperlink(String hyperlinkText
, HyperlinkInfo info
) {
94 myDelegate
.printHyperlink(hyperlinkText
, info
);
97 public int getContentSize() {
98 return myDelegate
.getContentSize();
101 public boolean canPause() {
102 return myDelegate
.canPause();
106 public AnAction
[] createConsoleActions() {
107 return myDelegate
.createConsoleActions();