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/01 16:38:36 UTC

svn commit: r1152804 [5/15] - in /uima/sandbox/trunk/TextMarker: org.apache.uima.tm.dltk.debug.ui/ org.apache.uima.tm.dltk.debug.ui/META-INF/ org.apache.uima.tm.dltk.debug.ui/bin/ org.apache.uima.tm.dltk.debug.ui/icons/ org.apache.uima.tm.dltk.debug.ui...

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPlugin.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPlugin.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,24 @@
+package org.apache.uima.tm.dltk.formatter.internal;
+
+import org.apache.uima.tm.dltk.formatter.TextMarkerFormatterConstants;
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.jface.preference.IPreferenceStore;
+
+
+public class TextMarkerFormatterPreferenceInitializer extends AbstractPreferenceInitializer {
+
+  @Override
+  public void initializeDefaultPreferences() {
+    TextMarkerFormatterPlugin plugin = TextMarkerFormatterPlugin.getDefault();
+    IPreferenceStore store = plugin.getPreferenceStore();
+
+    store.setDefault(TextMarkerFormatterConstants.INDENT_BLOCK, true);
+    store.setDefault(TextMarkerFormatterConstants.INDENT_STRUCTURE, true);
+
+    store.setDefault(TextMarkerFormatterConstants.LINES_BEFORE_LONG_DECLARATIONS, 1);
+
+    store.setDefault(TextMarkerFormatterConstants.LINES_PRESERVE, 1);
+
+    store.setDefault(TextMarkerFormatterConstants.MAX_LINE_LENGTH, 100);
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/TextMarkerFormatterPreferenceInitializer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties Mon Aug  1 14:37:34 2011
@@ -0,0 +1 @@
+TextMarkerFormatter_contentCorrupted=Content corrupted in formatter

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/internal/messages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,56 @@
+package org.apache.uima.tm.dltk.formatter.preferences;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+  private static final String BUNDLE_NAME = "org.apache.uima.tm.dltk.formatter.preferences.messages"; //$NON-NLS-1$
+
+  // public static String TextMarkerFormatterBlankLinesPage_afterGlobalStatements;
+  // public static String TextMarkerFormatterBlankLinesPage_befireFirstDeclaration;
+  // public static String TextMarkerFormatterBlankLinesPage_beforeBlockDeclarations;
+  // public static String TextMarkerFormatterBlankLinesPage_betweenBlocks;
+  public static String TextMarkerFormatterBlankLinesPage_blankLinesBeforeDeclarations;
+
+  public static String TextMarkerFormatterBlankLinesPage_beforeDeclarations;
+
+  // public static String TextMarkerFormatterBlankLinesPage_existingBlankLines;
+  // public static String TextMarkerFormatterBlankLinesPage_numberOfEmptyLinesToPreserve;
+  // public static String TextMarkerFormatterCommentsPage_commentFormatting;
+  // public static String TextMarkerFormatterCommentsPage_enableCommentWrapping;
+  // public static String TextMarkerFormatterCommentsPage_maximumLineWidthForComments;
+  public static String TextMarkerFormatterLineWrappingPage_maximumLineLenght;
+
+  public static String TextMarkerFormatterLineWrappingPage_generalWrapping;
+
+  public static String TextMarkerFormatterIndentationTabPage_statementsWithinBlockBody;
+
+  public static String TextMarkerFormatterIndentationTabPage_assignmentsWithinCreateAction;
+
+  public static String TextMarkerFormatterIndentationTabPage_generalSettings;
+
+  public static String TextMarkerFormatterIndentationTabPage_indentationCharacter;
+
+  public static String TextMarkerFormatterIndentationTabPage_indentationSize;
+
+  public static String TextMarkerFormatterIndentationTabPage_indentWithinBlocks;
+
+  public static String TextMarkerFormatterIndentationTabPage_indentWithinCreateActions;
+
+  public static String TextMarkerFormatterIndentationTabPage_tabSize;
+
+  public static String TextMarkerFormatterModifyDialog_blankLines;
+
+  // public static String TextMarkerFormatterModifyDialog_comments;
+  public static String TextMarkerFormatterModifyDialog_indentation;
+
+  public static String TextMarkerFormatterModifyDialog_lineWrapping;
+
+  public static String TextMarkerFormatterModifyDialog_TextMarkerFormatter;
+  static {
+    // initialize resource bundle
+    NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+  }
+
+  private Messages() {
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/Messages.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,71 @@
+package org.apache.uima.tm.dltk.formatter.preferences;
+
+import java.net.URL;
+
+import org.apache.uima.tm.dltk.formatter.TextMarkerFormatterConstants;
+import org.eclipse.dltk.ui.formatter.FormatterModifyTabPage;
+import org.eclipse.dltk.ui.formatter.IFormatterControlManager;
+import org.eclipse.dltk.ui.formatter.IFormatterModifyDialog;
+import org.eclipse.dltk.ui.util.SWTFactory;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
+
+
+public class TextMarkerFormatterBlankLinesPage extends FormatterModifyTabPage {
+
+  /**
+   * @param dialog
+   */
+  public TextMarkerFormatterBlankLinesPage(IFormatterModifyDialog dialog) {
+    super(dialog);
+  }
+
+  @Override
+  protected void createOptions(IFormatterControlManager manager, Composite parent) {
+    Group emptyLinesGroup = SWTFactory.createGroup(parent,
+            Messages.TextMarkerFormatterBlankLinesPage_blankLinesBeforeDeclarations, 2, 1,
+            GridData.FILL_HORIZONTAL);
+    manager.createNumber(emptyLinesGroup,
+            TextMarkerFormatterConstants.LINES_BEFORE_LONG_DECLARATIONS,
+            Messages.TextMarkerFormatterBlankLinesPage_beforeDeclarations);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_BLOCK,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenBlocks);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_CLASS,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenClasses);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_METHOD,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenMethods);
+    // //
+    // Group emptyLinesInternalGroup = SWTFactory.createGroup(parent,
+    // Messages.TextMarkerFormatterBlankLinesPage_blankLinesWithingClassModuleDeclarations, 2, 1,
+    // GridData.FILL_HORIZONTAL);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_FIRST,
+    // Messages.TextMarkerFormatterBlankLinesPage_befireFirstDeclaration);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_MODULE,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeNestedModuleDeclarations);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_CLASS,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeNestedClassDeclarations);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_METHOD,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeMethodDeclarations);
+    // //
+    // Group preserveGroup = SWTFactory.createGroup(parent,
+    // Messages.TextMarkerFormatterBlankLinesPage_existingBlankLines, 2, 1,
+    // GridData.FILL_HORIZONTAL);
+    // manager.createNumber(preserveGroup,
+    // TextMarkerFormatterConstants.LINES_PRESERVE,
+    // Messages.TextMarkerFormatterBlankLinesPage_numberOfEmptyLinesToPreserve);
+  }
+
+  @Override
+  protected URL getPreviewContent() {
+    return getClass().getResource("blank-lines-preview.tm"); //$NON-NLS-1$
+  }
+
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterBlankLinesPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,113 @@
+package org.apache.uima.tm.dltk.formatter.preferences;
+
+import java.net.URL;
+
+import org.apache.uima.tm.dltk.formatter.TextMarkerFormatterConstants;
+import org.eclipse.dltk.ui.CodeFormatterConstants;
+import org.eclipse.dltk.ui.formatter.FormatterModifyTabPage;
+import org.eclipse.dltk.ui.formatter.IFormatterControlManager;
+import org.eclipse.dltk.ui.formatter.IFormatterModifyDialog;
+import org.eclipse.dltk.ui.preferences.FormatterMessages;
+import org.eclipse.dltk.ui.util.SWTFactory;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Text;
+
+
+public class TextMarkerFormatterIndentationTabPage extends FormatterModifyTabPage {
+
+  /**
+   * @param dialog
+   */
+  public TextMarkerFormatterIndentationTabPage(IFormatterModifyDialog dialog) {
+    super(dialog);
+  }
+
+  private Combo tabPolicy;
+
+  private Text indentSize;
+
+  private Text tabSize;
+
+  private final String[] tabPolicyItems = new String[] { CodeFormatterConstants.SPACE,
+      CodeFormatterConstants.TAB, CodeFormatterConstants.MIXED };
+
+  private class TabPolicyListener extends SelectionAdapter implements
+          IFormatterControlManager.IInitializeListener {
+
+    private final IFormatterControlManager manager;
+
+    public TabPolicyListener(IFormatterControlManager manager) {
+      this.manager = manager;
+    }
+
+    @Override
+    public void widgetSelected(SelectionEvent e) {
+      int index = tabPolicy.getSelectionIndex();
+      if (index >= 0) {
+        final boolean tabMode = CodeFormatterConstants.TAB.equals(tabPolicyItems[index]);
+        manager.enableControl(indentSize, !tabMode);
+      }
+    }
+
+    public void initialize() {
+      final boolean tabMode = CodeFormatterConstants.TAB.equals(manager
+              .getString(TextMarkerFormatterConstants.FORMATTER_TAB_CHAR));
+      manager.enableControl(indentSize, !tabMode);
+    }
+
+  }
+
+  private TabPolicyListener tabPolicyListener;
+
+  @Override
+  protected void createOptions(final IFormatterControlManager manager, Composite parent) {
+    Group tabPolicyGroup = SWTFactory.createGroup(parent,
+            Messages.TextMarkerFormatterIndentationTabPage_generalSettings, 2, 1,
+            GridData.FILL_HORIZONTAL);
+    tabPolicy = manager.createCombo(tabPolicyGroup,
+            TextMarkerFormatterConstants.FORMATTER_TAB_CHAR,
+            FormatterMessages.IndentationTabPage_general_group_option_tab_policy, tabPolicyItems);
+    tabPolicyListener = new TabPolicyListener(manager);
+    tabPolicy.addSelectionListener(tabPolicyListener);
+    manager.addInitializeListener(tabPolicyListener);
+    indentSize = manager.createNumber(tabPolicyGroup,
+            TextMarkerFormatterConstants.FORMATTER_INDENTATION_SIZE,
+            FormatterMessages.IndentationTabPage_general_group_option_indent_size);
+    tabSize = manager.createNumber(tabPolicyGroup, TextMarkerFormatterConstants.FORMATTER_TAB_SIZE,
+            FormatterMessages.IndentationTabPage_general_group_option_tab_size);
+    tabSize.addModifyListener(new ModifyListener() {
+      public void modifyText(ModifyEvent e) {
+        int index = tabPolicy.getSelectionIndex();
+        if (index >= 0) {
+          final boolean tabMode = CodeFormatterConstants.TAB.equals(tabPolicyItems[index]);
+          if (tabMode) {
+            indentSize.setText(tabSize.getText());
+          }
+        }
+      }
+    });
+    //
+    Group indentGroup = SWTFactory.createGroup(parent,
+            Messages.TextMarkerFormatterIndentationTabPage_indentWithinBlocks, 1, 1,
+            GridData.FILL_HORIZONTAL);
+    manager.createCheckbox(indentGroup, TextMarkerFormatterConstants.INDENT_BLOCK,
+            Messages.TextMarkerFormatterIndentationTabPage_statementsWithinBlockBody);
+    Group indentBlocks = SWTFactory.createGroup(parent,
+            Messages.TextMarkerFormatterIndentationTabPage_indentWithinCreateActions, 1, 1,
+            GridData.FILL_HORIZONTAL);
+    manager.createCheckbox(indentBlocks, TextMarkerFormatterConstants.INDENT_STRUCTURE,
+            Messages.TextMarkerFormatterIndentationTabPage_assignmentsWithinCreateAction);
+  }
+
+  @Override
+  protected URL getPreviewContent() {
+    return getClass().getResource("indentation-preview.tm");
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterIndentationTabPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,70 @@
+package org.apache.uima.tm.dltk.formatter.preferences;
+
+import java.net.URL;
+
+import org.apache.uima.tm.dltk.formatter.TextMarkerFormatterConstants;
+import org.eclipse.dltk.ui.formatter.FormatterModifyTabPage;
+import org.eclipse.dltk.ui.formatter.IFormatterControlManager;
+import org.eclipse.dltk.ui.formatter.IFormatterModifyDialog;
+import org.eclipse.dltk.ui.util.SWTFactory;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
+
+
+public class TextMarkerFormatterLineWrappingPage extends FormatterModifyTabPage {
+
+  /**
+   * @param dialog
+   */
+  public TextMarkerFormatterLineWrappingPage(IFormatterModifyDialog dialog) {
+    super(dialog);
+  }
+
+  @Override
+  protected void createOptions(IFormatterControlManager manager, Composite parent) {
+    Group emptyLinesGroup = SWTFactory.createGroup(parent,
+            Messages.TextMarkerFormatterLineWrappingPage_generalWrapping, 2, 1,
+            GridData.FILL_HORIZONTAL);
+    manager.createNumber(emptyLinesGroup, TextMarkerFormatterConstants.MAX_LINE_LENGTH,
+            Messages.TextMarkerFormatterLineWrappingPage_maximumLineLenght);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_BLOCK,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenBlocks);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_CLASS,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenClasses);
+    // manager.createNumber(emptyLinesGroup,
+    // TextMarkerFormatterConstants.LINES_FILE_BETWEEN_METHOD,
+    // Messages.TextMarkerFormatterBlankLinesPage_betweenMethods);
+    // //
+    // Group emptyLinesInternalGroup = SWTFactory.createGroup(parent,
+    // Messages.TextMarkerFormatterBlankLinesPage_blankLinesWithingClassModuleDeclarations, 2, 1,
+    // GridData.FILL_HORIZONTAL);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_FIRST,
+    // Messages.TextMarkerFormatterBlankLinesPage_befireFirstDeclaration);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_MODULE,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeNestedModuleDeclarations);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_CLASS,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeNestedClassDeclarations);
+    // manager.createNumber(emptyLinesInternalGroup,
+    // TextMarkerFormatterConstants.LINES_BEFORE_METHOD,
+    // Messages.TextMarkerFormatterBlankLinesPage_beforeMethodDeclarations);
+    // //
+    // Group preserveGroup = SWTFactory.createGroup(parent,
+    // Messages.TextMarkerFormatterBlankLinesPage_existingBlankLines, 2, 1,
+    // GridData.FILL_HORIZONTAL);
+    // manager.createNumber(preserveGroup,
+    // TextMarkerFormatterConstants.LINES_PRESERVE,
+    // Messages.TextMarkerFormatterBlankLinesPage_numberOfEmptyLinesToPreserve);
+  }
+
+  @Override
+  protected URL getPreviewContent() {
+    return getClass().getResource("wrapping-preview.tm"); //$NON-NLS-1$
+  }
+
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterLineWrappingPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,30 @@
+package org.apache.uima.tm.dltk.formatter.preferences;
+
+import org.eclipse.dltk.ui.formatter.FormatterModifyDialog;
+import org.eclipse.dltk.ui.formatter.IFormatterModifyDialogOwner;
+import org.eclipse.dltk.ui.formatter.IScriptFormatterFactory;
+
+public class TextMarkerFormatterModifyDialog extends FormatterModifyDialog {
+
+  /**
+   * @param parent
+   */
+  public TextMarkerFormatterModifyDialog(IFormatterModifyDialogOwner dialogOwner,
+          IScriptFormatterFactory formatterFactory) {
+    super(dialogOwner, formatterFactory);
+    setTitle(Messages.TextMarkerFormatterModifyDialog_TextMarkerFormatter);
+  }
+
+  @Override
+  protected void addPages() {
+    addTabPage(Messages.TextMarkerFormatterModifyDialog_indentation,
+            new TextMarkerFormatterIndentationTabPage(this));
+    addTabPage(Messages.TextMarkerFormatterModifyDialog_blankLines,
+            new TextMarkerFormatterBlankLinesPage(this));
+    addTabPage(Messages.TextMarkerFormatterModifyDialog_lineWrapping,
+            new TextMarkerFormatterLineWrappingPage(this));
+    // addTabPage(Messages.TextMarkerFormatterModifyDialog_comments,
+    // new TextMarkerFormatterCommentsPage(this));
+  }
+
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/TextMarkerFormatterModifyDialog.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/bak_indentation-preview.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/bak_indentation-preview.tm?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/bak_indentation-preview.tm (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/bak_indentation-preview.tm Mon Aug  1 14:37:34 2011
@@ -0,0 +1,60 @@
+PACKAGE de.uniwue.casetrain;
+
+SCRIPT de.uniwue.casetrain.DashTree;
+SCRIPT de.uniwue.casetrain.DashTreeError;
+SCRIPT de.uniwue.casetrain.BuildTree;
+TYPESYSTEM de.uniwue.casetrain.TerminologyTypeSystem;
+
+Document(CALL,DashTree);
+ 
+DECLARE link;
+entryContent curlyBracketsOpen inCurlyBrackets{-PARTOF,link}(MARK,link,3) curlyBracketsClose;
+
+Document(RETAINTYPE);
+
+// *** error handling ***
+Document(CALL,DashTreeError);
+// *** end of error handling ***
+
+// *** statistics ***
+INT count;
+Document{TOTALCOUNT,error,1,1000000,count}
+    (LOG,"Longmenu.txt: Es wurde(n) "+(count)+" Fehler gefunden!");
+Document{TOTALCOUNT,rootRow,1,1000000,count}
+    (LOG,"Longmenu.txt: Es wurde(n) "+(count)+" Wurzel-Elemente gefunden.");
+Document{TOTALCOUNT,childRow,1,1000000,count}
+    (LOG,"Longmenu.txt: Es wurde(n) "+(count)+" Kind-Elemente gefunden.");
+// *** end of statistics ***
+
+INT id;
+
+ACTION IncID = (ASSIGN,id,id+1);
+
+
+BLOCK(ChildRows) childRow {
+    childRow[1,9](ASSIGN,id,1+id;
+        CREATE,Term,
+        "Text" = entryContent,
+        "Info" = link,
+        "Id" = "A" + (id),
+        "TermType" = "answer");
+}
+
+BLOCK(RootRow) rootRow {
+    rootRow(ASSIGN,id,1+id;
+        CREATE,Term,
+        "Text" = entryContent,
+        "Info" = link,
+        "Id" = "A" + (id),
+        "TermType" = "answer");
+}
+
+Term{PARTOF,rootRow}(TRANSFER,Root);
+
+Term{PARTOF,rootRow}(MARK,SubTree,1,2) Term+{-PARTOF,rootRow};
+Document(CALL,BuildTree.BuildDashTree);
+
+
+
+
+

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/bak_indentation-preview.tm
------------------------------------------------------------------------------
    svn:executable = *

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/blank-lines-preview.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/blank-lines-preview.tm?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/blank-lines-preview.tm (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/blank-lines-preview.tm Mon Aug  1 14:37:34 2011
@@ -0,0 +1,7 @@
+PACKAGE de.uniwue.casetrain;
+
+DECLARE childRow, Doc2, Doc3, Doc4, Doc5;
+INT id;
+BOOLEAN b = false;
+
+BLOCK(ChildRows)childRow{}{childRow[1,9]{IF(b)->ASSIGN(id,1+id), ASSIGN(b,true)};Doc2{->MARK(childRow)};}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/blank-lines-preview.tm
------------------------------------------------------------------------------
    svn:executable = *

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/indentation-preview.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/indentation-preview.tm?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/indentation-preview.tm (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/indentation-preview.tm Mon Aug  1 14:37:34 2011
@@ -0,0 +1,10 @@
+PACKAGE de.uniwue.casetrain;
+
+DECLARE childRow, Doc2, Doc3, Doc4, Doc5;
+INT id;
+BOOLEAN b = false;
+
+BLOCK(ChildRows)childRow{}{childRow[1,9]{IF(b)->ASSIGN(id,1+id), ASSIGN(b,true)};Doc2{->MARK(childRow)};}
+
+
+

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/indentation-preview.tm
------------------------------------------------------------------------------
    svn:executable = *

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties Mon Aug  1 14:37:34 2011
@@ -0,0 +1,20 @@
+TextMarkerFormatterModifyDialog_TextMarkerFormatter=TextMarker Formatter
+
+TextMarkerFormatterModifyDialog_indentation=Indentation
+TextMarkerFormatterIndentationTabPage_statementsWithinBlockBody=Statements within Blocks
+TextMarkerFormatterIndentationTabPage_assignmentsWithinCreateAction=Feature assignments within CREATE actions
+TextMarkerFormatterIndentationTabPage_generalSettings=General Settings
+TextMarkerFormatterIndentationTabPage_indentationCharacter=Indentation character
+TextMarkerFormatterIndentationTabPage_indentationSize=Indentation size
+TextMarkerFormatterIndentationTabPage_indentWithinBlocks=Indent within Blocks
+TextMarkerFormatterIndentationTabPage_indentWithinCreateActions=Indent within CREATE actions
+TextMarkerFormatterIndentationTabPage_tabSize=Tab size
+
+TextMarkerFormatterModifyDialog_blankLines=Blank Lines
+TextMarkerFormatterBlankLinesPage_blankLinesBeforeDeclarations=Declarations
+TextMarkerFormatterBlankLinesPage_beforeDeclarations=Lines before long declarations
+TextMarkerFormatterBlankLinesPage_numberOfEmptyLinesToPreserve=Number of empty lines to preserve
+
+TextMarkerFormatterModifyDialog_lineWrapping=Line Wrapping
+TextMarkerFormatterLineWrappingPage_generalWrapping=General
+TextMarkerFormatterLineWrappingPage_maximumLineLenght=Maximum line length

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/messages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/wrapping-preview.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/wrapping-preview.tm?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/wrapping-preview.tm (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/wrapping-preview.tm Mon Aug  1 14:37:34 2011
@@ -0,0 +1,10 @@
+PACKAGE de.uniwue.casetrain;
+
+DECLARE childRow, Doc2, Doc3, Doc4, Doc5;
+INT id;
+BOOLEAN b = false;
+
+BLOCK(ChildRows)childRow{}{childRow[1,9]{IF(b)->ASSIGN(id,1+id), ASSIGN(b,true)};Doc2{->MARK(childRow)};}
+
+
+

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.formatter/src/main/java/org/apache/uima/tm/dltk/formatter/preferences/wrapping-preview.tm
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Aug  1 14:37:34 2011
@@ -0,0 +1 @@
+.settings

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath Mon Aug  1 14:37:34 2011
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.classpath
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore Mon Aug  1 14:37:34 2011
@@ -0,0 +1 @@
+bin

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.cvsignore
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project Mon Aug  1 14:37:34 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.uima.tm.dltk.launching</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/.project
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF Mon Aug  1 14:37:34 2011
@@ -0,0 +1,31 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: TextMarker DLTK Launching Plugin
+Bundle-SymbolicName: org.apache.uima.tm.dltk.launching;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.apache.uima.tm.dltk.launching.TextMarkerLaunchingPlugin
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.dltk.console;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.dltk.core;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.dltk.debug;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.dltk.launching;bundle-version="[1.0.0,2.0.0)",
+ org.apache.uima.tm.dltk.core,
+ org.apache.uima.tm.dltk.debug,
+ org.eclipse.jdt.launching,
+ org.eclipse.jdt.core,
+ org.eclipse.debug.ui,
+ org.eclipse.jdt.debug.ui,
+ org.eclipse.ui.console,
+ org.eclipse.dltk.debug.ui;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.jface,
+ org.apache.uima.tm.dltk.antlr,
+ org.apache.uima.tm.textmarker.engine,
+ org.apache.uima.runtime;bundle-version="2.3.0"
+Bundle-ActivationPolicy: lazy
+Export-Package: org.apache.uima.tm.dltk.console,
+ org.apache.uima.tm.dltk.internal.launching,
+ org.apache.uima.tm.dltk.launching
+Bundle-ClassPath: .
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: University of Würzburg

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties Mon Aug  1 14:37:34 2011
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               plugin.xml,\
+               plugin.properties,\
+               icons/

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/build.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/icons/textmarker.png
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/icons/textmarker.png?rev=1152804&view=auto
==============================================================================
Binary file - no diff available.

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/icons/textmarker.png
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/icons/textmarker.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties Mon Aug  1 14:37:34 2011
@@ -0,0 +1,2 @@
+pluginProvider=Eclipse.org
+pluginName=Dynamic Languages Toolkit Tcl Launching Core
\ No newline at end of file

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml Mon Aug  1 14:37:34 2011
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+  <extension point="org.eclipse.dltk.launching.interpreterInstallTypes">
+    <interpreterInstallType
+      class="org.apache.uima.tm.dltk.internal.launching.GenericTextMarkerInstallType"
+      id="de.uniwue.dltk.internal.debug.ui.launcher.GenericTextMarkerInstallType">
+    </interpreterInstallType>
+  </extension>
+
+  <extension point="org.eclipse.debug.core.launchDelegates">
+    <launchDelegate
+      delegate="org.apache.uima.tm.dltk.internal.launching.JavaLocalApplicationLaunchConfigurationDelegate"
+      id="com.Instantiations.profiler.localJavaApplicationDelegate"
+      modes="debug"
+      name="Debugging with TextMarker debug support"
+      type="org.eclipse.jdt.launching.localJavaApplication">
+    </launchDelegate>
+  </extension>
+
+  <extension point="org.eclipse.dltk.console.scriptInterpreter">
+    <scriptInterpreter
+      class="org.apache.uima.tm.dltk.console.TextMarkerInterpreter"
+      natureID="org.apache.uima.tm.dltk.core.nature" />
+  </extension>
+
+  <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
+    <launchConfigurationTypeImage
+      icon="$nl$/icons/textmarker.png"
+      configTypeID="org.apache.uima.tm.dltk.launching.TextMarkerLaunchConfigurationType"
+      id="org.apache.uima.tm.dltk.launching.TextMarkerLaunchConfigurationTypeImage">
+    </launchConfigurationTypeImage>
+  </extension>
+
+  <extension point="org.eclipse.debug.core.launchConfigurationTypes">
+    <launchConfigurationType
+      delegate="org.apache.uima.tm.dltk.launching.TextMarkerLaunchConfigurationDelegate"
+      id="org.apache.uima.tm.dltk.launching.TextMarkerLaunchConfigurationType"
+      modes="run,debug"
+      name="TextMarker"
+      public="true"
+      sourceLocatorId="tmSourceLocator"
+      sourcePathComputerId="tmSourcePathComputer">
+    </launchConfigurationType>
+  </extension>
+
+  <extension point="org.eclipse.debug.core.sourcePathComputers">
+    <sourcePathComputer
+      class="org.apache.uima.tm.dltk.internal.launching.TextMarkerSourcePathComputer"
+      id="tmSourcePathComputer" />
+  </extension>
+
+  <extension point="org.eclipse.debug.core.sourceLocators">
+    <sourceLocator
+      class="org.apache.uima.tm.dltk.internal.launching.TextMarkerSourceLookupDirector"
+      id="tmSourceLocator"
+      name="org.apache.uima.tm.dltk.launching.tmSourceLocator" />
+  </extension>
+
+  <extension point="org.eclipse.dltk.launching.debuggingEngine">
+    <engineContribution natureId="org.apache.uima.tm.dltk.core.nature">
+      <selector class="org.apache.uima.tm.dltk.launching.TextMarkerDebuggingEngineSelector" />
+    </engineContribution>
+  </extension>
+  <extension
+        point="org.eclipse.dltk.launching.interpreterInstalls">
+     <interpreterInstall
+           home="${eclipse_home}"
+           id="org.apache.uima.tm.dltk.launching.embeddedTextMarker"
+           interpreterInstallType="de.uniwue.dltk.internal.debug.ui.launcher.GenericTextMarkerInstallType"
+           name="TextMarker Interpreter">
+     </interpreterInstall>
+  </extension>
+
+</plugin>

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/plugin.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,64 @@
+package org.apache.uima.tm.dltk.internal.launching;
+
+import java.io.File;
+import java.net.URI;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.model.IPersistableSourceLocator;
+import org.eclipse.debug.core.model.IStackFrame;
+import org.eclipse.dltk.internal.debug.core.model.ScriptStackFrame;
+
+public class TextMarkerSourceLookupDirector implements IPersistableSourceLocator {
+
+  public TextMarkerSourceLookupDirector() {
+  }
+
+  public Object getSourceElement(IStackFrame stackFrame) {
+    if (stackFrame instanceof ScriptStackFrame) {
+      ScriptStackFrame sf = (ScriptStackFrame) stackFrame;
+      URI uri = sf.getFileName();
+
+      String pathname = uri.getPath();
+      if (Platform.getOS().equals(Platform.OS_WIN32)) {
+        pathname = pathname.substring(1);
+      }
+
+      File file = new File(pathname);
+
+      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
+      IContainer container = root.getContainerForLocation(new Path(file.getParent()));
+
+      if (container != null) {
+        IResource resource = container.findMember(file.getName());
+
+        if (resource instanceof IFile) {
+          return resource;
+        }
+      } else {
+        return file;
+      }
+    }
+
+    return null;
+  }
+
+  public String getMemento() throws CoreException {
+    return null;
+  }
+
+  public void initializeDefaults(ILaunchConfiguration configuration) throws CoreException {
+
+  }
+
+  public void initializeFromMemento(String memento) throws CoreException {
+
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourceLookupDirector.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,22 @@
+package org.apache.uima.tm.dltk.internal.launching;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.sourcelookup.ISourceContainer;
+import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
+
+public class TextMarkerSourcePathComputer implements ISourcePathComputerDelegate {
+
+  public TextMarkerSourcePathComputer() {
+  }
+
+  public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration,
+          IProgressMonitor monitor) throws CoreException {
+    List containers = new ArrayList();
+    return (ISourceContainer[]) containers.toArray(new ISourceContainer[containers.size()]);
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/internal/launching/TextMarkerSourcePathComputer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,14 @@
+package org.apache.uima.tm.dltk.textmarker.console;
+
+public final class TextMarkerConsoleConstants {
+  private TextMarkerConsoleConstants() {
+  }
+
+  public static final String PREF_NEW_PROMPT = "tmconsole.new_invitation";
+
+  public static final String PREF_CONTINUE_PROMPT = "tmconsole.continue_invitation";
+
+  public static final String DEFAULT_NEW_PROMPT = "=>";
+
+  public static final String DEFAULT_CONTINUE_PROMPT = "->";
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleConstants.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,31 @@
+package org.apache.uima.tm.dltk.textmarker.console;
+
+import java.io.IOException;
+
+import org.apache.uima.tm.dltk.core.TextMarkerNature;
+import org.apache.uima.tm.dltk.textmarker.launching.TextMarkerLaunchingPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.dltk.console.ScriptConsoleServer;
+import org.eclipse.dltk.core.environment.EnvironmentManager;
+import org.eclipse.dltk.core.environment.IExecutionEnvironment;
+import org.eclipse.dltk.core.environment.IFileHandle;
+import org.eclipse.dltk.launching.ScriptLaunchUtil;
+
+
+public class TextMarkerConsoleUtil {
+
+  public static void runDefaultTextMarkerInterpreter(TextMarkerInterpreter interpreter)
+          throws CoreException, IOException {
+    ScriptConsoleServer server = ScriptConsoleServer.getInstance();
+
+    String id = server.register(interpreter);
+    String port = Integer.toString(server.getPort());
+
+    String[] args = new String[] { "127.0.0.1", port, id };
+
+    IExecutionEnvironment exeEnv = (IExecutionEnvironment) EnvironmentManager.getLocalEnvironment()
+            .getAdapter(IExecutionEnvironment.class);
+    IFileHandle scriptFile = TextMarkerLaunchingPlugin.getDefault().getConsoleProxy(exeEnv);
+    ScriptLaunchUtil.runScript(TextMarkerNature.NATURE_ID, scriptFile, null, null, args, null);
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerConsoleUtil.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,90 @@
+package org.apache.uima.tm.dltk.textmarker.console;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.List;
+
+import org.eclipse.dltk.console.ConsoleRequest;
+import org.eclipse.dltk.console.IScriptConsoleIO;
+import org.eclipse.dltk.console.IScriptExecResult;
+import org.eclipse.dltk.console.IScriptInterpreter;
+import org.eclipse.dltk.console.InterpreterResponse;
+import org.eclipse.dltk.console.ScriptExecResult;
+import org.eclipse.dltk.console.ShellResponse;
+
+public class TextMarkerInterpreter implements IScriptInterpreter, ConsoleRequest {
+
+  private static final String COMPLETE_COMMAND = "complete";
+
+  private static final String DESCRIBE_COMMAND = "describe";
+
+  private static final String CLOSE_COMMAND = "close";
+
+  private IScriptConsoleIO protocol;
+
+  private String content;
+
+  private int state;
+
+  public IScriptExecResult exec(String command) throws IOException {
+    InterpreterResponse response = protocol.execInterpreter(command);
+    state = response.getState();
+    return new ScriptExecResult(response.getContent());
+  }
+
+  public String getOutput() {
+    return content;
+  }
+
+  public int getState() {
+    return state;
+  }
+
+  // IScriptInterpreterShell
+  public List getCompletions(String commandLine, int position) throws IOException {
+
+    String[] args = new String[] { commandLine, Integer.toString(position) };
+
+    ShellResponse response = protocol.execShell(COMPLETE_COMMAND, args);
+
+    return response.getCompletions();
+  }
+
+  public String getDescription(String commandLine, int position) throws IOException {
+    String[] args = new String[] { commandLine, Integer.toString(position) };
+
+    ShellResponse response = protocol.execShell(DESCRIBE_COMMAND, args);
+
+    return response.getDescription();
+  }
+
+  public String[] getNames(String type) throws IOException {
+    return null;
+  }
+
+  public void close() throws IOException {
+    protocol.execShell(CLOSE_COMMAND, new String[] {});
+    protocol.close();
+  }
+
+  // IScriptConsoleProtocol
+  public void consoleConnected(IScriptConsoleIO protocol) {
+    this.protocol = protocol;
+  }
+
+  public String getInitialOuput() {
+    return null;
+  }
+
+  public void addInitialListenerOperation(Runnable runnable) {
+
+  }
+
+  public InputStream getInitialOutputStream() {
+    return null;
+  }
+
+  public boolean isValid() {
+    return protocol != null;
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/console/TextMarkerInterpreter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,62 @@
+package org.apache.uima.tm.dltk.textmarker.internal.launching;
+
+import java.io.DataInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.apache.uima.tm.dltk.core.TextMarkerNature;
+import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.dltk.launching.AbstractInterpreterInstall;
+import org.eclipse.dltk.launching.IInterpreterInstallType;
+import org.eclipse.dltk.launching.IInterpreterRunner;
+
+
+public class GenericTextMarkerInstall extends AbstractInterpreterInstall {
+
+  @Override
+  public String getBuiltinModuleContent(String name) {
+    InputStream stream = GenericTextMarkerInstall.class.getResourceAsStream("builtins.tm");
+    DataInputStream st = new DataInputStream(stream);
+    StringBuffer buf = new StringBuffer();
+    try {
+      while (st.available() >= 0) {
+        String line = st.readLine();
+        if (line == null)
+          break;
+        buf.append(line);
+        buf.append('\n');
+      }
+
+    } catch (IOException e) {
+      // TODO Auto-generated catch block
+      e.printStackTrace();
+    }
+    return buf.toString();
+  }
+
+  @Override
+  public String[] getBuiltinModules() {
+    return new String[] { "builtins.tm" };
+  }
+
+  public GenericTextMarkerInstall(IInterpreterInstallType type, String id) {
+    super(type, id);
+  }
+
+  @Override
+  public IInterpreterRunner getInterpreterRunner(String mode) {
+    IInterpreterRunner runner = super.getInterpreterRunner(mode);
+    if (runner != null) {
+      return runner;
+    }
+
+    if (mode.equals(ILaunchManager.RUN_MODE)) {
+      return new TextMarkerInterpreterRunner(this);
+    }
+    return null;
+  }
+
+  public String getNatureId() {
+    return TextMarkerNature.NATURE_ID;
+  }
+}
\ No newline at end of file

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstall.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,112 @@
+package org.apache.uima.tm.dltk.textmarker.internal.launching;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Map;
+
+import org.apache.uima.tm.dltk.core.TextMarkerNature;
+import org.apache.uima.tm.dltk.textmarker.launching.TextMarkerLaunchingPlugin;
+import org.eclipse.core.runtime.ILog;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.dltk.core.environment.IDeployment;
+import org.eclipse.dltk.core.environment.IFileHandle;
+import org.eclipse.dltk.internal.launching.AbstractInterpreterInstallType;
+import org.eclipse.dltk.launching.EnvironmentVariable;
+import org.eclipse.dltk.launching.IInterpreterInstall;
+import org.eclipse.dltk.launching.LibraryLocation;
+
+
+public class GenericTextMarkerInstallType extends AbstractInterpreterInstallType {
+
+  public static final String DBGP_FOR_TM_BUNDLE_ID = "org.apache.uima.tm.dltk.interpreter.dbgp";
+
+  public static final String EMBEDDED_TM_BUNDLE_ID = "org.apache.uima.tm.dltk.interpreter";
+
+  public String getNatureId() {
+    return TextMarkerNature.NATURE_ID;
+  }
+
+  public String getName() {
+    return "Generic TextMarker Install";
+  }
+
+  @Override
+  public LibraryLocation[] getDefaultLibraryLocations(IFileHandle installLocation,
+          EnvironmentVariable[] variables, IProgressMonitor monitor) {
+    return new LibraryLocation[0];
+  }
+
+  private static String[] possibleExes = { "tm" };
+
+  @Override
+  protected String getPluginId() {
+    return TextMarkerLaunchingPlugin.PLUGIN_ID;
+  }
+
+  @Override
+  protected String[] getPossibleInterpreterNames() {
+    return possibleExes;
+  }
+
+  @Override
+  protected IInterpreterInstall doCreateInterpreterInstall(String id) {
+    return new GenericTextMarkerInstall(this, id);
+  }
+
+  @Override
+  protected void filterEnvironment(Map environment) {
+    environment.remove("TMLIBPATH");
+    environment.remove("DISPLAY");
+  }
+
+  @Override
+  public IStatus validateInstallLocation(IFileHandle installLocation) {
+    return Status.OK_STATUS;
+  }
+
+  @Override
+  protected IPath createPathFile(IDeployment deployment) throws IOException {
+    throw new RuntimeException("This method should not be used");
+  }
+
+  @Override
+  protected String[] parsePaths(String result) {
+    ArrayList paths = new ArrayList();
+    String subs = null;
+    int index = 0;
+    while (index < result.length()) {
+      // skip whitespaces
+      while (index < result.length() && Character.isWhitespace(result.charAt(index)))
+        index++;
+      if (index == result.length())
+        break;
+
+      if (result.charAt(index) == '{') {
+        int start = index;
+        while (index < result.length() && result.charAt(index) != '}')
+          index++;
+        if (index == result.length())
+          break;
+        subs = result.substring(start + 1, index);
+      } else {
+        int start = index;
+        while (index < result.length() && result.charAt(index) != ' ')
+          index++;
+        subs = result.substring(start, index);
+      }
+
+      paths.add(subs);
+      index++;
+    }
+
+    return (String[]) paths.toArray(new String[paths.size()]);
+  }
+
+  @Override
+  protected ILog getLog() {
+    return TextMarkerLaunchingPlugin.getDefault().getLog();
+  }
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/GenericTextMarkerInstallType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,63 @@
+package org.apache.uima.tm.dltk.textmarker.internal.launching;
+
+import org.apache.uima.tm.dltk.internal.launching.TextMarkerSourceLookupDirector;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.ILaunch;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
+import org.eclipse.debug.core.model.ISourceLocator;
+import org.eclipse.debug.core.model.IStackFrame;
+import org.eclipse.dltk.debug.core.DLTKDebugPlugin;
+import org.eclipse.dltk.debug.core.IDbgpService;
+import org.eclipse.dltk.debug.core.model.IScriptDebugTarget;
+import org.eclipse.dltk.debug.ui.ScriptStreamProxy;
+import org.eclipse.dltk.internal.debug.core.model.ScriptDebugTarget;
+import org.eclipse.jdt.launching.JavaLaunchDelegate;
+import org.eclipse.ui.console.IOConsole;
+
+
+public class JavaLocalApplicationLaunchConfigurationDelegate extends JavaLaunchDelegate implements
+        ILaunchConfigurationDelegate {
+
+  @Override
+  public String getVMArguments(ILaunchConfiguration configuration) throws CoreException {
+    return super.getVMArguments(configuration);
+  }
+
+  @Override
+  public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch,
+          IProgressMonitor monitor) throws CoreException {
+    // System.out.println("launching");
+    IDbgpService dbgpService = null;
+    try {
+      dbgpService = DLTKDebugPlugin.getDefault().getDbgpService();
+
+      IScriptDebugTarget target = new ScriptDebugTarget("org.apache.uima.tm.dltk.debug.textmarkerModel",
+              dbgpService, "hello", launch, null);
+      IOConsole cs = new IOConsole("aa", null);
+      ScriptStreamProxy proxy = new ScriptStreamProxy(cs);
+      target.setStreamProxy(proxy);
+      launch.addDebugTarget(target);
+      final ISourceLocator sourceLocator = launch.getSourceLocator();
+      final TextMarkerSourceLookupDirector l = new TextMarkerSourceLookupDirector();
+      launch.setSourceLocator(new ISourceLocator() {
+
+        public Object getSourceElement(IStackFrame stackFrame) {
+          Object sourceElement = sourceLocator.getSourceElement(stackFrame);
+          if (sourceElement != null)
+            return sourceElement;
+          return l.getSourceElement(stackFrame);
+        }
+
+      });
+    } catch (Exception e) {
+
+    }
+
+    super.launch(configuration, mode, launch, monitor);
+  }
+
+  public static final String LOCAL_APPLICATION = "debug.localJavaApplication";
+
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java?rev=1152804&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java Mon Aug  1 14:37:34 2011
@@ -0,0 +1,13 @@
+package org.apache.uima.tm.dltk.textmarker.internal.launching;
+
+import org.eclipse.debug.ui.ILaunchConfigurationDialog;
+
+public class JavaLocalApplicationTabGroup extends
+        org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup {
+
+  @Override
+  public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
+    super.createTabs(dialog, mode);
+  }
+
+}

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.dltk.launching/src/main/java/org/apache/uima/tm/dltk/textmarker/internal/launching/JavaLocalApplicationTabGroup.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain