Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-03-29 12:21:31 -0500
committerAlain Magloire2004-03-29 12:21:31 -0500
commitd6b510d2008f64c058e2355ec7f8af766853bb6c (patch)
treeb2089b5579563befd6ad4fe2ac76c414743cceee /core
parente888d97cff00568212487da03af92dee3d0052f1 (diff)
downloadorg.eclipse.cdt-d6b510d2008f64c058e2355ec7f8af766853bb6c.tar.gz
org.eclipse.cdt-d6b510d2008f64c058e2355ec7f8af766853bb6c.tar.xz
org.eclipse.cdt-d6b510d2008f64c058e2355ec7f8af766853bb6c.zip
Added the Probelem view as the default instead of the
Task view.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog9
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java2
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java4
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java2
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ErrorTickAdornmentProvider.java2
5 files changed, 14 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index 4c004414a1..2c3ee5f584 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -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)
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
index 0758e85d58..7b0b172784 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
@@ -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);
}
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java
index c4daf7ba31..f03da8c878 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPerspectiveFactory.java
@@ -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);
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java
index 54f588df24..322b2de477 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CWorkbenchAdapter.java
@@ -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;
}
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ErrorTickAdornmentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ErrorTickAdornmentProvider.java
index 3bbe8835b3..29f0b4af82 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ErrorTickAdornmentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ErrorTickAdornmentProvider.java
@@ -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();

Back to the top