Skip to content

Commit

Permalink
source updates
Browse files Browse the repository at this point in the history
  • Loading branch information
smokemaker committed Nov 15, 2018
1 parent 5414c3e commit 4bf28ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package ru.neodoc.content.codegen.sdoc2.extension;

import java.util.Arrays;
import java.util.List;

import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;

Expand All @@ -8,8 +11,8 @@
public class SdocCodegenExtensionWrapper implements IConfigurationWrapper<SdocCodegenExtensionInfo> {

@Override
public SdocCodegenExtensionInfo create(IExtension extension, IConfigurationElement element) {
return new SdocCodegenExtensionInfo(extension, element);
public List<SdocCodegenExtensionInfo> create(IExtension extension, IConfigurationElement element) {
return Arrays.asList(new SdocCodegenExtensionInfo[] {new SdocCodegenExtensionInfo(extension, element)});
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public String getAnnotation(AbstractWrapper baseWrapper) {

@Override
public String getAnnotation(StereotypedElement stereotypedElement) {
return getAnnotation(WrapperFactory.get(stereotypedElement));
return getAnnotation((AbstractWrapper)WrapperFactory.get(stereotypedElement));
}

@Override
Expand All @@ -294,7 +294,7 @@ public Set<String> getAnnotationImports(AbstractWrapper baseWrapper) {

@Override
public Set<String> getAnnotationImports(StereotypedElement stereotypedElement) {
return getAnnotationImports(WrapperFactory.get(stereotypedElement));
return getAnnotationImports((AbstractWrapper)WrapperFactory.get(stereotypedElement));
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package ru.neodoc.content.codegen;

import java.util.Arrays;
import java.util.List;

import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;

Expand All @@ -8,8 +11,8 @@
public class SourceCodeGeneratorInfoWrapper implements IConfigurationWrapper<SourceCodeGeneratorInfo>{

@Override
public SourceCodeGeneratorInfo create(IExtension extension, IConfigurationElement element) {
return new SourceCodeGeneratorInfo(extension, element);
public List<SourceCodeGeneratorInfo> create(IExtension extension, IConfigurationElement element) {
return Arrays.asList(new SourceCodeGeneratorInfo[] {new SourceCodeGeneratorInfo(extension, element)});
}

}

0 comments on commit 4bf28ab

Please sign in to comment.