@Test public void testGetTags() { assertThat( editor.getTags(), is( arrayContainingInAnyOrder( correctTypes ) ) ); }
public String[] getTags() { final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes(); final String[] tags = new String[datas.length]; for ( int i = 0; i < datas.length; i++ ) { final ElementMetaData data = datas[i]; tags[i] = data.getName(); } return tags; }
ElementTypePropertyEditor implements PropertyEditor { public String[] getTags() { final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes(); final String[] tags = new String[datas.length]; for ( int i = 0; i < datas.length; i++ ) { final ElementMetaData data = datas[i]; tags[i] = data.getName(); } return tags; } }
ElementTypePropertyEditor implements PropertyEditor { public String[] getTags() { final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes(); final String[] tags = new String[datas.length]; for ( int i = 0; i < datas.length; i++ ) { final ElementMetaData data = datas[i]; tags[i] = data.getName(); } return tags; } ElementTypePropertyEditor(); }
ElementTypePropertyEditor implements PropertyEditor { public String[] getTags() { final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes(); final String[] tags = new String[datas.length]; for ( int i = 0; i < datas.length; i++ ) { final ElementMetaData data = datas[i]; tags[i] = data.getName(); } return tags; } ElementTypePropertyEditor(); void setValue( final Object value ); Object getValue(); boolean isPaintable(); void paintValue( final Graphics gfx, final Rectangle box ); String getJavaInitializationString(); String getAsText(); void setAsText( final String text ); String[] getTags(); Component getCustomEditor(); boolean supportsCustomEditor(); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener ); }
ElementTypePropertyEditor implements PropertyEditor { public String[] getTags() { final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes(); final String[] tags = new String[datas.length]; for ( int i = 0; i < datas.length; i++ ) { final ElementMetaData data = datas[i]; tags[i] = data.getName(); } return tags; } ElementTypePropertyEditor(); void setValue( final Object value ); Object getValue(); boolean isPaintable(); void paintValue( final Graphics gfx, final Rectangle box ); String getJavaInitializationString(); String getAsText(); void setAsText( final String text ); String[] getTags(); Component getCustomEditor(); boolean supportsCustomEditor(); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener );  }