You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/08/12 13:00:51 UTC

svn commit: r1157047 [25/27] - in /uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide: ./ .settings/ META-INF/ icons/ schema/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/uima/ src/main/java/org...

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.text.completion;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.apache.uima.textmarker.ide.ui.templates.TextMarkerTemplateCompletionProcessor;
+import org.eclipse.dltk.core.CompletionProposal;
+import org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalCollector;
+import org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer;
+import org.eclipse.dltk.ui.text.completion.ScriptContentAssistInvocationContext;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.text.templates.TemplateCompletionProcessor;
+
+public class TextMarkerTypeCompletionProposalComputer extends ScriptCompletionProposalComputer {
+
+  @Override
+  protected ScriptCompletionProposalCollector createCollector(
+          ScriptContentAssistInvocationContext context) {
+    ScriptCompletionProposalCollector collector = new TextMarkerCompletionProposalCollector(
+            context.getSourceModule());
+
+    collector.setIgnored(CompletionProposal.FIELD_REF, true);
+    collector.setIgnored(CompletionProposal.KEYWORD, true);
+    collector.setIgnored(CompletionProposal.LABEL_REF, true);
+    collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF, true);
+    collector.setIgnored(CompletionProposal.METHOD_DECLARATION, true);
+    collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, true);
+    collector.setIgnored(CompletionProposal.METHOD_REF, true);
+    collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, true);
+    collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, true);
+
+    collector.setIgnored(CompletionProposal.TYPE_REF, false);
+
+    IPreferenceStore preferenceStore = TextMarkerIdePlugin.getDefault().getPreferenceStore();
+
+    return collector;
+  }
+
+  @Override
+  protected TemplateCompletionProcessor createTemplateProposalComputer(
+          ScriptContentAssistInvocationContext context) {
+    return new TextMarkerTemplateCompletionProcessor(context);
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/completion/TextMarkerTypeCompletionProposalComputer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.text.folding;
+
+import org.eclipse.osgi.util.NLS;
+
+public final class TextMarkerFoldingMessages extends NLS {
+
+  private static final String BUNDLE_NAME = "org.apache.uima.textmarker.ide.ui.text.folding.TextMarkerFoldingMessages";//$NON-NLS-1$
+
+  private TextMarkerFoldingMessages() {
+  }
+
+  public static String DefaultFoldingPreferenceBlock_headers;
+
+  public static String DefaultFoldingPreferenceBlock_innerTypes;
+
+  public static String DefaultFoldingPreferenceBlock_methods;
+
+  public static String TextMarkerFoldingPreferenceBlock_0;
+
+  public static String TextMarkerFoldingPreferenceBlock_10;
+
+  public static String TextMarkerFoldingPreferenceBlock_11;
+
+  public static String TextMarkerFoldingPreferenceBlock_12;
+
+  public static String TextMarkerFoldingPreferenceBlock_13;
+
+  public static String TextMarkerFoldingPreferenceBlock_14;
+
+  public static String TextMarkerFoldingPreferenceBlock_15;
+
+  public static String TextMarkerFoldingPreferenceBlock_16;
+
+  public static String TextMarkerFoldingPreferenceBlock_2;
+
+  public static String TextMarkerFoldingPreferenceBlock_3;
+
+  public static String TextMarkerFoldingPreferenceBlock_4;
+
+  public static String TextMarkerFoldingPreferenceBlock_6;
+
+  static {
+    NLS.initializeMessages(BUNDLE_NAME, TextMarkerFoldingMessages.class);
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties Fri Aug 12 11:00:38 2011
@@ -0,0 +1,34 @@
+# ***************************************************************
+#  * Licensed to the Apache Software Foundation (ASF) under one
+#  * or more contributor license agreements.  See the NOTICE file
+#  * distributed with this work for additional information
+#  * regarding copyright ownership.  The ASF licenses this file
+#  * to you under the Apache License, Version 2.0 (the
+#  * "License"); you may not use this file except in compliance
+#  * with the License.  You may obtain a copy of the License at
+#  * 
+#  * http://www.apache.org/licenses/LICENSE-2.0
+#  * 
+#  * Unless required by applicable law or agreed to in writing,
+#  * software distributed under the License is distributed on an
+#  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  * KIND, either express or implied.  See the License for the
+#  * specific language governing permissions and limitations
+#  * under the License.
+# ***************************************************************
+
+TextMarkerFoldingPreferenceBlock_0=Add
+TextMarkerFoldingPreferenceBlock_2=You may use only english letters and _.
+TextMarkerFoldingPreferenceBlock_3=Add block
+TextMarkerFoldingPreferenceBlock_4=Enter name of block ("if" for example)
+TextMarkerFoldingPreferenceBlock_6=Remove
+TextMarkerFoldingPreferenceBlock_10=Block folding
+TextMarkerFoldingPreferenceBlock_11=Off
+TextMarkerFoldingPreferenceBlock_12=Fold all blocks except following:
+TextMarkerFoldingPreferenceBlock_13=Fold only following blocks:
+TextMarkerFoldingPreferenceBlock_14=Comments
+TextMarkerFoldingPreferenceBlock_15=Join comments divided by empty lines
+TextMarkerFoldingPreferenceBlock_16=Initially fold
+DefaultFoldingPreferenceBlock_methods=&Procedures and other blocks
+DefaultFoldingPreferenceBlock_innerTypes=&Namespaces
+DefaultFoldingPreferenceBlock_headers=&Header Comments

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,318 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui.text.folding;
+
+import java.util.ArrayList;
+
+import org.apache.uima.textmarker.ide.ui.TextMarkerPreferenceConstants;
+import org.eclipse.dltk.ui.PreferenceConstants;
+import org.eclipse.dltk.ui.preferences.AbstractConfigurationBlock;
+import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore;
+import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore.OverlayKey;
+import org.eclipse.dltk.ui.preferences.PreferencesMessages;
+import org.eclipse.dltk.ui.text.folding.IFoldingPreferenceBlock;
+import org.eclipse.dltk.ui.util.PixelConverter;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.IInputValidator;
+import org.eclipse.jface.dialogs.InputDialog;
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ListViewer;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+
+
+public class TextMarkerFoldingPreferenceBlock extends AbstractConfigurationBlock implements
+        IFoldingPreferenceBlock {
+
+  protected class ListBlock {
+    private ListViewer fList;
+
+    private String fKey;
+
+    private Button fAddButton;
+
+    private Button fRemoveButton;
+
+    public ListBlock(Composite parent, String key) {
+      fKey = key;
+      createControl(parent);
+    }
+
+    private Control createControl(Composite parent) {
+      Font font = parent.getFont();
+      Composite comp = new Composite(parent, SWT.NONE);
+      GridLayout topLayout = new GridLayout();
+      topLayout.numColumns = 2;
+      topLayout.marginHeight = 0;
+      topLayout.marginWidth = 0;
+      comp.setLayout(topLayout);
+      GridData gd = new GridData(GridData.FILL_BOTH);
+      comp.setLayoutData(gd);
+      fList = new ListViewer(comp);
+      gd = new GridData(GridData.FILL_BOTH);
+      gd.heightHint = 6;
+      fList.getControl().setLayoutData(gd);
+      Composite pathButtonComp = new Composite(comp, SWT.NONE);
+      GridLayout pathButtonLayout = new GridLayout();
+      pathButtonLayout.marginHeight = 0;
+      pathButtonLayout.marginWidth = 0;
+      pathButtonComp.setLayout(pathButtonLayout);
+      gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_FILL);
+      pathButtonComp.setLayoutData(gd);
+      pathButtonComp.setFont(font);
+      fAddButton = createPushButton(pathButtonComp,
+              TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_0);
+      fAddButton.addSelectionListener(new SelectionListener() {
+        public void widgetDefaultSelected(SelectionEvent e) {
+        }
+
+        public void widgetSelected(SelectionEvent e) {
+          IInputValidator validator = new IInputValidator() {
+            public String isValid(String newText) {
+              if (newText.trim().length() > 0 && newText.matches("[_a-zA-Z]*")) //$NON-NLS-1$
+                return null;
+              return TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_2;
+            }
+          };
+          InputDialog dlg = new InputDialog(null,
+                  TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_3,
+                  TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_4, "", validator);
+          if (dlg.open() == Window.OK) {
+            fList.add(dlg.getValue());
+            save();
+          }
+        }
+      });
+      fRemoveButton = createPushButton(pathButtonComp,
+              TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_6);
+      fRemoveButton.addSelectionListener(new SelectionListener() {
+        public void widgetDefaultSelected(SelectionEvent e) {
+        }
+
+        public void widgetSelected(SelectionEvent e) {
+          ISelection s = fList.getSelection();
+          if (s instanceof IStructuredSelection) {
+            IStructuredSelection sel = (IStructuredSelection) s;
+            fList.remove(sel.toArray());
+            save();
+          }
+        }
+      });
+      return comp;
+    }
+
+    protected Button createPushButton(Composite parent, String label) {
+      Button button = new Button(parent, SWT.PUSH);
+      button.setFont(parent.getFont());
+      if (label != null) {
+        button.setText(label);
+      }
+      GridData gd = new GridData();
+      button.setLayoutData(gd);
+      gd.widthHint = getButtonWidthHint(button);
+      gd.horizontalAlignment = GridData.FILL;
+      return button;
+    }
+
+    /**
+     * Returns a width hint for a button control.
+     */
+    public int getButtonWidthHint(Button button) {
+      button.setFont(JFaceResources.getDialogFont());
+      PixelConverter converter = new PixelConverter(button);
+      int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
+      return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
+    }
+
+    private String[] getEntries() {
+      return fList.getList().getItems();
+    }
+
+    private void setEntries(String items[]) {
+      fList.remove(fList.getList().getItems());
+      for (int i = 0; i < items.length; i++) {
+        if (items[i].trim().length() > 0)
+          fList.add(items[i]);
+      }
+    }
+
+    public void save() {
+      String items[] = getEntries();
+      StringBuffer buf = new StringBuffer();
+      for (int i = 0; i < items.length; i++) {
+        buf.append(items[i]);
+        if (i != items.length - 1)
+          buf.append(","); //$NON-NLS-1$
+      }
+      getPreferenceStore().setValue(fKey, buf.toString());
+    }
+
+    public void initialize() {
+      String val = getPreferenceStore().getString(fKey);
+      if (val != null) {
+        String items[] = val.split(","); //$NON-NLS-1$
+        setEntries(items);
+      }
+
+    }
+
+    public void performDefault() {
+      String val = getPreferenceStore().getDefaultString(fKey);
+      if (val != null) {
+        String items[] = val.split(","); //$NON-NLS-1$
+        setEntries(items);
+      }
+    }
+  }
+
+  private ListBlock fExcludePatterns;
+
+  private ListBlock fIncludePatterns;
+
+  private OverlayPreferenceStore fOverlayStore;
+
+  private OverlayKey[] fKeys;
+
+  public TextMarkerFoldingPreferenceBlock(OverlayPreferenceStore store,
+          PreferencePage mainPreferencePage) {
+    super(store, mainPreferencePage);
+    fOverlayStore = store;
+    fKeys = createKeys();
+    fOverlayStore.addKeys(fKeys);
+  }
+
+  private OverlayKey[] createKeys() {
+    ArrayList overlayKeys = new ArrayList();
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.INT,
+            PreferenceConstants.EDITOR_FOLDING_LINES_LIMIT));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INCLUDE_LIST));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.STRING,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_EXCLUDE_LIST));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_BLOCKS));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_COMMENTS));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_NAMESPACES));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN,
+            PreferenceConstants.EDITOR_COMMENTS_FOLDING_ENABLED));
+    overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_COMMENTS_WITH_NEWLINES));
+    OverlayPreferenceStore.OverlayKey[] keys = new OverlayPreferenceStore.OverlayKey[overlayKeys
+            .size()];
+    overlayKeys.toArray(keys);
+    return keys;
+  }
+
+  public Control createControl(Composite composite) {
+    Composite inner = new Composite(composite, SWT.NONE);
+    GridLayout layout = new GridLayout();
+    layout.numColumns = 1;
+    inner.setLayout(layout);
+
+    Composite blockFolding = createSubsection(inner, null,
+            TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_10);
+    blockFolding.setLayout(new GridLayout());
+
+    addRadioButton(blockFolding, TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_11,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_OFF);
+    addRadioButton(blockFolding, TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_12,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_EXCLUDE);
+    fExcludePatterns = new ListBlock(blockFolding,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_EXCLUDE_LIST);
+    addRadioButton(blockFolding, TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_13,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_INCLUDE);
+    fIncludePatterns = new ListBlock(blockFolding,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INCLUDE_LIST);
+
+    IInputValidator val = new IInputValidator() {
+
+      public String isValid(String number) {
+        if (number.length() == 0) {
+          return PreferencesMessages.DLTKEditorPreferencePage_empty_input;
+        } else {
+          try {
+            int value = Integer.parseInt(number);
+            if (value < 2)
+              return "You may input numbers >= 2.";
+          } catch (NumberFormatException e) {
+            return "Input is not a number";
+          }
+        }
+        return null;
+      }
+
+    };
+
+    addLabelledTextField(blockFolding, "Minimal amount of lines to be folded(>=2):",
+            PreferenceConstants.EDITOR_FOLDING_LINES_LIMIT, 3, 1, true, val);
+
+    Composite commentFolding = createSubsection(inner, null,
+            TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_14);
+    commentFolding.setLayout(new GridLayout());
+
+    addCheckBox(commentFolding, TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_15,
+            PreferenceConstants.EDITOR_COMMENTS_FOLDING_ENABLED, 0);
+
+    Composite initialFolding = createSubsection(inner, null,
+            TextMarkerFoldingMessages.TextMarkerFoldingPreferenceBlock_16);
+    initialFolding.setLayout(new GridLayout());
+
+    addCheckBox(initialFolding, TextMarkerFoldingMessages.DefaultFoldingPreferenceBlock_headers,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_COMMENTS, 0);
+    addCheckBox(initialFolding, TextMarkerFoldingMessages.DefaultFoldingPreferenceBlock_innerTypes,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_NAMESPACES, 0);
+    addCheckBox(initialFolding, TextMarkerFoldingMessages.DefaultFoldingPreferenceBlock_methods,
+            TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_BLOCKS, 0);
+
+    return inner;
+  }
+
+  @Override
+  public void initialize() {
+    super.initialize();
+    fExcludePatterns.initialize();
+    fIncludePatterns.initialize();
+  }
+
+  @Override
+  public void performDefaults() {
+    super.performDefaults();
+    fExcludePatterns.performDefault();
+    fIncludePatterns.performDefault();
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingPreferenceBlock.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,300 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.text.folding;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.apache.uima.textmarker.ide.core.TextMarkerNature;
+import org.apache.uima.textmarker.ide.parser.ast.TextMarkerStatement;
+import org.apache.uima.textmarker.ide.ui.TextMarkerPartitions;
+import org.apache.uima.textmarker.ide.ui.TextMarkerPreferenceConstants;
+import org.apache.uima.textmarker.ide.ui.text.TextMarkerPartitionScanner;
+import org.eclipse.core.runtime.ILog;
+import org.eclipse.dltk.ast.ASTNode;
+import org.eclipse.dltk.ast.declarations.MethodDeclaration;
+import org.eclipse.dltk.ast.declarations.ModuleDeclaration;
+import org.eclipse.dltk.ast.declarations.TypeDeclaration;
+import org.eclipse.dltk.ast.parser.ISourceParser;
+import org.eclipse.dltk.ast.references.SimpleReference;
+import org.eclipse.dltk.ast.statements.Statement;
+import org.eclipse.dltk.core.DLTKLanguageManager;
+import org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.text.Region;
+import org.eclipse.jface.text.rules.IPartitionTokenScanner;
+
+public class TextMarkerFoldingStructureProvider extends AbstractASTFoldingStructureProvider {
+
+  // ~ Instance fields
+
+  private List fBlockExcludeList = new ArrayList();
+
+  /* preferences */
+  private int fBlockFolding = 0;
+
+  private List fBlockIncludeList = new ArrayList();
+
+  private boolean fInitCollapseBlocks = true;
+
+  private boolean fInitCollapseComments = true;
+
+  private boolean fInitCollapseNamespaces = true;
+
+  // ~ Methods
+
+  @Override
+  protected CodeBlock[] getCodeBlocks(String code, int offset) {
+    /*
+     * if an ASTVisitor implementation is created for this, just override getFoldingVisitor() and
+     * remove this method
+     */
+    ISourceParser pp = null;
+    pp = DLTKLanguageManager.getSourceParser(TextMarkerNature.NATURE_ID);
+    ModuleDeclaration md = pp.parse(null, code.toCharArray(), null);
+    List statements = md.getStatements();
+    if (statements == null) {
+      return new CodeBlock[0];
+    }
+
+    List result = new ArrayList();
+    traverse(result, statements, offset, code);
+
+    return (CodeBlock[]) result.toArray(new CodeBlock[result.size()]);
+  }
+
+  private void checkStatement(String code, int offset, List result, Statement sst) {
+    if (sst instanceof TextMarkerStatement) {
+      TextMarkerStatement statement = (TextMarkerStatement) sst;
+      result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
+              .sourceEnd() - statement.sourceStart())));
+
+      Iterator si = statement.getExpressions().iterator();
+      // while (si.hasNext()) {
+      // Expression ex = (Expression) si.next();
+      // if (ex instanceof BlockDeclaration) {
+      // BlockDeclaration be = (BlockDeclaration) ex;
+      // try {
+      // String newContents = code.substring(
+      // be.sourceStart() + 1, be.sourceEnd() - 1);
+      // CodeBlock[] cb = getCodeBlocks(newContents, offset
+      // + be.sourceStart() + 1);
+      // for (int j = 0; j < cb.length; j++) {
+      // result.add(cb[j]);
+      // }
+      // } catch (StringIndexOutOfBoundsException e) {
+      // }
+      // }
+      // }
+    }
+  }
+
+  private void traverse(List result, List statements, int offset, String code) {
+    for (Iterator iterator = statements.iterator(); iterator.hasNext();) {
+      ASTNode node = (ASTNode) iterator.next();
+      if (node instanceof TextMarkerStatement) {
+        checkStatement(code, offset, result, (Statement) node);
+      } else if (node instanceof TypeDeclaration) {
+        TypeDeclaration statement = (TypeDeclaration) node;
+        result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
+                .sourceEnd() - statement.sourceStart())));
+        traverse(result, statement.getStatements(), offset, code);
+      } else if (node instanceof MethodDeclaration) {
+        MethodDeclaration statement = (MethodDeclaration) node;
+        result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
+                .sourceEnd() - statement.sourceStart())));
+        traverse(result, statement.getStatements(), offset, code);
+      }
+    }
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getCommentPartition()
+   */
+  @Override
+  protected String getCommentPartition() {
+    return TextMarkerPartitions.TM_COMMENT;
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getLog()
+   */
+  @Override
+  protected ILog getLog() {
+    return TextMarkerIdePlugin.getDefault().getLog();
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getPartition()
+   */
+  @Override
+  protected String getPartition() {
+    return TextMarkerPartitions.TM_PARTITIONING;
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getPartitionScanner()
+   */
+  @Override
+  protected IPartitionTokenScanner getPartitionScanner() {
+    return new TextMarkerPartitionScanner();
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getPartitionTypes()
+   */
+  @Override
+  protected String[] getPartitionTypes() {
+    return TextMarkerPartitions.TM_PARTITION_TYPES;
+  }
+
+  /*
+   * @see org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#getNatureId()
+   */
+  @Override
+  protected String getNatureId() {
+    return TextMarkerNature.NATURE_ID;
+  }
+
+  /*
+   * @see
+   * org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#initializePreferences(
+   * org.eclipse.jface.preference.IPreferenceStore)
+   */
+  @Override
+  protected void initializePreferences(IPreferenceStore store) {
+    super.initializePreferences(store);
+    fBlockFolding = store.getInt(TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS);
+
+    String t = store.getString(TextMarkerPreferenceConstants.EDITOR_FOLDING_EXCLUDE_LIST);
+    String[] items = t.split(",");
+    fBlockExcludeList.clear();
+    for (int i = 0; i < items.length; i++) {
+      if (items[i].trim().length() > 0) {
+        fBlockExcludeList.add(items[i]);
+      }
+    }
+
+    t = store.getString(TextMarkerPreferenceConstants.EDITOR_FOLDING_INCLUDE_LIST);
+    items = t.split(",");
+    fBlockIncludeList.clear();
+    for (int i = 0; i < items.length; i++) {
+      if (items[i].trim().length() > 0) {
+        fBlockIncludeList.add(items[i]);
+      }
+    }
+
+    fFoldNewLines = store
+            .getBoolean(TextMarkerPreferenceConstants.EDITOR_FOLDING_COMMENTS_WITH_NEWLINES);
+    fInitCollapseBlocks = store
+            .getBoolean(TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_BLOCKS);
+    fInitCollapseComments = store
+            .getBoolean(TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_COMMENTS);
+    fInitCollapseNamespaces = store
+            .getBoolean(TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_NAMESPACES);
+  }
+
+  @Override
+  protected boolean initiallyCollapse(ASTNode s, FoldingStructureComputationContext ctx) {
+    if (s instanceof TextMarkerStatement) {
+      TextMarkerStatement statement = (TextMarkerStatement) s;
+      if (!(statement.getAt(0) instanceof SimpleReference)) {
+        return false;
+      }
+
+      String name = null;
+      name = ((SimpleReference) statement.getAt(0)).getName();
+      if (name.equals("namespace")) {
+        return ctx.allowCollapsing() && fInitCollapseNamespaces;
+      }
+
+      return ctx.allowCollapsing() && fInitCollapseBlocks;
+    }
+
+    return false;
+  }
+
+  /*
+   * @see
+   * org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#initiallyCollapseComments
+   * (org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.
+   * FoldingStructureComputationContext)
+   */
+  protected boolean initiallyCollapseComments(FoldingStructureComputationContext ctx) {
+    return ctx.allowCollapsing() && fInitCollapseComments;
+  }
+
+  /*
+   * @see
+   * org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider#mayCollapse(org.eclipse
+   * .dltk.ast.statements.Statement,
+   * org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider
+   * .FoldingStructureComputationContext)
+   */
+  protected boolean canFold(String name) {
+    switch (fBlockFolding) {
+      case TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_OFF: {
+        if (name.equals("proc") || name.equals("namespace")) {
+          return true;
+        }
+
+        return false;
+      }
+      case TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_INCLUDE: {
+        if (fBlockIncludeList.contains(name)) {
+          return true;
+        }
+
+        return false;
+      }
+      case TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_EXCLUDE: {
+        if (fBlockExcludeList.contains(name)) {
+          return false;
+        }
+
+        return true;
+      }
+    }
+    return false;
+  }
+
+  @Override
+  protected boolean mayCollapse(ASTNode s, FoldingStructureComputationContext ctx) {
+    if (s instanceof TypeDeclaration) {
+      return canFold("namespace");
+    } else if (s instanceof MethodDeclaration) {
+      return canFold("proc");
+    } else if (s instanceof TextMarkerStatement) {
+      TextMarkerStatement statement = (TextMarkerStatement) s;
+      if (!(statement.getAt(0) instanceof SimpleReference)) {
+        return false;
+      }
+
+      String name = null;
+      name = ((SimpleReference) statement.getAt(0)).getName();
+      return canFold(name);
+    }
+
+    return false;
+  }
+
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/folding/TextMarkerFoldingStructureProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties Fri Aug 12 11:00:38 2011
@@ -0,0 +1,20 @@
+# ***************************************************************
+#  * Licensed to the Apache Software Foundation (ASF) under one
+#  * or more contributor license agreements.  See the NOTICE file
+#  * distributed with this work for additional information
+#  * regarding copyright ownership.  The ASF licenses this file
+#  * to you under the Apache License, Version 2.0 (the
+#  * "License"); you may not use this file except in compliance
+#  * with the License.  You may obtain a copy of the License at
+#  * 
+#  * http://www.apache.org/licenses/LICENSE-2.0
+#  * 
+#  * Unless required by applicable law or agreed to in writing,
+#  * software distributed under the License is distributed on an
+#  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  * KIND, either express or implied.  See the License for the
+#  * specific language governing permissions and limitations
+#  * under the License.
+# ***************************************************************
+
+TclRequirePackageMarkerResolution_addPackageToBuildpath=Add package {0} to buildpath.

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/text/messages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml Fri Aug 12 11:00:38 2011
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>org.apache.uima.textmarker.engine.TextMarkerEngine</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>BasicEngine</name>
+    <description/>
+    <version>1.0</version>
+    <vendor/>
+    <configurationParameters searchStrategy="language_fallback">
+      <configurationParameter>
+        <name>seeders</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>debug</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>style</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>styleMap</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>additionalScripts</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>profile</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>debugWithMatches</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>statistics</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>additionalEngines</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>additionalExtensions</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>debugOnlyFor</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>scriptEncoding</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>additionalEngineLoaders</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>resourcePaths</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>defaultFilteredTypes</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>defaultFilteredMarkups</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>mainScript</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>scriptPaths</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>descriptorPaths</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>useBasics</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>removeBasics</name>
+        <type>Boolean</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+    </configurationParameters>
+    <configurationParameterSettings>
+      <nameValuePair>
+        <name>debug</name>
+        <value>
+          <boolean>false</boolean>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>profile</name>
+        <value>
+          <boolean>false</boolean>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>debugWithMatches</name>
+        <value>
+          <boolean>true</boolean>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>defaultFilteredTypes</name>
+        <value>
+          <array>
+            <string>org.apache.uima.textmarker.type.SPACE</string>
+            <string>org.apache.uima.textmarker.type.NBSP</string>
+            <string>org.apache.uima.textmarker.type.BREAK</string>
+            <string>org.apache.uima.textmarker.type.MARKUP</string>
+          </array>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>removeBasics</name>
+        <value>
+          <boolean>false</boolean>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>seeders</name>
+        <value>
+          <array>
+            <string>org.apache.uima.textmarker.seed.DefaultSeeder</string>
+          </array>
+        </value>
+      </nameValuePair>
+    </configurationParameterSettings>
+    <typeSystemDescription>
+      <imports>
+        <import location="BasicTypeSystem.xml"/>
+      </imports>
+    </typeSystemDescription>
+    <typePriorities>
+      <priorityList>
+        <type>org.apache.uima.textmarker.type.TextMarkerFrame</type>
+        <type>uima.tcas.Annotation</type>
+        <type>org.apache.uima.textmarker.type.TextMarkerBasic</type>
+      </priorityList>
+    </typePriorities>
+    <fsIndexCollection/>
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <languagesSupported/>
+      </capability>
+    </capabilities>
+    <operationalProperties>
+      <modifiesCas>true</modifiesCas>
+      <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+      <outputsNewCASes>true</outputsNewCASes>
+    </operationalProperties>
+  </analysisEngineMetaData>
+  <resourceManagerConfiguration/>
+</analysisEngineDescription>

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicEngine.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml Fri Aug 12 11:00:38 2011
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <name>BasicTypeSystem</name>
+  <description/>
+  <version>1.0</version>
+  <vendor/>
+  <imports>
+    <import location="InternalTypeSystem.xml"/>
+  </imports>
+  <types>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.ALL</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.BasicAnnotation</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.ANY</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ALL</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.MARKUP</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ALL</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.CW</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.W</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.W</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.SW</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.W</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.PM</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.CAP</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.W</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.COLON</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.PM</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.PERIOD</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.SENTENCEEND</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.SENTENCEEND</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.PM</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.QUESTION</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.SENTENCEEND</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.COMMA</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.PM</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.EXCLAMATION</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.SENTENCEEND</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.SEMICOLON</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.PM</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.WS</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.NUM</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.SPECIAL</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.NBSP</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.AMP</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ANY</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.SPACE</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.WS</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.BREAK</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.WS</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.Document</name>
+      <description/>
+      <supertypeName>uima.tcas.DocumentAnnotation</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.BasicAnnotation</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.TextMarkerBasic</supertypeName>
+    </typeDescription>
+  </types>
+</typeSystemDescription>

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/BasicTypeSystem.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml Fri Aug 12 11:00:38 2011
@@ -0,0 +1,295 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <name>InternalTypeSystem</name>
+  <description/>
+  <version>1.0</version>
+  <vendor/>
+  <types>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.TextMarkerBasic</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>replacement</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.TextMarkerAnnotation</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>score</name>
+          <description/>
+          <rangeTypeName>uima.cas.Double</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>annotation</name>
+          <description/>
+          <rangeTypeName>uima.tcas.Annotation</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugRuleApply</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.DebugScriptApply</supertypeName>
+      <features>
+        <featureDescription>
+          <name>applied</name>
+          <description/>
+          <rangeTypeName>uima.cas.Integer</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>tried</name>
+          <description/>
+          <rangeTypeName>uima.cas.Integer</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>rules</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugRuleMatch</elementType>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugRuleMatch</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ProfiledAnnotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>elements</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugRuleElementMatches</elementType>
+        </featureDescription>
+        <featureDescription>
+          <name>matched</name>
+          <description/>
+          <rangeTypeName>uima.cas.Boolean</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>delegates</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugScriptApply</elementType>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugScriptApply</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ProfiledAnnotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>element</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugBlockApply</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.DebugRuleApply</supertypeName>
+      <features>
+        <featureDescription>
+          <name>innerApply</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugScriptApply</elementType>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugRuleElementMatch</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.ProfiledAnnotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>baseCondition</name>
+          <description/>
+          <rangeTypeName>org.apache.uima.textmarker.type.DebugEvaluatedCondition</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>conditions</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugEvaluatedCondition</elementType>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugRuleElementMatches</name>
+      <description/>
+      <supertypeName>uima.cas.TOP</supertypeName>
+      <features>
+        <featureDescription>
+          <name>matches</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugRuleElementMatch</elementType>
+        </featureDescription>
+        <featureDescription>
+          <name>element</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.TextMarkerColoring</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>bgColor</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>targetType</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>fgColor</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>selected</name>
+          <description/>
+          <rangeTypeName>uima.cas.Boolean</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugEvaluatedCondition</name>
+      <description/>
+      <supertypeName>uima.cas.TOP</supertypeName>
+      <features>
+        <featureDescription>
+          <name>element</name>
+          <description/>
+          <rangeTypeName>uima.cas.String</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>value</name>
+          <description/>
+          <rangeTypeName>uima.cas.Boolean</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>conditions</name>
+          <description/>
+          <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+          <elementType>org.apache.uima.textmarker.type.DebugEvaluatedCondition</elementType>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugMatchedRuleMatch</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.DebugRuleMatch</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.DebugFailedRuleMatch</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.DebugRuleMatch</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.FalsePositive</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.EvalAnnotation</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.EvalAnnotation</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>original</name>
+          <description/>
+          <rangeTypeName>uima.tcas.Annotation</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.FalseNegative</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.EvalAnnotation</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.ProfiledAnnotation</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+      <features>
+        <featureDescription>
+          <name>time</name>
+          <description/>
+          <rangeTypeName>uima.cas.Long</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.TextMarkerFrame</name>
+      <description/>
+      <supertypeName>uima.tcas.Annotation</supertypeName>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.Statistics</name>
+      <description/>
+      <supertypeName>uima.cas.TOP</supertypeName>
+      <features>
+        <featureDescription>
+          <name>name</name>
+          <description/>
+          <rangeTypeName>uima.cas.StringArray</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>total</name>
+          <description/>
+          <rangeTypeName>uima.cas.DoubleArray</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>amount</name>
+          <description/>
+          <rangeTypeName>uima.cas.IntegerArray</rangeTypeName>
+        </featureDescription>
+        <featureDescription>
+          <name>part</name>
+          <description/>
+          <rangeTypeName>uima.cas.DoubleArray</rangeTypeName>
+        </featureDescription>
+      </features>
+    </typeDescription>
+    <typeDescription>
+      <name>org.apache.uima.textmarker.type.TruePositive</name>
+      <description/>
+      <supertypeName>org.apache.uima.textmarker.type.EvalAnnotation</supertypeName>
+    </typeDescription>
+  </types>
+</typeSystemDescription>

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/InternalTypeSystem.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml Fri Aug 12 11:00:38 2011
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>org.apache.uima.textmarker.engine.TextMarkerModifier</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>Modifier</name>
+    <description/>
+    <version>1.0</version>
+    <vendor/>
+    <configurationParameters>
+      <configurationParameter>
+        <name>styleMapLocation</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>enginePaths</name>
+        <type>String</type>
+        <multiValued>true</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+    </configurationParameters>
+    <configurationParameterSettings/>
+    <typeSystemDescription/>
+    <typePriorities/>
+    <fsIndexCollection/>
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <outputSofas>
+          <sofaName>modified</sofaName>
+        </outputSofas>
+        <languagesSupported/>
+      </capability>
+    </capabilities>
+    <operationalProperties>
+      <modifiesCas>true</modifiesCas>
+      <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+      <outputsNewCASes>false</outputsNewCASes>
+    </operationalProperties>
+  </analysisEngineMetaData>
+  <resourceManagerConfiguration/>
+</analysisEngineDescription>

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/Modifier.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml Fri Aug 12 11:00:38 2011
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+   
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<name>org.apache.uima.examples.SourceDocumentInformation</name>
+	<description>Defines a type for storing information about the original source document from which the current CAS was initialized</description>
+	<version>1.0</version>
+	<vendor>The Apache Software Foundation</vendor>
+	<types>
+		<typeDescription>
+			<name>org.apache.uima.examples.SourceDocumentInformation</name>
+			<description>Stores detailed information about the original source document from which the current CAS was initialized. All information (like size) refers to the source document and not to the document in the CAS which may be converted and filtered by a CAS Initializer. For example this information will be written to the Semantic Search index so that the original document contents can be retrieved by queries.</description>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+			<features>
+				<featureDescription>
+					<name>uri</name>
+					<description>URI of document. (For example, file:///MyDirectory/myFile.txt for a simple file or http://incubator.apache.org/uima/index.html for content from a web source.)</description>
+					<rangeTypeName>uima.cas.String</rangeTypeName>
+				</featureDescription>
+				<featureDescription>
+					<name>offsetInSource</name>
+					<description>Byte offset of the start of document content within original source file or other input source. Only used if the CAS document was retrieved from an source where one physical source file contained several conceptual documents. Zero otherwise.</description>
+					<rangeTypeName>uima.cas.Integer</rangeTypeName>
+				</featureDescription>
+				<featureDescription>
+					<name>documentSize</name>
+					<description>Size of original document in bytes before processing by CAS Initializer. Either absolute file size of size within file or other source.</description>
+					<rangeTypeName>uima.cas.Integer</rangeTypeName>
+				</featureDescription>
+				<featureDescription>
+				  <name>lastSegment</name>
+				  <description>For a CAS that represents a segment of a larger source document, this flag indicates whether this CAS is the final segment of the source document.  This is useful for downstream components that want to take some action after having seen all of the segments of a particular source document. </description>
+			      <rangeTypeName>uima.cas.Boolean</rangeTypeName>
+			    </featureDescription>				
+			</features>
+		</typeDescription>
+	</types>
+</typeSystemDescription>

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/SourceDocumentInformation.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui.wizards;
+
+import org.apache.uima.textmarker.ide.core.TextMarkerNature;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.dltk.core.IModelElement;
+import org.eclipse.dltk.core.IScriptFolder;
+import org.eclipse.dltk.ui.wizards.NewSourceModulePage;
+
+
+public class TextMarkerFileCreationPage extends NewSourceModulePage {
+
+  @Override
+  protected String getPageDescription() {
+    return "This wizard creates a new TextMarker script file.";
+  }
+
+  @Override
+  protected String getFileContent() {
+    StringBuilder sb = new StringBuilder();
+    sb.append("PACKAGE ");
+    IScriptFolder scriptFolder = getScriptFolder();
+    IModelElement ancestor = scriptFolder.getAncestor(IModelElement.PROJECT_FRAGMENT);
+    IPath path = ancestor.getPath().removeFirstSegments(1);
+    String pathString = "";
+    for (int i = 1; i < path.segments().length; i++) {
+      pathString += path.segments()[i];
+      if (i < path.segments().length - 1) {
+        pathString += ".";
+      }
+    }
+    sb.append(pathString);
+    sb.append(";\n");
+    return sb.toString();
+  }
+
+  @Override
+  protected String getRequiredNature() {
+    return TextMarkerNature.NATURE_ID;
+  }
+
+  @Override
+  protected String getPageTitle() {
+    return "Create a new TextMarker script file";
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.wizards;
+
+import org.apache.uima.textmarker.ide.ui.TextMarkerImages;
+import org.eclipse.dltk.ui.DLTKUIPlugin;
+import org.eclipse.dltk.ui.wizards.NewSourceModulePage;
+import org.eclipse.dltk.ui.wizards.NewSourceModuleWizard;
+
+public class TextMarkerFileCreationWizard extends NewSourceModuleWizard {
+  public static final String ID_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.TextMarkerFileCreationWizard";
+
+  public TextMarkerFileCreationWizard() {
+    setDefaultPageImageDescriptor(TextMarkerImages.DESC_WIZBAN_FILE_CREATION);
+    setDialogSettings(DLTKUIPlugin.getDefault().getDialogSettings());
+    setWindowTitle("Create TextMarker File");
+  }
+
+  @Override
+  protected NewSourceModulePage createNewSourceModulePage() {
+    return new TextMarkerFileCreationPage();
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerFileCreationWizard.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.wizards;
+
+import org.apache.uima.textmarker.ide.core.TextMarkerNature;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.dltk.core.IProjectFragment;
+import org.eclipse.dltk.ui.wizards.NewPackageCreationWizard;
+import org.eclipse.dltk.ui.wizards.NewPackageWizardPage;
+import org.eclipse.jface.viewers.IStructuredSelection;
+
+public class TextMarkerPackageCreationWizard extends NewPackageCreationWizard {
+  public static final String ID_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.NewPackageCreationWizard";
+
+  @Override
+  protected NewPackageWizardPage createNewPackageWizardPage() {
+    return new NewPackageWizardPage() {
+      @Override
+      public void createPackage(IProgressMonitor monitor) throws CoreException,
+              InterruptedException {
+        if (monitor == null) {
+          monitor = new NullProgressMonitor();
+        }
+        IProjectFragment root = getProjectFragment();
+        String packName = getPackageText();
+        packName = packName.replaceAll("[.]", "/");
+        fCreatedScriptFolder = root.createScriptFolder(packName, true, monitor);
+        if (monitor.isCanceled()) {
+          throw new InterruptedException();
+        }
+      }
+
+      @Override
+      protected String getRequiredNature() {
+        return TextMarkerNature.NATURE_ID;
+      }
+
+      @Override
+      public void init(IStructuredSelection selection) {
+        super.init(selection);
+        setPackageText("", true);
+      }
+    };
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/wizards/TextMarkerPackageCreationWizard.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain