Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 151971 Details for
Bug 294897
MessageCategory is broken in the validation framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to fix the message setting problem
patch_wtp31.txt (text/plain), 2.38 KB, created by
Wini Mark
on 2009-11-11 14:54:47 EST
(
hide
)
Description:
Patch to fix the message setting problem
Filename:
MIME Type:
Creator:
Wini Mark
Created:
2009-11-11 14:54:47 EST
Size:
2.38 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.validation >Index: vf2/org/eclipse/wst/validation/internal/ValidatorMutable.java >=================================================================== >RCS file: /cvsroot/webtools/common/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/internal/ValidatorMutable.java,v >retrieving revision 1.3 >diff -u -r1.3 ValidatorMutable.java >--- vf2/org/eclipse/wst/validation/internal/ValidatorMutable.java 12 Feb 2009 21:11:33 -0000 1.3 >+++ vf2/org/eclipse/wst/validation/internal/ValidatorMutable.java 11 Nov 2009 19:56:59 -0000 >@@ -215,6 +215,10 @@ > public Map<String, MessageSeveritySetting> getMessageSettings() { > return _messageSettings; > } >+ >+ public int getChangeCountMessages(){ >+ return _changeCountMessages; >+ } > > public void bumpChangeCountMessages(){ > _changeCountMessages++; >Index: vf2/org/eclipse/wst/validation/internal/ValPrefManagerGlobal.java >=================================================================== >RCS file: /cvsroot/webtools/common/plugins/org.eclipse.wst.validation/vf2/org/eclipse/wst/validation/internal/ValPrefManagerGlobal.java,v >retrieving revision 1.12 >diff -u -r1.12 ValPrefManagerGlobal.java >--- vf2/org/eclipse/wst/validation/internal/ValPrefManagerGlobal.java 27 Jan 2009 09:25:45 -0000 1.12 >+++ vf2/org/eclipse/wst/validation/internal/ValPrefManagerGlobal.java 11 Nov 2009 19:56:59 -0000 >@@ -173,6 +173,18 @@ > while(des.hasNext())list.add(FilterGroup.create(des)); > v2.setGroups(list); > } >+ >+ String settings = vp.get(PrefConstants.msgs, ""); //$NON-NLS-1$ >+ if (settings.length() >0) >+ { >+ Map<String, MessageSeveritySetting.Severity> map = Msgs.deserialize(settings); >+ Map<String, MessageSeveritySetting> msg = base.getMessageSettings(); >+ >+ for (Map.Entry<String, MessageSeveritySetting.Severity> me : map.entrySet()){ >+ MessageSeveritySetting ms = msg.get(me.getKey()); >+ if (ms != null)ms.setCurrent(me.getValue()); >+ } >+ } > } > return base; > } >@@ -365,6 +377,13 @@ > vp.put(PrefConstants.groups, ser.toString()); > } > } >+ if (validator.getChangeCountMessages() > 0){ >+ Collection<MessageSeveritySetting> msgs = validator.getMessageSettings().values(); >+ if (msgs.size() > 0){ >+ vp.put(PrefConstants.msgs, Msgs.serialize(msgs)); >+ } >+ } >+ > } > > public void saveAsPrefs(Validator[] val) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 294897
: 151971