import java.util.Properties;
import java.util.logging.*;
import java.io.*;
+
import org.json.*;
+import org.apache.commons.lang3.StringEscapeUtils;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.action.*;
return view.isAnnotatingForeground();
}
-
private String getText(Tool a) {
return props.getProperty(getKey(a, "text"));
}
}
}
-
private void execute(Tool a, Event e) {
switch (a) {
case Foreground:
if(array.getJSONObject(i).getString("match_type").trim().equals("synonym"))
{
listElement = (array.getJSONObject(i).getString("match")+" {"+array.getJSONObject(i).getString("is_synonym_of")+"}");
+ listElement = StringEscapeUtils.unescapeHtml4(listElement);
comboLabel.add(listElement,i);
}
else if(array.getJSONObject(i).getString("match_type").equals("term"))
{
listElement = array.getJSONObject(i).getString("match");
+ listElement = StringEscapeUtils.unescapeHtml4(listElement);
comboLabel.add(listElement,i);
}
}
private ImageData maskData;
private Image maskImage;
-
-
+
public String getName() {
return "Foreground Only";
}
// Paint mask
createVisibleMask(ctx.getMask());
gc.drawImage(maskImage, 0, 0);
-
+
// Commit changes
im.endPaint();
}