Added testing interface methods to access error messages from various pages of the INF and MMP editor.
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/ExportsPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/ExportsPage.java Wed May 27 16:06:14 2009 -0500
@@ -105,4 +105,8 @@
return testExports;
}
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/OverviewPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/OverviewPage.java Wed May 27 16:06:14 2009 -0500
@@ -194,4 +194,8 @@
return testMakMakeFiles;
}
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/testapi/ExpportsPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/testapi/ExpportsPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -32,6 +32,19 @@
public class ExpportsPageTester {
/**
+ * Retrieves any error message from the Exports page.
+ * @param page - Exports page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof ExportsPage) {
+ ExportsPage exportsPage = (ExportsPage) page;
+ return exportsPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the Exports section from an Exports page.
* @param page - Exports page provided by caller
* @return - Exports section if success, null otherwise
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/testapi/OverviewPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/editors/inf/testapi/OverviewPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -35,6 +35,19 @@
public class OverviewPageTester {
/**
+ * Retrieves any error message from the Overview page.
+ * @param page - Overview page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof OverviewPage) {
+ OverviewPage overviewPage = (OverviewPage) page;
+ return overviewPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the "Active Build Configuration" label from the Overview page.
* @param page - Overview page provided by caller
* @return - label widget if success, null otherwise
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/LibrariesPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/LibrariesPage.java Wed May 27 16:06:14 2009 -0500
@@ -156,4 +156,8 @@
return debugLibraries;
}
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OptionsPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OptionsPage.java Wed May 27 16:06:14 2009 -0500
@@ -127,4 +127,8 @@
return kernelSectionPart;
}
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OverviewPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OverviewPage.java Wed May 27 16:06:14 2009 -0500
@@ -452,5 +452,9 @@
public ImageHyperlink getOptionsHyperlink() {
return optionsImageHyperlink;
}
-
+
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/SourcesPage.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/SourcesPage.java Wed May 27 16:06:14 2009 -0500
@@ -136,4 +136,8 @@
return missingSourcesSectionPart;
}
+ public String getErrorMesaage() {
+ return getManagedForm().getForm().getMessage();
+ }
+
}
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/LibrariesPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/LibrariesPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -32,6 +32,19 @@
public class LibrariesPageTester {
/**
+ * Retrieves any error message from the Libraries page.
+ * @param page - Libraries page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof LibrariesPage) {
+ LibrariesPage librariesPage = (LibrariesPage) page;
+ return librariesPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the "Libraries" section of the Libraries page.
* @param page - Libraries page provided by caller
* @return - section part if success, null otherwise
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/OptionsPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/OptionsPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -37,6 +37,19 @@
public class OptionsPageTester {
/**
+ * Retrieves any error message from the Options page.
+ * @param page - Options page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof OptionsPage) {
+ OptionsPage optionsPage = (OptionsPage) page;
+ return optionsPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the "Runtime" section of the Options page.
* @param page - Options page provided by caller
* @return - section part if success, null otherwise
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/OverviewPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/OverviewPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -32,6 +32,19 @@
public class OverviewPageTester {
/**
+ * Retrieves any error message from the Overview page.
+ * @param page - Overview page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof OverviewPage) {
+ OverviewPage overviewPage = (OverviewPage) page;
+ return overviewPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the "Active Build Configuration" label of the Overview page.
* @param page - Overview page provided by caller
* @return - label widget if success, null otherwise
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/SourcesPageTester.java Tue May 26 11:30:03 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/testapi/SourcesPageTester.java Wed May 27 16:06:14 2009 -0500
@@ -35,6 +35,19 @@
public class SourcesPageTester {
/**
+ * Retrieves any error message from the Sources page.
+ * @param page - Sources page provided by caller
+ * @return error message string if success, null otherwise
+ */
+ public static String getErrorMesaage(FormPage page) {
+ if (page != null && page instanceof SourcesPage) {
+ SourcesPage sourcesPage = (SourcesPage) page;
+ return sourcesPage.getErrorMesaage();
+ }
+ return null;
+ }
+
+ /**
* Retrieves the "C/C++ Sources" section of the Sources page.
* @param page - Overview page provided by caller
* @return - section part if success, null otherwise