Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
#899 removed BaseFeatureHelper, added as operation to GeneratorEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmuelder committed Aug 12, 2016
1 parent abfd280 commit b752546
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
* @author Johannes Dicks - Initial contribution and API
*
*/
public class DebugFeatureHelperImpl extends BaseSGenFeatureHelper implements IDebugFeatureHelper {
public class DebugFeatureHelperImpl implements IDebugFeatureHelper {

@Override
public boolean isDumpSexec(GeneratorEntry entry) {
FeatureParameterValue dumpSexec = getFeatureParameter(entry, DEBUG_FEATURE, DEBUG_FEATURE_DUMP_SEXEC);
FeatureParameterValue dumpSexec = entry.getFeatureParameterValue(DEBUG_FEATURE, DEBUG_FEATURE_DUMP_SEXEC);
if (dumpSexec == null) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,27 @@
/**
* @author Johannes Dicks - Initial contribution and API
*/
public class OutletFeatureHelperImpl extends BaseSGenFeatureHelper implements IOutletFeatureHelper {
public class OutletFeatureHelperImpl implements IOutletFeatureHelper {

@Override
public FeatureParameterValue getTargetFolderValue(GeneratorEntry entry) {
return getFeatureParameter(entry, OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_TARGET_FOLDER);
return entry.getFeatureParameterValue(OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_TARGET_FOLDER);
}

@Override
public FeatureParameterValue getLibraryTargetFolderValue(GeneratorEntry entry) {
return getFeatureParameter(entry, OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_LIBRARY_TARGET_FOLDER);
return entry.getFeatureParameterValue(OUTLET_FEATURE,
ICoreFeatureConstants.OUTLET_FEATURE_LIBRARY_TARGET_FOLDER);
}

@Override
public FeatureParameterValue getApiTargetFolderValue(GeneratorEntry entry) {
return getFeatureParameter(entry, OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_API_TARGET_FOLDER);
return entry.getFeatureParameterValue(OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_API_TARGET_FOLDER);
}

@Override
public FeatureParameterValue getTargetProjectValue(GeneratorEntry entry) {
return getFeatureParameter(entry, OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_TARGET_PROJECT);
return entry.getFeatureParameterValue(OUTLET_FEATURE, ICoreFeatureConstants.OUTLET_FEATURE_TARGET_PROJECT);
}

@Override
Expand All @@ -55,7 +56,7 @@ public String getRelativeLibraryFolder(GeneratorEntry entry) {
String libraryFolderName = getLibraryTargetFolderValue(entry).getStringValue();
return projectFolderName + Path.SEPARATOR + libraryFolderName;
}

@Override
public String getRelativeApiFolder(GeneratorEntry entry) {
String projectFolderName = getTargetProjectValue(entry).getStringValue();
Expand Down

0 comments on commit b752546

Please sign in to comment.