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

Added the Probelem view as the default instead of the

Task view.
This commit is contained in:
Alain Magloire 2004-03-29 17:21:31 +00:00
parent e888d97cff
commit d6b510d200
5 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,12 @@
2004-03-29 Alain Magloire
Put the Problem view as the default instead of Task view.
* src/org/eclipse/cdt/internal/ui/BaseCElementContentProvier.java
* src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java
* src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java
* src/org/eclipse/cdt/internal/ui;/ErrorTickAdornmentProvider.java
2004-03-28 Bogdan Gheorghe
Modified CSearchPage to use new CSearchQuery (which uses the new background
jobs API)

View file

@ -153,7 +153,7 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
return ((IParent)element).getChildren();
}
} else if (element instanceof IParent) {
return (Object[])((IParent)element).getChildren();
return ((IParent)element).getChildren();
} else if (element instanceof IFolder) {
return getResources((IFolder)element);
}

View file

@ -33,7 +33,7 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
folder1.addPlaceholder(IPageLayout.ID_BOOKMARKS);
IFolderLayout folder2= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
folder2.addView(IPageLayout.ID_TASK_LIST);
folder2.addView(IPageLayout.ID_PROBLEM_VIEW);
folder2.addView(IConsoleConstants.ID_CONSOLE_VIEW);
folder2.addView(IPageLayout.ID_PROP_SHEET);
@ -51,7 +51,7 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
// views - standard workbench
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
layout.addShowViewShortcut(CUIPlugin.CVIEW_ID);
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);

View file

@ -56,7 +56,7 @@ public class CWorkbenchAdapter implements IWorkbenchAdapter {
*/
public String getLabel(Object o) {
if (o instanceof ICElement) {
return fLabelProvider.getText((ICElement) o);
return fLabelProvider.getText(o);
}
return null;
}

View file

@ -46,7 +46,7 @@ public class ErrorTickAdornmentProvider implements IAdornmentProvider {
case ICElement.C_STRUCT:
case ICElement.C_VARIABLE:
case ICElement.C_METHOD:
ITranslationUnit tu= (ITranslationUnit) ((ISourceReference)element).getTranslationUnit();
ITranslationUnit tu= ((ISourceReference)element).getTranslationUnit();
if (tu != null && tu.exists()) {
// I assume that only source elements in compilation unit can have markers
ISourceRange range= ((ISourceReference)element).getSourceRange();