You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/05/30 18:21:17 UTC

svn commit: r542859 - /incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java

Author: twgoetz
Date: Wed May 30 09:21:16 2007
New Revision: 542859

URL: http://svn.apache.org/viewvc?view=rev&rev=542859
Log:
Jira UIMA-421: fix scrolling to end of text when loading annotator.  That's a
problem that seems to have come in with the multi-view code.

https://issues.apache.org/jira/browse/UIMA-421

Modified:
    incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java

Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java?view=diff&rev=542859&r1=542858&r2=542859
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/main/java/org/apache/uima/tools/cvd/MainFrame.java Wed May 30 09:21:16 2007
@@ -92,7 +92,6 @@
 import org.apache.uima.cas.Type;
 import org.apache.uima.cas.TypeSystem;
 import org.apache.uima.cas.impl.CASImpl;
-import org.apache.uima.cas.text.AnnotationFS;
 import org.apache.uima.internal.util.Timer;
 import org.apache.uima.resource.ResourceManager;
 import org.apache.uima.resource.ResourceSpecifier;
@@ -1288,7 +1287,7 @@
   public void setFileStatusMessage() {
     Border textBorder;
     if (this.textFile == null) {
-      textBorder = BorderFactory.createTitledBorder(this.textTitleBorder, "New Text Buffer");
+      textBorder = BorderFactory.createTitledBorder(this.textTitleBorder, "Text");
       // textBorder.setTitleJustification(TitledBorder.ABOVE_TOP);
     } else {
       textBorder = BorderFactory.createTitledBorder(this.textTitleBorder, this.textFile
@@ -1511,12 +1510,12 @@
 
       // reset sofa combo box with just the initial view
 //      this.disableSofaListener = true;
-      this.sofaSelectionComboBox.removeAllItems();
-      this.sofaSelectionComboBox.addItem(CAS.NAME_DEFAULT_SOFA);
+      // I don't know what this does here, but it resets the text, which it shouldn't do at this
+      // point.
+//      this.sofaSelectionComboBox.removeAllItems();
+//      this.sofaSelectionComboBox.addItem(CAS.NAME_DEFAULT_SOFA);
       this.sofaSelectionPanel.setVisible(false);
 //      this.disableSofaListener = false;
-      // MainFrame.this.textArea.setText(null);
-      // MainFrame.this.textArea.repaint();
       MainFrame.this.updateIndexTree(true);
     } catch (Exception e) {
       handleException(e);
@@ -2207,50 +2206,5 @@
     }
   }
 
-  // private void initFocusTraversalPolicy() {
-  //    
-  // FocusTraversalPolicy ftp = new FocusTraversalPolicy() {
-  //
-  // public Component getDefaultComponent(Container arg0)
-  // {
-  // return indexTree;
-  // }
-  //
-  // public Component getFirstComponent(Container arg0)
-  // {
-  // return indexTree;
-  // }
-  //
-  // public Component getLastComponent(Container arg0)
-  // {
-  // return fsTree;
-  // }
-  //
-  // public Component getComponentAfter(Container arg0, Component comp)
-  // {
-  // if (comp == textArea) {
-  // return fsTree;
-  // } else if (comp == fsTree) {
-  // return indexTree;
-  // } else {
-  // return textArea;
-  // }
-  // }
-  //
-  // public Component getComponentBefore(Container arg0, Component comp)
-  // {
-  // if (comp == textArea) {
-  // return indexTree;
-  // } else if (comp == fsTree) {
-  // return textArea;
-  // } else {
-  // return fsTree;
-  // }
-  // }
-  //      
-  // };
-  //    
-  // this.setFocusTraversalPolicy(ftp);
-  // }
 
 }