mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 342640: a helpful message
This commit is contained in:
parent
ab9417925c
commit
57d4081355
3 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,7 @@ package org.eclipse.cdt.internal.ui.buildconsole;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.runtime.Assert;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.ConsoleOutputStream;
|
import org.eclipse.cdt.core.ConsoleOutputStream;
|
||||||
|
@ -57,14 +58,17 @@ public class CBuildConsole implements ICConsole {
|
||||||
* @see org.eclipse.cdt.core.resources.IConsole#getOutputStream()
|
* @see org.eclipse.cdt.core.resources.IConsole#getOutputStream()
|
||||||
*/
|
*/
|
||||||
public ConsoleOutputStream getOutputStream() throws CoreException {
|
public ConsoleOutputStream getOutputStream() throws CoreException {
|
||||||
|
Assert.isNotNull(project, ConsoleMessages.CBuildConsole_Console_Must_Be_Started_First);
|
||||||
return fConsoleManager.getConsole(project).getOutputStream();
|
return fConsoleManager.getConsole(project).getOutputStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConsoleOutputStream getInfoStream() throws CoreException {
|
public ConsoleOutputStream getInfoStream() throws CoreException {
|
||||||
|
Assert.isNotNull(project, ConsoleMessages.CBuildConsole_Console_Must_Be_Started_First);
|
||||||
return fConsoleManager.getConsole(project).getInfoStream();
|
return fConsoleManager.getConsole(project).getInfoStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConsoleOutputStream getErrorStream() throws CoreException {
|
public ConsoleOutputStream getErrorStream() throws CoreException {
|
||||||
|
Assert.isNotNull(project, ConsoleMessages.CBuildConsole_Console_Must_Be_Started_First);
|
||||||
return fConsoleManager.getConsole(project).getErrorStream();
|
return fConsoleManager.getConsole(project).getErrorStream();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ public final class ConsoleMessages extends NLS {
|
||||||
public static String PreviousErrorAction_Tooltip;
|
public static String PreviousErrorAction_Tooltip;
|
||||||
public static String NextErrorAction_Tooltip;
|
public static String NextErrorAction_Tooltip;
|
||||||
public static String ShowErrorAction_Tooltip;
|
public static String ShowErrorAction_Tooltip;
|
||||||
|
public static String CBuildConsole_Console_Must_Be_Started_First;
|
||||||
public static String CopyLog_ActionTooltip;
|
public static String CopyLog_ActionTooltip;
|
||||||
public static String CopyLog_BuildNotLogged;
|
public static String CopyLog_BuildNotLogged;
|
||||||
public static String CopyLog_ChooseDestination;
|
public static String CopyLog_ChooseDestination;
|
||||||
|
|
|
@ -22,6 +22,7 @@ BuildConsolePage_Copy_7=Copy
|
||||||
BuildConsolePage_Select__All_Ctrl_A_12=Select &All@Ctrl+A
|
BuildConsolePage_Select__All_Ctrl_A_12=Select &All@Ctrl+A
|
||||||
BuildConsolePage_Select_All=Select All
|
BuildConsolePage_Select_All=Select All
|
||||||
|
|
||||||
|
CBuildConsole_Console_Must_Be_Started_First=Build Console must be started with a specific project before being used.
|
||||||
CopyLog_ActionTooltip=Copy Build Log
|
CopyLog_ActionTooltip=Copy Build Log
|
||||||
CopyLog_BuildNotLogged=No build was logged. Build the project or/and check the Logging page in project properties.
|
CopyLog_BuildNotLogged=No build was logged. Build the project or/and check the Logging page in project properties.
|
||||||
CopyLog_ChooseDestination=Choose Log File Destination
|
CopyLog_ChooseDestination=Choose Log File Destination
|
||||||
|
|
Loading…
Add table
Reference in a new issue