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 117023 Details for
Bug 251794
New Customization Data for TagCreator commands
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 for AttributeData Javadoc additions
patch.txt (text/plain), 2.32 KB, created by
Debajit Adhikary
on 2008-11-04 18:54:38 EST
(
hide
)
Description:
Patch for AttributeData Javadoc additions
Filename:
MIME Type:
Creator:
Debajit Adhikary
Created:
2008-11-04 18:54:38 EST
Size:
2.32 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.pagedesigner >Index: src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java >=================================================================== >RCS file: /cvsroot/webtools/org.eclipse.jsf/components/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java,v >retrieving revision 1.1 >diff -u -r1.1 AttributeData.java >--- src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java 4 Nov 2008 01:15:42 -0000 1.1 >+++ src/org/eclipse/jst/pagedesigner/itemcreation/customizer/AttributeData.java 4 Nov 2008 23:52:12 -0000 >@@ -4,37 +4,69 @@ > import java.util.Map; > > /** >- * This class contains all the data that pertains to the customization >- * of a tag's attributes. For the current PoC, this involves a HashMap >- * where the String key is the name of the attribute and the associated >- * value is the user entered value for that attribute. >+ * Class containing all the data that pertains to the customization >+ * of a tag's attributes. > * > * @author prusev >+ * @author Debajit Adhikary > * > */ > public class AttributeData { > > private Map<String, String> attrs = new HashMap<String, String>(); > >+ >+ /** >+ * Returns a map of the attributes (Name-Value pairs) >+ * >+ * @return Map of attribute names and values >+ * >+ */ > public Map<String, String> getAttributes() > { > return attrs; > } > >+ >+ /** >+ * Sets the attribute data to the map of attribute names and values >+ * provided. >+ * >+ * @param attribs >+ * Map of attribute names and values >+ * >+ */ > public void setAttributes(Map<String, String> attribs) > { > attrs.clear(); > attrs.putAll(attribs); > } >+ > >+ /** >+ * Adds an attribute. >+ * >+ * @param attr >+ * Attribute name >+ * @param userVal >+ * Attribute value >+ * >+ */ > public void addAttribute(String attr, String userVal) > { > attrs.put(attr, userVal); > } >- >+ >+ /** >+ * Returns the value for a given attribute name. >+ * >+ * @param attr >+ * Attribute name whose value is to be found >+ * @return Attribute value for the given attribute name >+ * >+ */ > public String getValForAttrib(String attr) > { > return attrs.get(attr); > } >- > }
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 251794
:
117021
| 117023