View | Details | Raw Unified | Return to bug 111736 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java (-1 / +17 lines)
Lines 42-48 Link Here
42
	private String editHelperAdviceName;
42
	private String editHelperAdviceName;
43
43
44
	/**
44
	/**
45
	 * Constructs a new container descriptor from the configuration element.
45
	 * Constructs a new edit helper advice descriptor from the configuration element.
46
	 * 
46
	 * 
47
	 * @param specialization
47
	 * @param specialization
48
	 *            the configuration element
48
	 *            the configuration element
Lines 57-62 Link Here
57
		this.editHelperAdviceName = editHelperAdviceName;
57
		this.editHelperAdviceName = editHelperAdviceName;
58
		this.specializationDescriptor = specialization;
58
		this.specializationDescriptor = specialization;
59
	}
59
	}
60
	
61
	/**
62
	 * Constructs a new descriptor for the edit helper advice.
63
	 * 
64
	 * @param editHelperAdvice
65
	 *            the edit helper advice
66
	 * @param specialization
67
	 *            the configuration element
68
	 */
69
	public EditHelperAdviceDescriptor(IEditHelperAdvice editHelperAdvice,
70
			SpecializationTypeDescriptor specialization) {
71
72
		this.specializationDescriptor = specialization;
73
		this.editHelperAdviceName = editHelperAdvice.getClass().getName();
74
		this.editHelperAdvice = editHelperAdvice;
75
	}
60
76
61
	/*
77
	/*
62
	 * (non-Javadoc)
78
	 * (non-Javadoc)
(-)src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java (-2 / +4 lines)
Lines 99-109 Link Here
99
	 * @param specializationType the specialization type
99
	 * @param specializationType the specialization type
100
	 */
100
	 */
101
	public SpecializationTypeDescriptor(ISpecializationType specializationType) {
101
	public SpecializationTypeDescriptor(ISpecializationType specializationType) {
102
		
102
103
		super(specializationType);
103
		super(specializationType);
104
		
104
105
		this.containerDescriptor = specializationType.getEContainerDescriptor();
105
		this.containerDescriptor = specializationType.getEContainerDescriptor();
106
		this.editHelperAdvice = specializationType.getEditHelperAdvice();
106
		this.editHelperAdvice = specializationType.getEditHelperAdvice();
107
		this.editHelperAdviceDescriptor = new EditHelperAdviceDescriptor(
108
			editHelperAdvice, this);
107
		this.matcher = specializationType.getMatcher();
109
		this.matcher = specializationType.getMatcher();
108
		this.specializationType = specializationType;
110
		this.specializationType = specializationType;
109
		this.specializedTypeIds = specializationType.getSpecializedTypeIds();
111
		this.specializedTypeIds = specializationType.getSpecializedTypeIds();

Return to bug 111736