Skip to content

Commit

Permalink
AMP-30300 allow to disable aggrement code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeanquin-dg committed Oct 1, 2021
1 parent 7c2ad6b commit 30efa8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,31 @@
import org.dgfoundation.amp.onepager.yui.AmpAutocompleteFieldPanel;

/**
*
* @author [email protected]
* @since Nov 14, 2012
*
*/

public class AutocompleteAcronymTitleModel extends Model<String>{
public class AutocompleteAcronymTitleModel extends Model<String> {
private static final long serialVersionUID = 1L;
private IModel<String> acronymModel;
private IModel<String> titleModel;
private String nullText;

public AutocompleteAcronymTitleModel(IModel<String> acronymModel, IModel<String> titleModel, String nullText) {
this.acronymModel = acronymModel;
this.titleModel = titleModel;
this.nullText = nullText;
}

public String getObject() {
String ret = "";
if ((acronymModel == null || acronymModel.getObject() == null) && titleModel.getObject() == null) {
return nullText;
}
if (acronymModel != null){

if (acronymModel != null && acronymModel.getObject() != null) {
ret = ret + AmpAutocompleteFieldPanel.ACRONYM_DELIMITER_START +
acronymModel.getObject() +
acronymModel.getObject() +
AmpAutocompleteFieldPanel.ACRONYM_DELIMITER_STOP;
}
ret = ret + titleModel.getObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public static void recordNewPatchesInDir(String appPath, File dir,
}
continue;
}
if(f.getName().endsWith(".class")){
/*if(f.getName().endsWith(".class")){
continue;
}
}*/
if (patchNames.contains(f.getName())) {

AmpXmlPatch patch = patchesMap.get(f.getName());
Expand Down

0 comments on commit 30efa8a

Please sign in to comment.