You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2016/11/13 16:13:18 UTC
svn commit: r1769512 [13/15] - in /uima/uimaj/branches/experiment-v3-jcas:
uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/
uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/
uimaj-ep-cas-editor/src/main/java/org/apache/ui...
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialog.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialog.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialog.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialog.java Sun Nov 13 16:13:16 2016
@@ -58,18 +58,40 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class MultiResourceSelectionDialog.
+ */
public class MultiResourceSelectionDialog extends ResourcePickerDialog {
+ /** The Constant PATH_SEPARATOR. */
private final static String PATH_SEPARATOR = System.getProperty("path.separator");
+
+ /**
+ * The Class CandidateAndSource.
+ */
private static class CandidateAndSource implements Comparable<CandidateAndSource> {
+
+ /** The candidate. */
String candidate;
+
+ /** The source. */
String source;
+ /**
+ * Instantiates a new candidate and source.
+ *
+ * @param aCandidate the a candidate
+ * @param aSource the a source
+ */
CandidateAndSource(String aCandidate, String aSource) {
candidate = aCandidate;
source = aSource;
}
+ /* (non-Javadoc)
+ * @see java.lang.Object#hashCode()
+ */
@Override
public int hashCode() {
final int prime = 31;
@@ -79,6 +101,9 @@ public class MultiResourceSelectionDialo
return result;
}
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
@Override
public boolean equals(Object obj) {
if (this == obj)
@@ -101,6 +126,10 @@ public class MultiResourceSelectionDialo
return true;
}
+ /* (non-Javadoc)
+ * @see java.lang.Comparable#compareTo(java.lang.Object)
+ */
+ @Override
public int compareTo(CandidateAndSource o) {
int r = o.candidate.compareTo(this.candidate);
if (r == 0) {
@@ -110,16 +139,30 @@ public class MultiResourceSelectionDialo
}
}
+ /** The browse button. */
private Button browseButton; // for browsing the file system
+ /** The import by name UI. */
private Button importByNameUI;
+ /** The import by location UI. */
private Button importByLocationUI;
+ /** The is import by name. */
public boolean isImportByName;
+ /** The editor. */
protected MultiPageEditor editor;
+ /**
+ * Instantiates a new multi resource selection dialog.
+ *
+ * @param parentShell the parent shell
+ * @param rootElement the root element
+ * @param message the message
+ * @param aExcludeDescriptor the a exclude descriptor
+ * @param aEditor the a editor
+ */
public MultiResourceSelectionDialog(Shell parentShell, IAdaptable rootElement, String message,
IPath aExcludeDescriptor, MultiPageEditor aEditor) {
super(parentShell);
@@ -140,6 +183,10 @@ public class MultiResourceSelectionDialo
*/
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.editors.ui.dialogs.ResourcePickerDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
protected Control createDialogArea(Composite parent) {
// page group
Composite composite = (Composite) super.createDialogArea(parent);
@@ -153,6 +200,7 @@ public class MultiResourceSelectionDialo
browseButton.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
browseButton.pack(false);
browseButton.addListener(SWT.MouseUp, new Listener() {
+ @Override
public void handleEvent(Event event) {
FileDialog dialog = new FileDialog(getShell(), /* SWT.OPEN | */
SWT.MULTI);
@@ -199,6 +247,7 @@ public class MultiResourceSelectionDialo
setupResourcesByName();
}
importByLocationUI.addListener(SWT.Selection, new Listener() {
+ @Override
public void handleEvent(Event event) {
if (importByLocationUI.getSelection()) {
isImportByName = false;
@@ -211,6 +260,7 @@ public class MultiResourceSelectionDialo
});
importByNameUI.addListener(SWT.Selection, new Listener() {
+ @Override
public void handleEvent(Event event) {
if (importByNameUI.getSelection()) {
isImportByName = true;
@@ -225,6 +275,9 @@ public class MultiResourceSelectionDialo
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.editors.ui.dialogs.ResourcePickerDialog#setupResourcesByLocation()
+ */
@Override
protected void setupResourcesByLocation() {
if (! isImportByName) {
@@ -232,6 +285,9 @@ public class MultiResourceSelectionDialo
}
}
+ /**
+ * Setup resources by name.
+ */
private void setupResourcesByName() {
resourcesUI.removeAll();
resourcesUI.removeListener(SWT.Expand, this); // remove to prevent
@@ -256,6 +312,10 @@ public class MultiResourceSelectionDialo
browseButton.setEnabled(false);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.editors.ui.dialogs.ResourcePickerDialog#copyValuesFromGUI()
+ */
+ @Override
public void copyValuesFromGUI() {
if (resourcesUI.getSelectionCount() > 0) {
if (importByLocationUI.getSelection()) {
@@ -266,6 +326,11 @@ public class MultiResourceSelectionDialo
}
}
+ /**
+ * Compute by name candidates.
+ *
+ * @return the candidate and source[]
+ */
// some caching - for jars with timestamps
private CandidateAndSource [] computeByNameCandidates() {
String cp;
@@ -301,18 +366,30 @@ public class MultiResourceSelectionDialo
return result;
}
+ /** The only xml. */
private FilenameFilter onlyXml = new FilenameFilter() {
+ @Override
public boolean accept(File dir, String name) {
return name.endsWith(".xml");
}
};
+ /** The only dir. */
private FileFilter onlyDir = new FileFilter() {
+ @Override
public boolean accept(File pathname) {
return pathname.isDirectory();
}
};
+ /**
+ * Adds the class candidates.
+ *
+ * @param dir the dir
+ * @param candidates the candidates
+ * @param prefix the prefix
+ * @param source the source
+ */
private void addClassCandidates(File dir, List<CandidateAndSource> candidates, String prefix, String source) {
if (null == dir) {
return;
@@ -335,9 +412,19 @@ public class MultiResourceSelectionDialo
}
}
+ /** The saw jar. */
private static Map<String, Long> sawJar = new TreeMap<String, Long>();
+
+ /** The cached cs. */
private static Map<String, List<CandidateAndSource>> cachedCs = new TreeMap<String, List<CandidateAndSource>>();
+ /**
+ * Adds the jar candidates.
+ *
+ * @param jarPath the jar path
+ * @param candidates the candidates
+ * @param source the source
+ */
private void addJarCandidates(String jarPath, List<CandidateAndSource> candidates, String source) {
Long fileLastModified = (new File(jarPath)).lastModified();
Long lastModified = sawJar.get(jarPath);
@@ -377,6 +464,11 @@ public class MultiResourceSelectionDialo
candidates.addAll(css);
}
+ /**
+ * Local set result.
+ *
+ * @param list the list
+ */
// This is to avoid synthetic access method warning
protected void localSetResult(ArrayList list) {
setResult(list);
@@ -385,6 +477,7 @@ public class MultiResourceSelectionDialo
/* (non-Javadoc)
* @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#enableOK()
*/
+ @Override
public void enableOK() {
okButton.setEnabled(false); // preset
if (0 < resourcesUI.getSelectionCount()) {
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialogWithFlowOption.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialogWithFlowOption.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialogWithFlowOption.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/MultiResourceSelectionDialogWithFlowOption.java Sun Nov 13 16:13:16 2016
@@ -34,23 +34,36 @@ import org.apache.uima.taeconfigurator.M
import org.apache.uima.taeconfigurator.TAEConfiguratorPlugin;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class MultiResourceSelectionDialogWithFlowOption.
+ */
public class MultiResourceSelectionDialogWithFlowOption extends MultiResourceSelectionDialog {
+ /** The auto add to flow button. */
private Button autoAddToFlowButton;
+ /** The m b auto add to flow. */
private boolean m_bAutoAddToFlow = true;
/**
- * @param parentShell
- * @param rootElement
- * @param message
- * @param excludeDescriptor
+ * Instantiates a new multi resource selection dialog with flow option.
+ *
+ * @param parentShell the parent shell
+ * @param rootElement the root element
+ * @param message the message
+ * @param excludeDescriptor the exclude descriptor
+ * @param editor the editor
*/
public MultiResourceSelectionDialogWithFlowOption(Shell parentShell, IAdaptable rootElement,
String message, IPath excludeDescriptor, MultiPageEditor editor) {
super(parentShell, rootElement, message, excludeDescriptor, editor);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.files.MultiResourceSelectionDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
protected Control createDialogArea(Composite parent) {
Composite composite = (Composite) super.createDialogArea(parent);
@@ -69,12 +82,21 @@ public class MultiResourceSelectionDialo
return composite;
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.Dialog#okPressed()
+ */
+ @Override
protected void okPressed() {
m_bAutoAddToFlow = autoAddToFlowButton.getSelection();
CDEpropertyPage.setAddToFlow(editor.getProject(), m_bAutoAddToFlow ? "true" : "false");
super.okPressed();
}
+ /**
+ * Gets the auto add to flow.
+ *
+ * @return the auto add to flow
+ */
public boolean getAutoAddToFlow() {
return m_bAutoAddToFlow;
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/PickOverrideKeysAndParmName.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/PickOverrideKeysAndParmName.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/PickOverrideKeysAndParmName.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/files/PickOverrideKeysAndParmName.java Sun Nov 13 16:13:16 2016
@@ -44,26 +44,49 @@ import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class PickOverrideKeysAndParmName.
+ */
public class PickOverrideKeysAndParmName extends AbstractDialog {
//private AddParameterDialog parameterDialog = null; // not currently used
+ /** The cp. */
private ConfigurationParameter cp;
+ /** The adding. */
private boolean adding;
+ /** The params UI. */
private Table paramsUI;
+ /** The keys UI. */
private Table keysUI;
+ /** The delegates. */
private Map delegates;
+ /** The delegate key name. */
//returned values
public String delegateKeyName;
+
+ /** The delegate parameter name. */
public String delegateParameterName;
+ /** The cg. */
private ConfigGroup cg;
+ /**
+ * Instantiates a new pick override keys and parm name.
+ *
+ * @param aSection the a section
+ * @param delegateMap the delegate map
+ * @param message the message
+ * @param aCp the a cp
+ * @param aCg the a cg
+ * @param aAdding the a adding
+ */
/*
* Shows 2 side-by-side windows.
*
@@ -86,6 +109,10 @@ public class PickOverrideKeysAndParmName
adding = aAdding; // true if we're adding, not editing
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
protected Control createDialogArea(Composite parent) {
Composite mainArea = (Composite)super.createDialogArea(parent);
@@ -114,6 +141,7 @@ public class PickOverrideKeysAndParmName
/* (non-Javadoc)
* @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#handleEvent(org.eclipse.swt.widgets.Event)
*/
+ @Override
public void handleEvent(Event event) {
if (event.widget == keysUI && event.type == SWT.Selection) {
fillParameterCandidates();
@@ -126,6 +154,9 @@ public class PickOverrideKeysAndParmName
}
}
+ /**
+ * Fill parameter candidates.
+ */
private void fillParameterCandidates() {
paramsUI.setRedraw(false);
paramsUI.removeAll();
@@ -153,6 +184,12 @@ public class PickOverrideKeysAndParmName
}
+ /**
+ * Adds the selected parms.
+ *
+ * @param delegateCpd the delegate cpd
+ * @param keyName the key name
+ */
/*
* Filter overridable parameters to exclude:
* - any that are not in the same set of groups
@@ -196,6 +233,12 @@ public class PickOverrideKeysAndParmName
addSelectedParms(cps.toArray(new ConfigurationParameter[cps.size()]), keyName);
}
+ /**
+ * Adds the selected parms.
+ *
+ * @param parms the parms
+ * @param keyName the key name
+ */
/*
* Filter overridable parameters to exclude:
* - already overridden (can't override same parameter twice)
@@ -232,6 +275,7 @@ public class PickOverrideKeysAndParmName
/* (non-Javadoc)
* @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#copyValuesFromGUI()
*/
+ @Override
public void copyValuesFromGUI() {
delegateKeyName = keysUI.getSelection()[0].getText();
delegateParameterName = paramsUI.getSelection()[0].getText();
@@ -240,6 +284,7 @@ public class PickOverrideKeysAndParmName
/* (non-Javadoc)
* @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#enableOK()
*/
+ @Override
public void enableOK() {
okButton.setEnabled( (0 < keysUI.getSelectionCount()) &&
(0 < paramsUI.getSelectionCount()));
@@ -248,6 +293,7 @@ public class PickOverrideKeysAndParmName
/* (non-Javadoc)
* @see org.apache.uima.taeconfigurator.editors.ui.dialogs.AbstractDialog#isValid()
*/
+ @Override
public boolean isValid() {
return true;
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AbstractModelPart.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AbstractModelPart.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AbstractModelPart.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AbstractModelPart.java Sun Nov 13 16:13:16 2016
@@ -24,24 +24,37 @@ import java.util.Properties;
import org.apache.uima.UIMAFramework;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
/**
+ * The Class AbstractModelPart.
*/
public class AbstractModelPart {
+ /** The Constant casCreateProperties. */
public static final Properties casCreateProperties = new Properties();
static {
casCreateProperties.setProperty(UIMAFramework.CAS_INITIAL_HEAP_SIZE, "200");
}
+ /** The model root. */
protected MultiPageEditor modelRoot;
+ /** The dirty. */
protected boolean dirty;
+ /**
+ * Instantiates a new abstract model part.
+ *
+ * @param pMPE the mpe
+ */
public AbstractModelPart(MultiPageEditor pMPE) {
modelRoot = pMPE;
dirty = true;
}
+ /**
+ * Mark dirty.
+ */
public void markDirty() {
dirty = true;
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AllTypes.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AllTypes.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AllTypes.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/AllTypes.java Sun Nov 13 16:13:16 2016
@@ -26,23 +26,31 @@ import java.util.Map;
import org.apache.uima.cas.CAS;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.TypeSystem;
-import org.apache.uima.resource.ResourceInitializationException;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
/**
* Model part: Map of all defined types Key = string = typename, fully qualified Value = CAS
- * TypeSystem Type object
+ * TypeSystem Type object.
*/
public class AllTypes extends AbstractModelPart {
+ /** The cached result. */
private Map cachedResult;
+ /**
+ * Instantiates a new all types.
+ *
+ * @param pModelRoot the model root
+ */
public AllTypes(MultiPageEditor pModelRoot) {
super(pModelRoot);
cachedResult = new HashMap(modelRoot.INITIAL_SIZE_TYPE_COLLECTIONS);
}
/**
+ * Gets the.
+ *
* @return a map of Types, keyed by type name, including not only types defined in this TAE, but
* also supertypes of said types.
*/
@@ -54,6 +62,9 @@ public class AllTypes extends AbstractMo
return cachedResult;
}
+ /**
+ * Update.
+ */
// create a hash table of all types
private void update() {
cachedResult.clear();
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/BuiltInTypes.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/BuiltInTypes.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/BuiltInTypes.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/BuiltInTypes.java Sun Nov 13 16:13:16 2016
@@ -40,13 +40,16 @@ import org.apache.uima.resource.metadata
import org.apache.uima.taeconfigurator.InternalErrorCDE;
import org.apache.uima.util.CasCreationUtils;
+// TODO: Auto-generated Javadoc
/**
- * Gets and caches an array list of all the built-in tcas types
+ * Gets and caches an array list of all the built-in tcas types.
*/
public class BuiltInTypes extends AbstractModelPart {
+ /** The Constant typeSystem. */
public static final TypeSystem typeSystem;
+ /** The Constant typeDescriptions. */
public static final Map typeDescriptions = new TreeMap();
static {
@@ -92,6 +95,9 @@ public class BuiltInTypes extends Abstra
}
}
+ /**
+ * Instantiates a new built in types.
+ */
BuiltInTypes() {
super(null);
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/ConfigGroup.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/ConfigGroup.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/ConfigGroup.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/ConfigGroup.java Sun Nov 13 16:13:16 2016
@@ -26,30 +26,49 @@ import org.apache.uima.taeconfigurator.I
import org.apache.uima.taeconfigurator.editors.ui.AbstractSection;
import org.apache.uima.taeconfigurator.editors.ui.AbstractSectionParm;
+// TODO: Auto-generated Javadoc
/**
* Instances of this class model the 3 varients of configuration parameter sets.
*
*/
public class ConfigGroup {
+ /** The cpd. */
private ConfigurationParameterDeclarations cpd;
+ /** The kind. */
private int kind;
+ /** The named cg. */
private ConfigurationGroup namedCg = null;
+ /** The Constant NOT_IN_ANY_GROUP. */
public final static int NOT_IN_ANY_GROUP = 1;
+ /** The Constant COMMON. */
public final static int COMMON = 2;
+ /** The Constant NAMED_GROUP. */
public final static int NAMED_GROUP = 4;
+ /**
+ * Instantiates a new config group.
+ *
+ * @param aCpd the a cpd
+ * @param aKind the a kind
+ */
public ConfigGroup(ConfigurationParameterDeclarations aCpd, int aKind) {
cpd = aCpd;
kind = aKind;
fixupCpd();
}
+ /**
+ * Instantiates a new config group.
+ *
+ * @param aCpd the a cpd
+ * @param aNamedCg the a named cg
+ */
public ConfigGroup(ConfigurationParameterDeclarations aCpd, ConfigurationGroup aNamedCg) {
cpd = aCpd;
kind = NAMED_GROUP;
@@ -57,6 +76,9 @@ public class ConfigGroup {
fixupCpd();
}
+ /**
+ * Fixup cpd.
+ */
private void fixupCpd() {
if (null == cpd.getConfigurationParameters())
cpd.setConfigurationParameters(AbstractSection.configurationParameterArray0);
@@ -71,6 +93,11 @@ public class ConfigGroup {
}
}
+ /**
+ * Gets the config parms.
+ *
+ * @return the config parms
+ */
public ConfigurationParameter[] getConfigParms() {
switch (kind) {
case NOT_IN_ANY_GROUP:
@@ -84,6 +111,11 @@ public class ConfigGroup {
}
}
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
public String getName() {
switch (kind) {
case NOT_IN_ANY_GROUP:
@@ -97,6 +129,11 @@ public class ConfigGroup {
}
}
+ /**
+ * Gets the name array.
+ *
+ * @return the name array
+ */
public String[] getNameArray() {
switch (kind) {
case NOT_IN_ANY_GROUP:
@@ -110,16 +147,31 @@ public class ConfigGroup {
}
}
+ /**
+ * Sets the name array.
+ *
+ * @param names the new name array
+ */
public void setNameArray(String[] names) {
if (kind != NAMED_GROUP)
throw new InternalErrorCDE("invalid call");
namedCg.setNames(names);
}
+ /**
+ * Gets the kind.
+ *
+ * @return the kind
+ */
public int getKind() {
return kind;
}
+ /**
+ * Gets the cpd.
+ *
+ * @return the cpd
+ */
public ConfigurationParameterDeclarations getCPD() {
return cpd;
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DefinedTypesWithSupers.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DefinedTypesWithSupers.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DefinedTypesWithSupers.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DefinedTypesWithSupers.java Sun Nov 13 16:13:16 2016
@@ -29,20 +29,29 @@ import org.apache.uima.resource.metadata
import org.apache.uima.resource.metadata.TypeSystemDescription;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
/**
* Model part: names of the defined types, augmented with their supertypes This means that some of
* the built-ins (those in the super chain) will be included.
*/
public class DefinedTypesWithSupers extends AbstractModelPart {
+ /** The cached result. */
private Set cachedResult;
+ /**
+ * Instantiates a new defined types with supers.
+ *
+ * @param pModelRoot the model root
+ */
public DefinedTypesWithSupers(MultiPageEditor pModelRoot) {
super(pModelRoot);
cachedResult = new HashSet(modelRoot.INITIAL_SIZE_TYPE_COLLECTIONS);
}
/**
+ * Gets the.
+ *
* @return a set of strings, including not only types defined in this TAE, but also supertypes of
* said types.
*/
@@ -54,6 +63,9 @@ public class DefinedTypesWithSupers exte
return cachedResult;
}
+ /**
+ * Update.
+ */
private void update() {
cachedResult.clear();
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorMetaData.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorMetaData.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorMetaData.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorMetaData.java Sun Nov 13 16:13:16 2016
@@ -22,18 +22,30 @@ package org.apache.uima.taeconfigurator.
import org.apache.uima.taeconfigurator.InternalErrorCDE;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
/**
* Instances of this class model the varients of getting and setting metadata.
*
*/
public class DescriptorMetaData {
+ /** The editor. */
private MultiPageEditor editor;
+ /**
+ * Instantiates a new descriptor meta data.
+ *
+ * @param editor the editor
+ */
public DescriptorMetaData(MultiPageEditor editor) {
this.editor = editor;
}
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
public String getName() {
if (editor.isLocalProcessingDescriptor())
return editor.getAeDescription().getMetaData().getName();
@@ -48,6 +60,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Sets the name.
+ *
+ * @param name the new name
+ */
public void setName(String name) {
if (editor.isLocalProcessingDescriptor())
editor.getAeDescription().getMetaData().setName(name);
@@ -63,6 +80,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Gets the version.
+ *
+ * @return the version
+ */
public String getVersion() {
if (editor.isLocalProcessingDescriptor())
return editor.getAeDescription().getMetaData().getVersion();
@@ -77,6 +99,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Sets the version.
+ *
+ * @param name the new version
+ */
public void setVersion(String name) {
if (editor.isLocalProcessingDescriptor())
editor.getAeDescription().getMetaData().setVersion(name);
@@ -92,6 +119,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Gets the vendor.
+ *
+ * @return the vendor
+ */
public String getVendor() {
if (editor.isLocalProcessingDescriptor())
return editor.getAeDescription().getMetaData().getVendor();
@@ -106,6 +138,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Sets the vendor.
+ *
+ * @param name the new vendor
+ */
public void setVendor(String name) {
if (editor.isLocalProcessingDescriptor())
editor.getAeDescription().getMetaData().setVendor(name);
@@ -121,6 +158,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Gets the description.
+ *
+ * @return the description
+ */
public String getDescription() {
if (editor.isLocalProcessingDescriptor())
return editor.getAeDescription().getMetaData().getDescription();
@@ -135,6 +177,11 @@ public class DescriptorMetaData {
throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Sets the description.
+ *
+ * @param name the new description
+ */
public void setDescription(String name) {
if (editor.isAeDescriptor() || editor.isLocalProcessingDescriptor())
editor.getAeDescription().getMetaData().setDescription(name);
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorTCAS.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorTCAS.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorTCAS.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/DescriptorTCAS.java Sun Nov 13 16:13:16 2016
@@ -27,18 +27,30 @@ import org.apache.uima.resource.metadata
import org.apache.uima.taeconfigurator.InternalErrorCDE;
import org.apache.uima.taeconfigurator.editors.MultiPageEditor;
+// TODO: Auto-generated Javadoc
/**
- * Model part: CAS corresponding to the descriptor being edited
+ * Model part: CAS corresponding to the descriptor being edited.
*/
public class DescriptorTCAS extends AbstractModelPart {
+ /** The cached result. */
private CAS cachedResult;
+ /**
+ * Instantiates a new descriptor TCAS.
+ *
+ * @param modelRoot the model root
+ */
public DescriptorTCAS(MultiPageEditor modelRoot) {
super(modelRoot);
}
+ /**
+ * Validate.
+ *
+ * @throws ResourceInitializationException the resource initialization exception
+ */
public void validate() throws ResourceInitializationException {
AnalysisEngineDescription ae = (AnalysisEngineDescription) modelRoot.getAeDescription().clone();
@@ -67,6 +79,8 @@ public class DescriptorTCAS extends Abst
}
/**
+ * Gets the.
+ *
* @return a CAS for the model descriptor
*/
public CAS get() {
@@ -76,11 +90,19 @@ public class DescriptorTCAS extends Abst
return cachedResult;
}
+ /**
+ * Sets the.
+ *
+ * @param tcas the tcas
+ */
public void set(CAS tcas) {
cachedResult = tcas;
dirty = false;
}
+ /**
+ * Update.
+ */
private void update() {
try {
validate();
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/FlowNodes.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/FlowNodes.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/FlowNodes.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/model/FlowNodes.java Sun Nov 13 16:13:16 2016
@@ -23,16 +23,24 @@ import org.apache.uima.analysis_engine.m
import org.apache.uima.analysis_engine.metadata.FixedFlow;
import org.apache.uima.analysis_engine.metadata.FlowConstraints;
+// TODO: Auto-generated Javadoc
/**
* Instances of this class model the varients of flow nodes in a uniform way.
*
*/
public class FlowNodes {
+ /** The fixed flow. */
private FixedFlow fixedFlow;
+ /** The capability language flow. */
private CapabilityLanguageFlow capabilityLanguageFlow;
+ /**
+ * Instantiates a new flow nodes.
+ *
+ * @param flow the flow
+ */
public FlowNodes(FlowConstraints flow) {
if (flow instanceof FixedFlow)
fixedFlow = (FixedFlow) flow;
@@ -41,6 +49,11 @@ public class FlowNodes {
// can be null if omitted
}
+ /**
+ * Gets the flow.
+ *
+ * @return the flow
+ */
public String[] getFlow() {
if (fixedFlow != null)
return fixedFlow.getFixedFlow();
@@ -50,6 +63,11 @@ public class FlowNodes {
// throw new InternalErrorCDE("invalid state");
}
+ /**
+ * Sets the flow.
+ *
+ * @param newFlow the new flow
+ */
public void setFlow(String[] newFlow) {
if (fixedFlow != null) {
fixedFlow.setFixedFlow(newFlow);
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizard.java Sun Nov 13 16:13:16 2016
@@ -52,6 +52,7 @@ import org.eclipse.ui.part.FileEditorInp
import org.apache.uima.taeconfigurator.InternalErrorCDE;
import org.apache.uima.taeconfigurator.TAEConfiguratorPlugin;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -73,15 +74,18 @@ public abstract class AbstractNewWizard
// 4 = implname element name (implementationName or annotatorImplementationName
// 5 = "<primitive>true</primitive>\n"
+ /** The Constant XMLNS_PART. */
// for explanation of this strange code, see JDK bug 6447475 found by findbugs
public final static String XMLNS_PART;
static {XMLNS_PART = "xmlns=\"http://uima.apache.org/resourceSpecifier\"";}
+ /** The Constant COMMON_HEADER. */
public final static String COMMON_HEADER;
static {COMMON_HEADER =
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
+ "<{2} " + XMLNS_PART + ">\n";}
+ /** The Constant COMMON_NDVV. */
public final static String COMMON_NDVV;
static {COMMON_NDVV =
" <name>{0}</name>\n" // 1 = name of component (e.g. type name, type priority name, ae descriptor name)
@@ -89,6 +93,7 @@ public abstract class AbstractNewWizard
+ " <version>1.0</version>\n"
+ " <vendor></vendor>\n";}
+ /** The Constant COMMON_FULL_DESCRIPTOR. */
public final static String COMMON_FULL_DESCRIPTOR;
static {COMMON_FULL_DESCRIPTOR =
COMMON_HEADER
@@ -115,6 +120,7 @@ public abstract class AbstractNewWizard
+ "</{2}>"
;}
+ /** The common partial descriptor. */
public static String COMMON_PARTIAL_DESCRIPTOR;
static {COMMON_PARTIAL_DESCRIPTOR =
COMMON_HEADER
@@ -122,12 +128,20 @@ public abstract class AbstractNewWizard
+ "{1}"
+ "</{2}>\n";}
+ /** The page. */
protected AbstractNewWizardPage page;
+ /** The selection. */
protected ISelection selection;
+ /** The window title. */
private String windowTitle;
+ /**
+ * Instantiates a new abstract new wizard.
+ *
+ * @param windowTitle the window title
+ */
public AbstractNewWizard(String windowTitle) {
super();
setDialogSettings(TAEConfiguratorPlugin.getDefault().getDialogSettings());
@@ -144,11 +158,15 @@ public abstract class AbstractNewWizard
/**
* Called when 'Finish' button is pressed in the wizard. Create an operation and run it using
* wizard as execution context.
+ *
+ * @return true, if successful
*/
+ @Override
public boolean performFinish() {
final String containerName = page.getContainerName();
final String fileName = page.getFileName();
IRunnableWithProgress op = new IRunnableWithProgress() {
+ @Override
public void run(IProgressMonitor monitor) throws InvocationTargetException {
try {
doFinish(containerName, fileName, monitor);
@@ -171,8 +189,22 @@ public abstract class AbstractNewWizard
return true;
}
+ /**
+ * Gets the prototype descriptor.
+ *
+ * @param name the name
+ * @return the prototype descriptor
+ */
public abstract String getPrototypeDescriptor(String name);
+ /**
+ * Do finish.
+ *
+ * @param containerName the container name
+ * @param fileName the file name
+ * @param monitor the monitor
+ * @throws CoreException the core exception
+ */
void doFinish(String containerName, String fileName, IProgressMonitor monitor)
throws CoreException {
// create a sample file
@@ -224,6 +256,7 @@ public abstract class AbstractNewWizard
monitor.worked(1);
monitor.setTaskName("Starting editor for new descriptor...");
getShell().getDisplay().asyncExec(new Runnable() {
+ @Override
public void run() {
IWorkbenchPage page1 = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
try {
@@ -235,11 +268,21 @@ public abstract class AbstractNewWizard
monitor.worked(2);
}
+ /**
+ * Throw core exception.
+ *
+ * @param message the message
+ * @throws CoreException the core exception
+ */
private void throwCoreException(String message) throws CoreException {
IStatus status = new Status(IStatus.ERROR, "DescEditor", IStatus.OK, message, null);
throw new CoreException(status);
}
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+ */
+ @Override
public void init(IWorkbench workbench, IStructuredSelection pSelection) {
selection = pSelection;
setWindowTitle(windowTitle);
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/AbstractNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -26,6 +26,7 @@ import org.eclipse.core.runtime.IAdaptab
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -42,16 +43,33 @@ import org.eclipse.ui.dialogs.ContainerS
import org.apache.uima.taeconfigurator.TAEConfiguratorPlugin;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class AbstractNewWizardPage.
+ */
public abstract class AbstractNewWizardPage extends WizardPage {
+ /** The selection. */
protected ISelection selection;
+ /** The container text. */
protected Text containerText;
+ /** The file text. */
protected Text fileText;
+ /** The default new name. */
private String defaultNewName;
+ /**
+ * Instantiates a new abstract new wizard page.
+ *
+ * @param pSelection the selection
+ * @param image the image
+ * @param title the title
+ * @param description the description
+ * @param defaultNewName the default new name
+ */
public AbstractNewWizardPage(ISelection pSelection, String image, String title,
String description, String defaultNewName) {
super("wizardPage");
@@ -63,6 +81,10 @@ public abstract class AbstractNewWizardP
this.defaultNewName = defaultNewName;
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
@@ -76,6 +98,7 @@ public abstract class AbstractNewWizardP
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
containerText.setLayoutData(gd);
containerText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
dialogChanged();
}
@@ -84,6 +107,7 @@ public abstract class AbstractNewWizardP
Button button = new Button(container, SWT.PUSH);
button.setText("Browse...");
button.addSelectionListener(new SelectionAdapter() {
+ @Override
public void widgetSelected(SelectionEvent e) {
handleBrowse();
}
@@ -95,6 +119,7 @@ public abstract class AbstractNewWizardP
gd = new GridData(GridData.FILL_HORIZONTAL);
fileText.setLayoutData(gd);
fileText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
dialogChanged();
}
@@ -104,6 +129,9 @@ public abstract class AbstractNewWizardP
setControl(container);
}
+ /**
+ * Initialize.
+ */
private void initialize() {
if (selection != null && selection.isEmpty() == false
@@ -129,10 +157,13 @@ public abstract class AbstractNewWizardP
fileText.setText(defaultNewName);
}
+ /**
+ * Handle browse.
+ */
void handleBrowse() {
ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin
.getWorkspace().getRoot(), false, "Select a containing folder");
- if (dialog.open() == ContainerSelectionDialog.OK) {
+ if (dialog.open() == Window.OK) {
Object[] result = dialog.getResult();
if (result.length == 1) {
containerText.setText(((Path) result[0]).toOSString());
@@ -140,6 +171,9 @@ public abstract class AbstractNewWizardP
}
}
+ /**
+ * Dialog changed.
+ */
void dialogChanged() {
String container = getContainerName();
String fileName = getFileName();
@@ -163,14 +197,29 @@ public abstract class AbstractNewWizardP
updateStatus(null);
}
+ /**
+ * Gets the container name.
+ *
+ * @return the container name
+ */
public String getContainerName() {
return containerText.getText();
}
+ /**
+ * Gets the file name.
+ *
+ * @return the file name
+ */
public String getFileName() {
return fileText.getText();
}
+ /**
+ * Update status.
+ *
+ * @param message the message
+ */
private void updateStatus(String message) {
setErrorMessage(message);
setPageComplete(message == null);
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,15 +33,26 @@ import org.eclipse.ui.INewWizard;
public class CasConsumerNewWizard extends AbstractNewWizard implements INewWizard {
+ /**
+ * Instantiates a new cas consumer new wizard.
+ */
public CasConsumerNewWizard() {
super("Cas Consumer Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new CasConsumerNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(COMMON_FULL_DESCRIPTOR,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasConsumerNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class CasConsumerNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new cas consumer new wizard page.
+ *
+ * @param selection the selection
+ */
public CasConsumerNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Cas Consumer Descriptor File",
"Create a new Cas Consumer Descriptor file", "casConsumerDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,15 +33,26 @@ import org.eclipse.ui.INewWizard;
public class CasInitializerNewWizard extends AbstractNewWizard implements INewWizard {
+ /**
+ * Instantiates a new cas initializer new wizard.
+ */
public CasInitializerNewWizard() {
super("Cas Initializer Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new CasInitializerNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(COMMON_FULL_DESCRIPTOR,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CasInitializerNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class CasInitializerNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new cas initializer new wizard page.
+ *
+ * @param selection the selection
+ */
public CasInitializerNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Cas Initializer Descriptor File",
"Create a new Cas Initializer Descriptor file", "casInitializerDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,15 +33,26 @@ import org.eclipse.ui.INewWizard;
public class CollectionReaderNewWizard extends AbstractNewWizard implements INewWizard {
+ /**
+ * Instantiates a new collection reader new wizard.
+ */
public CollectionReaderNewWizard() {
super("Collection Reader Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new CollectionReaderNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(COMMON_FULL_DESCRIPTOR,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/CollectionReaderNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class CollectionReaderNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new collection reader new wizard page.
+ *
+ * @param selection the selection
+ */
public CollectionReaderNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Collection Reader Descriptor File",
"Create a new Collection Reader Descriptor file", "collectionReaderDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -36,15 +37,26 @@ import org.eclipse.ui.INewWizard;
public class FlowControllerNewWizard extends AbstractNewWizard implements INewWizard {
+ /**
+ * Instantiates a new flow controller new wizard.
+ */
public FlowControllerNewWizard() {
super("New Flow Controller Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new FlowControllerNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(COMMON_FULL_DESCRIPTOR,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FlowControllerNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class FlowControllerNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new flow controller new wizard page.
+ *
+ * @param selection the selection
+ */
public FlowControllerNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Flow Controller Descriptor File",
"Create a new Flow Controller Descriptor file", "flowControllerDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,6 +33,7 @@ import org.eclipse.ui.INewWizard;
public class FsIndexCollectionNewWizard extends AbstractNewWizard implements INewWizard {
+ /** The Constant FSINDEXCOLLECTION_TEMPLATE. */
public static final String FSINDEXCOLLECTION_TEMPLATE =
MessageFormat.format(COMMON_PARTIAL_DESCRIPTOR,
"{0}", // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
@@ -47,15 +49,26 @@ public class FsIndexCollectionNewWizard
// + "<vendor></vendor>\n"
// + "{1}" + "</fsIndexCollection>\n";
- public FsIndexCollectionNewWizard() {
+ /**
+ * Instantiates a new fs index collection new wizard.
+ */
+public FsIndexCollectionNewWizard() {
super("New Index Collection Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new FsIndexCollectionNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(FSINDEXCOLLECTION_TEMPLATE,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/FsIndexCollectionNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class FsIndexCollectionNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new fs index collection new wizard page.
+ *
+ * @param selection the selection
+ */
public FsIndexCollectionNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Index Collection Descriptor File",
"Create a new Index Collection Descriptor file", "indexCollectionDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,6 +33,7 @@ import org.eclipse.ui.INewWizard;
public class ResourceManagerConfigurationNewWizard extends AbstractNewWizard implements INewWizard {
+ /** The Constant RESOURCEMANGERCONFIGURATION_TEMPLATE. */
public static final String RESOURCEMANGERCONFIGURATION_TEMPLATE =
MessageFormat.format(COMMON_PARTIAL_DESCRIPTOR,
"{0}", // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
@@ -47,15 +49,26 @@ public class ResourceManagerConfiguratio
// + "{1}"
// + "</resourceManagerConfiguration>\n";
- public ResourceManagerConfigurationNewWizard() {
+ /**
+ * Instantiates a new resource manager configuration new wizard.
+ */
+public ResourceManagerConfigurationNewWizard() {
super("External Resource and Bindings (Resource Manager Configuration) Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new ResourceManagerConfigurationNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(RESOURCEMANGERCONFIGURATION_TEMPLATE,
name,
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/ResourceManagerConfigurationNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class ResourceManagerConfigurationNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new resource manager configuration new wizard page.
+ *
+ * @param selection the selection
+ */
public ResourceManagerConfigurationNewWizardPage(ISelection selection) {
super(
selection,
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -36,15 +37,26 @@ import org.eclipse.ui.INewWizard;
public class TAEConfiguratorNewWizard extends AbstractNewWizard implements INewWizard {
+ /**
+ * Instantiates a new TAE configurator new wizard.
+ */
public TAEConfiguratorNewWizard() {
super("New Analysis Engine Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new TAEConfiguratorNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(COMMON_FULL_DESCRIPTOR,
name, // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TAEConfiguratorNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class TAEConfiguratorNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new TAE configurator new wizard page.
+ *
+ * @param selection the selection
+ */
public TAEConfiguratorNewWizardPage(ISelection selection) {
super(selection, "big_ae.gif", "Analysis Engine (AE) Descriptor File",
"Create a new AE Descriptor File", "aeDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,6 +33,7 @@ import org.eclipse.ui.INewWizard;
public class TypePrioritiesNewWizard extends AbstractNewWizard implements INewWizard {
+ /** The Constant TYPEPRIORITIES_TEMPLATE. */
public static final String TYPEPRIORITIES_TEMPLATE =
MessageFormat.format(COMMON_PARTIAL_DESCRIPTOR,
"{0}", // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
@@ -48,15 +50,26 @@ public class TypePrioritiesNewWizard ext
// + "<vendor></vendor>\n"
// + "{1}" + "</typePriorities>\n";
- public TypePrioritiesNewWizard() {
+ /**
+ * Instantiates a new type priorities new wizard.
+ */
+ public TypePrioritiesNewWizard() {
super("New Type Priorities Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new TypePrioritiesNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(TYPEPRIORITIES_TEMPLATE,
name,
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypePrioritiesNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class TypePrioritiesNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new type priorities new wizard page.
+ *
+ * @param selection the selection
+ */
public TypePrioritiesNewWizardPage(ISelection selection) {
super(selection, "big_t_s_.gif", "Type Priorities Descriptor File",
"Create a new Type Priorities Descriptor file", "typePrioritiesDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizard.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizard.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizard.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizard.java Sun Nov 13 16:13:16 2016
@@ -23,6 +23,7 @@ import java.text.MessageFormat;
import org.eclipse.ui.INewWizard;
+// TODO: Auto-generated Javadoc
/**
* Create a new file resource in the provided container. If the container resource (a folder or a
* project) is selected in the workspace when the wizard is opened, it will accept it as the target
@@ -32,6 +33,7 @@ import org.eclipse.ui.INewWizard;
public class TypeSystemNewWizard extends AbstractNewWizard implements INewWizard {
+ /** The Constant TYPESYSTEM_TEMPLATE. */
public static final String TYPESYSTEM_TEMPLATE =
MessageFormat.format(COMMON_PARTIAL_DESCRIPTOR,
"{0}", // 0 = name of component (e.g. type name, type priority name, ae descriptor name)
@@ -43,15 +45,26 @@ public class TypeSystemNewWizard extends
// + "<description></description>\n" + "<version>1.0</version>\n" + "<vendor></vendor>\n"
// + "{1}" + "</typeSystemDescription>\n";
- public TypeSystemNewWizard() {
+ /**
+ * Instantiates a new type system new wizard.
+ */
+public TypeSystemNewWizard() {
super("New Type System Descriptor File");
}
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.wizard.Wizard#addPages()
+ */
+ @Override
public void addPages() {
page = new TypeSystemNewWizardPage(selection);
addPage(page);
}
+ /* (non-Javadoc)
+ * @see org.apache.uima.taeconfigurator.wizards.AbstractNewWizard#getPrototypeDescriptor(java.lang.String)
+ */
+ @Override
public String getPrototypeDescriptor(String name) {
return MessageFormat.format(TYPESYSTEM_TEMPLATE,
name, " <types></types>\n");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizardPage.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizardPage.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizardPage.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-configurator/src/main/java/org/apache/uima/taeconfigurator/wizards/TypeSystemNewWizardPage.java Sun Nov 13 16:13:16 2016
@@ -21,6 +21,7 @@ package org.apache.uima.taeconfigurator.
import org.eclipse.jface.viewers.ISelection;
+// TODO: Auto-generated Javadoc
/**
* The "New" wizard page allows setting the container for the new file as well as the file name.
* Will only accept file name without the extension OR with the extension that matches the expected
@@ -29,6 +30,11 @@ import org.eclipse.jface.viewers.ISelect
public class TypeSystemNewWizardPage extends AbstractNewWizardPage {
+ /**
+ * Instantiates a new type system new wizard page.
+ *
+ * @param selection the selection
+ */
public TypeSystemNewWizardPage(ISelection selection) {
super(selection, "big_t_s_.gif", "Type System Descriptor File",
"Create a new Type System Descriptor file", "typeSystemDescriptor.xml");
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-debug/src/main/java/org/apache/uima/ep_debug/DebugPlugin.java Sun Nov 13 16:13:16 2016
@@ -25,15 +25,19 @@ import org.eclipse.jdt.internal.debug.ui
import org.eclipse.ui.IStartup;
import org.osgi.framework.BundleContext;
+// TODO: Auto-generated Javadoc
/**
* The main plugin class to be used in the desktop.
*/
public class DebugPlugin extends Plugin implements IStartup {
+ /** The Constant PREF_ALREADY_SET_PREF_SHOW_DETAILS. */
public static final String PREF_ALREADY_SET_PREF_SHOW_DETAILS = "org.apache.uima.ep_debug.already_set_pref_show_details";
+ /** The Constant ALREADY_SET_PREF_SHOW_DETAILS. */
public static final String ALREADY_SET_PREF_SHOW_DETAILS = "already_set_pref_show_details";
+ /** The plugin. */
// The shared instance.
private static DebugPlugin plugin;
@@ -45,8 +49,12 @@ public class DebugPlugin extends Plugin
}
/**
- * This method is called upon plug-in activation
+ * This method is called upon plug-in activation.
+ *
+ * @param context the context
+ * @throws Exception the exception
*/
+ @Override
public void start(BundleContext context) throws Exception {
super.start(context);
// Intent of next code
@@ -72,8 +80,12 @@ public class DebugPlugin extends Plugin
}
/**
- * This method is called when the plug-in is stopped
+ * This method is called when the plug-in is stopped.
+ *
+ * @param context the context
+ * @throws Exception the exception
*/
+ @Override
public void stop(BundleContext context) throws Exception {
super.stop(context);
plugin = null;
@@ -81,13 +93,19 @@ public class DebugPlugin extends Plugin
/**
* Returns the shared instance.
+ *
+ * @return the default
*/
public static DebugPlugin getDefault() {
return plugin;
}
// this method is required by the Startup extension, which, in turn, is required
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IStartup#earlyStartup()
+ */
// to get the plugin started (no other event gets it started)
+ @Override
public void earlyStartup() {
}
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/EP_LogThrowErrorImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/EP_LogThrowErrorImpl.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/EP_LogThrowErrorImpl.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/EP_LogThrowErrorImpl.java Sun Nov 13 16:13:16 2016
@@ -25,8 +25,13 @@ import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class EP_LogThrowErrorImpl.
+ */
public class EP_LogThrowErrorImpl implements IError {
+ /** The log levels. */
private static int logLevels[] = { IStatus.INFO, IStatus.WARNING, IStatus.ERROR };
/*
@@ -34,6 +39,7 @@ public class EP_LogThrowErrorImpl implem
*
* @see org.apache.uima.jcas.jcasgen_gen.IError#newError(int, java.lang.String)
*/
+ @Override
public void newError(int severity, String message, Exception exception) {
String pluginId = JgPlugin.getUniqueIdentifier();
ILog log = JgPlugin.getDefault().getLog();
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPlugin.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPlugin.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPlugin.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPlugin.java Sun Nov 13 16:13:16 2016
@@ -23,13 +23,17 @@ import org.eclipse.core.resources.IWorks
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Plugin;
+// TODO: Auto-generated Javadoc
/**
* The main plugin class to be used in the desktop.
*/
public class JgPlugin extends Plugin {
+
+ /** The plugin. */
// The shared instance.
private static JgPlugin plugin;
+ /** The Constant JCASGEN_ID. */
public static final String JCASGEN_ID = "org.apache.uima.jcas.jcasgenp"; //$NON-NLS-1$
/**
@@ -43,6 +47,8 @@ public class JgPlugin extends Plugin {
/**
* Returns the shared instance.
+ *
+ * @return the default
*/
public static JgPlugin getDefault() {
return plugin;
@@ -50,6 +56,8 @@ public class JgPlugin extends Plugin {
/**
* Returns the workspace instance.
+ *
+ * @return the workspace
*/
public static IWorkspace getWorkspace() {
return ResourcesPlugin.getWorkspace();
@@ -57,6 +65,8 @@ public class JgPlugin extends Plugin {
/**
* Convenience method which returns the unique identifier of this plugin.
+ *
+ * @return the unique identifier
*/
public static String getUniqueIdentifier() {
return JCASGEN_ID;
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPluginRunner.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPluginRunner.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPluginRunner.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/JgPluginRunner.java Sun Nov 13 16:13:16 2016
@@ -27,6 +27,7 @@ import org.eclipse.core.runtime.CoreExce
import org.eclipse.core.runtime.IPlatformRunnable;
import org.eclipse.core.runtime.IProgressMonitor;
+// TODO: Auto-generated Javadoc
/**
* Class holds type plugin-wide collections and static methods. Also implements the runnable that is
* called to do the processing
@@ -34,15 +35,23 @@ import org.eclipse.core.runtime.IProgres
public class JgPluginRunner implements IPlatformRunnable {
+ /**
+ * Instantiates a new jg plugin runner.
+ */
public JgPluginRunner() {
}
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Object)
+ */
+ @Override
public Object run(Object object) {
try {
final String[] arguments = (String[]) object;
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
final Jg jg = new Jg();
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
+ @Override
public void run(IProgressMonitor progressMonitor) throws CoreException {
jg.main0(arguments, new MergerImpl(), null, // no progressMonitor,
new EP_LogThrowErrorImpl());
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/MergerImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/MergerImpl.java?rev=1769512&r1=1769511&r2=1769512&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/MergerImpl.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-ep-jcasgen/src/main/java/org/apache/uima/jcas/jcasgenp/MergerImpl.java Sun Nov 13 16:13:16 2016
@@ -30,11 +30,22 @@ import org.eclipse.emf.codegen.jmerge.JC
import org.eclipse.emf.codegen.jmerge.JMerger;
import org.eclipse.jdt.core.jdom.IDOMCompilationUnit;
+// TODO: Auto-generated Javadoc
+/**
+ * The Class MergerImpl.
+ */
public class MergerImpl implements org.apache.uima.tools.jcasgen.IMerge {
+
+ /** The Constant jControlModel. */
static final String jControlModel = "jMergeCtl.xml";
+ /** The j control model instance. */
static JControlModel jControlModelInstance = null;
+ /* (non-Javadoc)
+ * @see org.apache.uima.tools.jcasgen.IMerge#doMerge(org.apache.uima.tools.jcasgen.Jg, org.apache.uima.tools.jcasgen.IProgressMonitor, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.io.File)
+ */
+ @Override
public void doMerge(Jg jg, IProgressMonitor progressMonitor, String sourceContents,
String targetContainer, String targetPath, String targetClassName, File targetFile)
throws IOException {