mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2005-07-06 David Inglis - fixed bug#102546
This commit is contained in:
parent
3ed18af344
commit
8d3bd00d1c
4 changed files with 73 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-07-06 David Inglis
|
||||||
|
fixed bug#102546
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/core/CCorePlugin.java
|
||||||
|
* src/org/eclipse/cdt/internal/core/SystemBuildConsole.java
|
||||||
|
* plugins.xml
|
||||||
|
|
||||||
2005-07-05 Alain Magloire
|
2005-07-05 Alain Magloire
|
||||||
Fix for PR 102327: ContentType framework.
|
Fix for PR 102327: ContentType framework.
|
||||||
* model/org/eclipse/cdt/core/model/CoreModel.java
|
* model/org/eclipse/cdt/core/model/CoreModel.java
|
||||||
|
|
|
@ -588,6 +588,12 @@
|
||||||
description="%cdt_pathentry_var.description">
|
description="%cdt_pathentry_var.description">
|
||||||
</variable>
|
</variable>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.cdt.core.CBuildConsole">
|
||||||
|
<CBuildConsole
|
||||||
|
class="org.eclipse.cdt.internal.core.SystemBuildConsole"
|
||||||
|
id="org.eclipse.cdt.core.systemConsole"/>
|
||||||
|
</extension>
|
||||||
|
|
||||||
<!-- =================================================================================== -->
|
<!-- =================================================================================== -->
|
||||||
<!-- Dynamic Variables -->
|
<!-- Dynamic Variables -->
|
||||||
|
|
|
@ -477,8 +477,8 @@ public class CCorePlugin extends Plugin {
|
||||||
for (int i = 0; i < extensions.length; i++) {
|
for (int i = 0; i < extensions.length; i++) {
|
||||||
IConfigurationElement[] configElements = extensions[i].getConfigurationElements();
|
IConfigurationElement[] configElements = extensions[i].getConfigurationElements();
|
||||||
for (int j = 0; j < configElements.length; j++) {
|
for (int j = 0; j < configElements.length; j++) {
|
||||||
String builderID = configElements[j].getAttribute("id"); //$NON-NLS-1$
|
String consoleID = configElements[j].getAttribute("id"); //$NON-NLS-1$
|
||||||
if ((id == null && builderID == null) || (id != null && id.equals(builderID))) {
|
if ((id == null && consoleID == null) || (id != null && id.equals(consoleID))) {
|
||||||
return (IConsole) configElements[j].createExecutableExtension("class"); //$NON-NLS-1$
|
return (IConsole) configElements[j].createExecutableExtension("class"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -513,7 +513,8 @@ public class CCorePlugin extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public IConsole getConsole() {
|
public IConsole getConsole() {
|
||||||
return getConsole(null);
|
String consoleID = System.getProperty("org.eclipse.cdt.core.console"); //$NON-NLS-1$
|
||||||
|
return getConsole(consoleID);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICExtensionReference[] getBinaryParserExtensions(IProject project) throws CoreException {
|
public ICExtensionReference[] getBinaryParserExtensions(IProject project) throws CoreException {
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2004 QNX Software Systems and others. All rights reserved. This
|
||||||
|
* program and the accompanying materials are made available under the terms of
|
||||||
|
* the Common Public License v1.0 which accompanies this distribution, and is
|
||||||
|
* available at http://www.eclipse.org/legal/cpl-v10.html
|
||||||
|
*
|
||||||
|
* Contributors: QNX Software Systems - initial API and implementation
|
||||||
|
******************************************************************************/
|
||||||
|
package org.eclipse.cdt.internal.core;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.ConsoleOutputStream;
|
||||||
|
import org.eclipse.cdt.core.resources.IConsole;
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
|
|
||||||
|
public class SystemBuildConsole implements IConsole {
|
||||||
|
final ConsoleOutputStream out;
|
||||||
|
final ConsoleOutputStream err;
|
||||||
|
|
||||||
|
public SystemBuildConsole() {
|
||||||
|
out = new ConsoleOutputStream() {
|
||||||
|
public synchronized void write(byte[] b, int off, int len) throws java.io.IOException {
|
||||||
|
System.out.write(b, off, len);
|
||||||
|
}
|
||||||
|
|
||||||
|
public synchronized void write(int c) throws java.io.IOException {
|
||||||
|
System.out.write(c);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
err = new ConsoleOutputStream() {
|
||||||
|
public synchronized void write(byte[] b, int off, int len) throws java.io.IOException {
|
||||||
|
System.err.write(b, off, len);
|
||||||
|
}
|
||||||
|
|
||||||
|
public synchronized void write(int c) throws java.io.IOException {
|
||||||
|
System.err.write(c);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public void start(IProject project) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConsoleOutputStream getOutputStream() throws CoreException {
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConsoleOutputStream getInfoStream() throws CoreException {
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConsoleOutputStream getErrorStream() throws CoreException {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue