You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2011/11/14 16:40:27 UTC

svn commit: r1201755 - in /pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer: BXmlExplorerWindow.java bxml_explorer_window.bxml

Author: noelgrandin
Date: Mon Nov 14 15:40:26 2011
New Revision: 1201755

URL: http://svn.apache.org/viewvc?rev=1201755&view=rev
Log:
implement some suggestions from Sandro
- hide files without the .bxml extension
- only use the filename for the tab title

Modified:
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXmlExplorerWindow.java
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml

Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXmlExplorerWindow.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXmlExplorerWindow.java?rev=1201755&r1=1201754&r2=1201755&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXmlExplorerWindow.java (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXmlExplorerWindow.java Mon Nov 14 15:40:26 2011
@@ -133,7 +133,7 @@ public class BXmlExplorerWindow extends 
                 }
 
                 tabPane.getTabs().add(tab);
-                TabPane.setTabData(tab, "Document " + tabPane.getTabs().getLength());
+                TabPane.setTabData(tab, "New File " + tabPane.getTabs().getLength());
                 tabPane.setSelectedIndex(tabPane.getTabs().getLength() - 1);
                 closeButton.setEnabled(true);
             }
@@ -192,7 +192,7 @@ public class BXmlExplorerWindow extends 
                         }
 
                         tabPane.getTabs().add(tab);
-                        TabPane.setTabData(tab, "Document " + f.getName());
+                        TabPane.setTabData(tab, f.getName());
                         tabPane.setSelectedIndex(tabPane.getTabs().getLength() - 1);
                         closeButton.setEnabled(true);
                     }

Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml?rev=1201755&r1=1201754&r2=1201755&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml Mon Nov 14 15:40:26 2011
@@ -12,7 +12,7 @@
   xmlns="org.apache.pivot.wtk">
 
   <bxml:define>
-    <FileBrowserSheet bxml:id="fileBrowserSheet" />
+    <FileBrowserSheet bxml:id="fileBrowserSheet" styles="{hideDisabledFiles:true}"/>
   </bxml:define>
 
   <actionMappings>