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 77720 Details for
Bug 202267
Annotation.toString() should include non-empty annotations only
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for the bug.
annotation (text/plain), 2.81 KB, created by
Bence Oláh
on 2007-09-05 09:05:09 EDT
(
hide
)
Description:
Patch for the bug.
Filename:
MIME Type:
Creator:
Bence Oláh
Created:
2007-09-05 09:05:09 EDT
Size:
2.81 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ohf.h3et.mif.core >Index: src/org/eclipse/ohf/h3et/mif/core/ssm/impl/Annotation.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.ohf/plugins/org.eclipse.ohf.h3et.mif.core/src/org/eclipse/ohf/h3et/mif/core/ssm/impl/Annotation.java,v >retrieving revision 1.14 >diff -u -r1.14 Annotation.java >--- src/org/eclipse/ohf/h3et/mif/core/ssm/impl/Annotation.java 4 Sep 2007 08:50:35 -0000 1.14 >+++ src/org/eclipse/ohf/h3et/mif/core/ssm/impl/Annotation.java 5 Sep 2007 12:38:49 -0000 >@@ -699,25 +699,37 @@ > > public String toString() { > >- String result = "Definition: " + getDefinitionAsText() >- + " \nDescription: " + getDescriptionAsText() >- + " \nRationale: " + getRationaleAsText() >- + " \nRequirements: " + getRequirementsAsText() >- + " \nOther annotation: " + getOtherAnnotationsAsText() >- + " \nAppendix: " + getAppendixAsText() >- + " \nUsage notes: "+getUsageNotesAsText() >- + " \nWalkthrough: "+getWalkthroughAsText() >- + " \nMapping: " + getMappingAsText() >- + " \nConstraint: " + getConstraintAsText() >- + " \nOpen issues: " + getOpenIssuesAsText() >- + " \nDesign comments: " + getDesignCommentsAsText() >- + " \nStatic examples: " + getStaticExamplesAsText() >- + " \nBallot comments: " + getBallotCommentsAsText() >- + " \nChange requests: " + getChangeRequestAsText() >- + " \nDeprecation info: " + getDeprecationInfoAsText(); >- >+ String result = >+ generateString("Definition: " , getDefinitionAsText()) + >+ generateString("Description: " , getDescriptionAsText()) + >+ generateString("Rationale: " , getRationaleAsText()) + >+ generateString("Requirements: " , getRequirementsAsText()) + >+ generateString("Other annotation: " , getOtherAnnotationsAsText()) + >+ generateString("Appendix: " , getAppendixAsText()) + >+ generateString("Usage notes: ",getUsageNotesAsText()) + >+ generateString("Walkthrough: ",getWalkthroughAsText()) + >+ generateString("Mapping: " , getMappingAsText()) + >+ generateString("Constraint: " , getConstraintAsText()) + >+ generateString("Open issues: " , getOpenIssuesAsText()) + >+ generateString("Design comments: " , getDesignCommentsAsText()) + >+ generateString("Static examples: " , getStaticExamplesAsText()) + >+ generateString("Ballot comments: " , getBallotCommentsAsText()) + >+ generateString("Change requests: " ,getChangeRequestAsText()) + >+ generateString("Deprecation info: " , getDeprecationInfoAsText()); >+ > return result; > } >- >- >+ /* >+ * Append sting to string2 if string2 is not empty or null >+ */ >+ private String generateString(String string, String string2) >+ { >+ if(string2.length() == 0 || string2 == null) >+ { >+ return ""; >+ } >+ else return string + string2 + "\n"; >+ } > } >+ >+
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 202267
: 77720