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 28038 Details for
Bug 111736
Edit helper advice is not available when specialization type is registered in code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for org.eclipse.gmf.runtime.emf.type.core
org.eclipse.gmf.runtime.emf.type.core patch.txt (text/plain), 3.22 KB, created by
Linda Damus
on 2005-10-07 11:59:48 EDT
(
hide
)
Description:
Patch for org.eclipse.gmf.runtime.emf.type.core
Filename:
MIME Type:
Creator:
Linda Damus
Created:
2005-10-07 11:59:48 EDT
Size:
3.22 KB
patch
obsolete
>Index: src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java >=================================================================== >RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.emf.type.core/src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java,v >retrieving revision 1.2 >diff -u -r1.2 EditHelperAdviceDescriptor.java >--- src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java 12 Sep 2005 21:26:55 -0000 1.2 >+++ src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java 7 Oct 2005 15:58:05 -0000 >@@ -42,21 +42,32 @@ > private String editHelperAdviceName; > > /** >- * Constructs a new container descriptor from the configuration element. >+ * Constructs a new edit helper advice descriptor from the configuration element. > * > * @param specialization > * the configuration element >- * @throws CoreException >- * when the configuration element does not contain the required >- * elements and attributes > */ > public EditHelperAdviceDescriptor(String editHelperAdviceName, >- SpecializationTypeDescriptor specialization) >- throws CoreException { >+ SpecializationTypeDescriptor specialization) { > > this.editHelperAdviceName = editHelperAdviceName; > this.specializationDescriptor = specialization; > } >+ >+ /** >+ * Constructs a new descriptor for the edit helper advice. >+ * >+ * @param editHelperAdvice >+ * the edit helper advice >+ * @param specialization >+ * the configuration element >+ */ >+ public EditHelperAdviceDescriptor(IEditHelperAdvice editHelperAdvice, >+ SpecializationTypeDescriptor specialization) { >+ >+ this(editHelperAdvice.getClass().getName(), specialization); >+ this.editHelperAdvice = editHelperAdvice; >+ } > > /* > * (non-Javadoc) >Index: src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java >=================================================================== >RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.emf.type.core/src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java,v >retrieving revision 1.2 >diff -u -r1.2 SpecializationTypeDescriptor.java >--- src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java 12 Sep 2005 21:26:55 -0000 1.2 >+++ src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java 7 Oct 2005 15:58:06 -0000 >@@ -99,11 +99,13 @@ > * @param specializationType the specialization type > */ > public SpecializationTypeDescriptor(ISpecializationType specializationType) { >- >+ > super(specializationType); >- >+ > this.containerDescriptor = specializationType.getEContainerDescriptor(); > this.editHelperAdvice = specializationType.getEditHelperAdvice(); >+ this.editHelperAdviceDescriptor = new EditHelperAdviceDescriptor( >+ editHelperAdvice, this); > this.matcher = specializationType.getMatcher(); > this.specializationType = specializationType; > this.specializedTypeIds = specializationType.getSpecializedTypeIds();
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 111736
:
28032
|
28034
| 28038