Author: scabanovich
Date: 2007-10-15 09:53:14 -0400 (Mon, 15 Oct 2007)
New Revision: 4189
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
Log:
JBIDE-582
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2007-10-15 13:17:01 UTC (rev
4188)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2007-10-15 13:53:14 UTC (rev
4189)
@@ -333,13 +333,13 @@
id="org.jboss.tools.seam.ui.enableSeamAction"
nameFilter="*"
objectClass="org.eclipse.core.resources.IProject">
- <action
+ <!--action
class="org.jboss.tools.seam.ui.builder.ToggleSeamNatureAction"
enablesFor="+"
id="org.jboss.tools.seam.ui.addRemoveSeamNatureAction"
label="Add/Remove Seam support"
menubarPath="additions">
- </action>
+ </action-->
</objectContribution>
</extension>
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2007-10-15
13:17:01 UTC (rev 4188)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2007-10-15
13:53:14 UTC (rev 4189)
@@ -19,6 +19,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
@@ -186,11 +187,13 @@
private void validate() {
if(getSeamSupport() && (runtime.getValue()== null ||
"".equals(runtime.getValue()))) { //$NON-NLS-1$
- setValid(false);
- setErrorMessage(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED);
+// setValid(false);
+ setMessage(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED,
IMessageProvider.WARNING);
+// setErrorMessage(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED);
} else {
setValid(true);
setErrorMessage(null);
+ setMessage(null, IMessageProvider.WARNING);
}
}
Show replies by date