@@ -85,7 +85,6 @@ public void evaluate(DataFromPoint dataFromPoint){
8585 | IllegalArgumentException | InvocationTargetException e ) {
8686 e .printStackTrace ();
8787 // TODO Handle Exception
88- // TODO Handle Exception
8988 throw new IllegalStateException ();
9089 }
9190 }
@@ -112,40 +111,6 @@ public boolean canProvideInformationToDataFromPoint(
112111
113112 return instance != null ;
114113 }
115-
116- @ Override
117- public void saveToElement (Element rootElement , Document doc ) {
118- super .saveToElement (rootElement , doc );
119- // build the structure
120- Element main = doc .createElement ("classconstructorcomponent" );
121- Element className = doc .createElement ("classname" );
122- Element constructorInfoElem = doc
123- .createElement ("constructorinfo" );
124-
125- main .appendChild (className );
126- main .appendChild (constructorInfoElem );
127- rootElement .appendChild (main );
128-
129- // store the class name in the classname element
130- className .setTextContent (displayingConstructor .getDeclaringClass ().getName ());
131-
132- // this approach connot deal with arrays and primitives
133- // //store a list of constructor types in constructorParamType element
134- // Class[] parameterTypes = displayingConstructor.getParameterTypes();
135- // for (Class type : parameterTypes) {
136- // Element typeElem = doc.createElement("typename");
137- // typeElem.appendChild(doc.createTextNode(type.getName()));
138- // constructorParamType.appendChild(typeElem);
139- // }
140-
141- /* Index approach */
142- constructorInfoElem
143- .setAttribute ("index" ,
144- Integer .toString (Arrays .asList (this .displayingConstructor
145- .getDeclaringClass ().getConstructors ())
146- .indexOf (displayingConstructor )));
147-
148- }
149114
150115 public ClassConstructorPaintComponent (Element rootElement ,
151116 PaintPanel panel ) {
0 commit comments