This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 225439
Collapse All | Expand All

(-)a/maven/manifest.mf (-1 / +1 lines)
Lines 1-6 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.modules.maven/2
2
OpenIDE-Module: org.netbeans.modules.maven/2
3
OpenIDE-Module-Specification-Version: 2.77
3
OpenIDE-Module-Specification-Version: 2.78
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/maven/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/maven/Bundle.properties
5
OpenIDE-Module-Layer: org/netbeans/modules/maven/layer.xml
5
OpenIDE-Module-Layer: org/netbeans/modules/maven/layer.xml
6
AutoUpdate-Show-In-Client: false
6
AutoUpdate-Show-In-Client: false
(-)a/maven/src/org/netbeans/modules/maven/api/output/OutputVisitor.java (+32 lines)
Lines 46-51 Link Here
46
import javax.swing.Action;
46
import javax.swing.Action;
47
import org.netbeans.api.annotations.common.CheckForNull;
47
import org.netbeans.api.annotations.common.CheckForNull;
48
import org.netbeans.api.project.Project;
48
import org.netbeans.api.project.Project;
49
import org.openide.windows.IOColors;
50
import org.openide.windows.InputOutput;
49
import org.openide.windows.OutputListener;
51
import org.openide.windows.OutputListener;
50
52
51
/**
53
/**
Lines 59-64 Link Here
59
    private boolean important;
61
    private boolean important;
60
    private String line;
62
    private String line;
61
    private boolean skipLine = false;
63
    private boolean skipLine = false;
64
    private IOColors.OutputType outputType;
62
    private Color color;
65
    private Color color;
63
    private Context context;
66
    private Context context;
64
    
67
    
Lines 92-97 Link Here
92
        line = null;
95
        line = null;
93
        skipLine = false;
96
        skipLine = false;
94
        color = null;
97
        color = null;
98
        outputType = null;
95
    }
99
    }
96
    
100
    
97
    public OutputListener getOutputListener() {
101
    public OutputListener getOutputListener() {
Lines 155-160 Link Here
155
        return skipLine;
159
        return skipLine;
156
    }
160
    }
157
161
162
    /**
163
     * Get the color. If the output type was set using
164
     * {@link #setOutputType(org.openide.windows.IOColors.OutputType)}, try to
165
     * resolve the actual color. If the output type was not set, or the actual
166
     * color cannot be resolved, return value that was set using
167
     * {@link #setColor(java.awt.Color)}; supported.
168
     *
169
     * @since maven/2.78
170
     */
171
    public Color getColor(InputOutput io) {
172
        Color c = this.outputType == null
173
                ? null
174
                : IOColors.getColor(io, this.outputType);
175
        return c == null
176
                ? getColor()
177
                : c;
178
    }
179
158
    public Color getColor() {
180
    public Color getColor() {
159
        return color;
181
        return color;
160
    }
182
    }
Lines 163-168 Link Here
163
        this.color = color;
185
        this.color = color;
164
    }
186
    }
165
    
187
    
188
    /**
189
     * Set output type that will be used in method
190
     * {@link #getColor(org.openide.windows.InputOutput)}.
191
     *
192
     * @since maven/2.78
193
     */
194
    public void setOutputType(IOColors.OutputType outputType) {
195
        this.outputType = outputType;
196
    }
197
166
    public @CheckForNull Context getContext() {
198
    public @CheckForNull Context getContext() {
167
        return context;
199
        return context;
168
    }
200
    }

Return to bug 225439