1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

new C-Build console supporting mutiple streams.

This commit is contained in:
David Inglis 2004-03-12 16:24:08 +00:00
parent b03b5aa0c6
commit 7b78e2923e
4 changed files with 8 additions and 11 deletions

View file

@ -10,6 +10,7 @@ import org.eclipse.search.ui.SearchUI;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;
public class CPerspectiveFactory implements IPerspectiveFactory {
@ -27,13 +28,13 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
String editorArea = layout.getEditorArea();
IFolderLayout folder1= layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
folder1.addView(CUIPlugin.CVIEW_ID);
folder1.addView(IPageLayout.ID_RES_NAV);
folder1.addPlaceholder(IPageLayout.ID_BOOKMARKS);
folder1.addView(CUIPlugin.CVIEW_ID);
IFolderLayout folder2= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
folder2.addView(IPageLayout.ID_TASK_LIST);
folder2.addView(CUIPlugin.CONSOLE_ID);
folder2.addView(IConsoleConstants.ID_CONSOLE_VIEW);
folder2.addView(IPageLayout.ID_PROP_SHEET);
IFolderLayout folder3= layout.createFolder("topRight", IPageLayout.RIGHT,(float)0.75, editorArea); //$NON-NLS-1$
@ -43,7 +44,7 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
layout.addActionSet(CUIPlugin.FOLDER_ACTION_SET_ID);
// views - build console
layout.addShowViewShortcut(CUIPlugin.CONSOLE_ID);
layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
// views - searching
layout.addShowViewShortcut(SearchUI.SEARCH_RESULT_VIEW_ID);

View file

@ -13,7 +13,6 @@ package org.eclipse.cdt.internal.ui.buildconsole;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.cdt.internal.ui.ConsoleEvent;
import org.eclipse.cdt.internal.ui.preferences.BuildConsolePreferencePage;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.IBuildConsole;

View file

@ -1,7 +1,4 @@
/*
* (c) Copyright QNX Software System Ltd. 2002.
* All Rights Reserved.
*/package org.eclipse.cdt.internal.ui;
package org.eclipse.cdt.internal.ui.buildconsole;
import java.util.EventObject;
@ -9,9 +6,10 @@ import org.eclipse.cdt.ui.IBuildConsoleEvent;
import org.eclipse.core.resources.IProject;
public class ConsoleEvent extends EventObject implements IBuildConsoleEvent {
private IProject fProject;
private int fType;
public ConsoleEvent(Object source, IProject project, int type) {
super(source);
fProject = project;
@ -26,4 +24,4 @@ public class ConsoleEvent extends EventObject implements IBuildConsoleEvent {
return fType;
}
}
}

View file

@ -72,7 +72,6 @@ public class CUIPlugin extends AbstractUIPlugin {
public static final String PLUGIN_ID = "org.eclipse.cdt.ui"; //$NON-NLS-1$
public static final String PLUGIN_CORE_ID = "org.eclipse.cdt.core"; //$NON-NLS-1$
public static final String EDITOR_ID = PLUGIN_ID + ".editor.CEditor"; //$NON-NLS-1$
public static final String CONSOLE_ID = PLUGIN_ID + ".BuildConsoleView"; //$NON-NLS-1$
public static final String CVIEW_ID = PLUGIN_ID + ".CView"; //$NON-NLS-1$
public static final String C_PROBLEMMARKER = PLUGIN_CORE_ID + ".problem"; //$NON-NLS-1$