<commit_before>package org.camunda.bpm.modeler.ui.property.tabs.builder;

import org.camunda.bpm.modeler.runtime.engine.model.ModelFactory;
import org.camunda.bpm.modeler.runtime.engine.model.ModelPackage;
import org.camunda.bpm.modeler.runtime.engine.model.ScriptType;
import org.camunda.bpm.modeler.ui.change.filter.AbstractFeatureChangeFilter;
import org.camunda.bpm.modeler.ui.property.tabs.binding.ModelRadioBinding;
import org.camunda.bpm.modeler.ui.property.tabs.binding.StringTextBinding;
import org.camunda.bpm.modeler.ui.property.tabs.binding.change.EAttributeChangeSupport;
import org.camunda.bpm.modeler.ui.property.tabs.radio.Radio.RadioGroup;
import org.camunda.bpm.modeler.ui.property.tabs.util.PropertyUtil;
import org.eclipse.bpmn2.BaseElement;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.emf.transaction.util.TransactionUtil;
import org.eclipse.graphiti.ui.platform.GFPropertySection;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;

/**
 * @author <NAME>
 */
public class CamundaScriptPropertiesBuilder extends AbstractPropertiesBuilder<BaseElement> {
	
	protected static final String SCRIPT_FORMAT_LABEL = "Script Format";
	protected static final String SCRIPT_RESOURCE_LABEL = "Resource";
	protected static final String SCRIPT_LABEL = "Script";
	
	protected static final String EMPTY_STRING = "";
	
	protected static final EStructuralFeature SCRIPT_FORMAT_FEATURE = ModelPackage.eINSTANCE.getScriptType_ScriptFormat();
	protected static final EStructuralFeature SCRIPT_RESOURCE_FEATURE = ModelPackage.eINSTANCE.getScriptType_Resource();
	protected static final EStructuralFeature SCRIPT_TEXT_FEATURE = ModelPackage.eINSTANCE.getScriptType_Text();

	private static final EStructuralFeature[] TYPE_FEATURES = new EStructuralFeature[] { 
		SCRIPT_RESOURCE_FEATURE,
		SCRIPT_TEXT_FEATURE
	};
	
	protected EObject container;
	protected EStructuralFeature scriptFeature;
	protected boolean canDeleteScript;
	
	protected RadioGroup<EStructuralFeature> radioGroup;
	
	public CamundaScriptPropertiesBuilder(Composite parent, GFPropertySection section, BaseElement bo, EObject container, EStructuralFeature scriptFeature) {
		this(parent, section, bo, container, scriptFeature, false);
	}<commit_msg>chore(script): adjust label to "Script Resource"<commit_after>package org.camunda.bpm.modeler.ui.property.tabs.builder;

import org.camunda.bpm.modeler.runtime.engine.model.ModelFactory;
import org.camunda.bpm.modeler.runtime.engine.model.ModelPackage;
import org.camunda.bpm.modeler.runtime.engine.model.ScriptType;
import org.camunda.bpm.modeler.ui.change.filter.AbstractFeatureChangeFilter;
import org.camunda.bpm.modeler.ui.property.tabs.binding.ModelRadioBinding;
import org.camunda.bpm.modeler.ui.property.tabs.binding.StringTextBinding;
import org.camunda.bpm.modeler.ui.property.tabs.binding.change.EAttributeChangeSupport;
import org.camunda.bpm.modeler.ui.property.tabs.radio.Radio.RadioGroup;
import org.camunda.bpm.modeler.ui.property.tabs.util.PropertyUtil;
import org.eclipse.bpmn2.BaseElement;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.emf.transaction.util.TransactionUtil;
import org.eclipse.graphiti.ui.platform.GFPropertySection;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;

/**
 * @author <NAME>
 */
public class CamundaScriptPropertiesBuilder extends AbstractPropertiesBuilder<BaseElement> {
	
	protected static final String SCRIPT_FORMAT_LABEL = "Script Format";
	protected static final String SCRIPT_RESOURCE_LABEL = "Script Resource";
	protected static final String SCRIPT_LABEL = "Script";
	
	protected static final String EMPTY_STRING = "";
	
	protected static final EStructuralFeature SCRIPT_FORMAT_FEATURE = ModelPackage.eINSTANCE.getScriptType_ScriptFormat();
	protected static final EStructuralFeature SCRIPT_RESOURCE_FEATURE = ModelPackage.eINSTANCE.getScriptType_Resource();
	protected static final EStructuralFeature SCRIPT_TEXT_FEATURE = ModelPackage.eINSTANCE.getScriptType_Text();

	private static final EStructuralFeature[] TYPE_FEATURES = new EStructuralFeature[] { 
		SCRIPT_RESOURCE_FEATURE,
		SCRIPT_TEXT_FEATURE
	};
	
	protected EObject container;
	protected EStructuralFeature scriptFeature;
	protected boolean canDeleteScript;
	
	protected RadioGroup<EStructuralFeature> radioGroup;
	
	public CamundaScriptPropertiesBuilder(Composite parent, GFPropertySection section, BaseElement bo, EObject container, EStructuralFeature scriptFeature) {
		this(parent, section, bo, container, scriptFeature, false);
	}
{'fraction_non_alphanumeric': 0.0907527703477264, 'fraction_numerical': 0.00038211692777990065, 'mean_word_length': 6.895927601809955, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3322443', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1547, 'n_words': 272}