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:
parent
e888d97cff
commit
d6b510d200
5 changed files with 14 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue