package com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.sml;

import com.google.gwt.core.shared.GWT;
import com.sensia.relaxNG.RNGElement;
import com.sensia.relaxNG.RNGTag;
import com.sensia.tools.client.swetools.editors.sensorml.panels.IPanel;
import com.sensia.tools.client.swetools.editors.sensorml.panels.line.AbstractGenericLinePanel;

public class SMLEditAxisPanel extends AbstractGenericLinePanel<RNGElement>{

	public SMLEditAxisPanel(RNGElement tag) {
		super(tag);
	}

	@Override
	protected void addInnerElement(IPanel<? extends RNGTag> element) {
		if(element.getName().equals("definition")) {
			defPanel.add(element.getPanel());
		} else if(element.getName().equals("name")){
			labelPanel.add(element.getPanel());
			GWT.log(""+element.getClass());
		} else if(element.getName().equals("label")){
			labelPanel.add(element.getPanel());
		} 
	}
}

@@ -750,43 +750,8 @@
 ));%0A
-%09%09%09GWT.log(%22%22+element.getClass());%0A
 %09%09%7D 
@@ -837,14 +837,103 @@
 ));%0A%09%09%7D 
+else %7B%0A%09%09%09// should be RNGValue or RNGData%0A%09%09%09afterDotsPanel.add(element.getPanel());%0A%09%09%7D
 %0A%09%7D%0A%7D%0A

Add missing value for sml:axis