changeset 5983:1fe2a517b2cc

Ensemble8: Fix for RT-34881 Modena app tries to load non-existing file
author Alexander Kouznetsov
date Thu, 12 Dec 2013 17:44:42 -0800
parents 63a950c66105
children 1332ba0d7f6a
files apps/experiments/Modena/src/main/java/modena/SamplePageHelpers.java apps/experiments/Modena/src/main/java/modena/SamplePageTableHelper.java
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/apps/experiments/Modena/src/main/java/modena/SamplePageHelpers.java	Thu Dec 12 16:33:35 2013 -0800
+++ b/apps/experiments/Modena/src/main/java/modena/SamplePageHelpers.java	Thu Dec 12 17:44:42 2013 -0800
@@ -335,27 +335,19 @@
     
     static MenuItem[] createMenuContents() {
         List<MenuItem> menuItems = new ArrayList<>();
-//        Menu menu11 = makeMenu("_New", new ImageView(new Image(getClass().getResourceAsStream("about_16.png"))));
-//        final Menu menu11 = new Menu("_New", new ImageView(new Image("helloworld/about_16.png")));
-//        MenuItem menu12 = new MenuItem("_Open", new ImageView(new Image("helloworld/folder_16.png")));
         final Menu menu11 = new Menu("_New");
         MenuItem menu12 = new MenuItem("_Open");
         menu12.getStyleClass().add("OpenMenuItem");
         menu12.setAccelerator(new KeyCharacterCombination("]", 
                 KeyCombination.SHIFT_DOWN, KeyCombination.META_DOWN));
         Menu menu13 = new Menu("_Submenu");
-//        CheckMenuItem showMessagesItem = new CheckMenuItem("Enable onShowing/onHiding _messages", 
-//                                             new ImageView(new Image("helloworld/about_16.png")));
-        CheckMenuItem showMessagesItem = new CheckMenuItem("Enable onShowing/onHiding _messages");
         MenuItem menu15 = new MenuItem("E_xit");
         final String change[] = {"Change Text", "Change Back"};
         final MenuItem menu16 = new MenuItem(change[0]);
-        final boolean toggle = false;
         menu16.setAccelerator(KeyCombination.keyCombination("Shortcut+C"));
         menuItems.add(menu11);
         menuItems.add(menu12);
         menuItems.add(menu13);
-//        menuItems.add(showMessagesItem);
         menuItems.add(menu16);
         menuItems.add(new SeparatorMenuItem());
         menuItems.add(CheckMenuItemBuilder.create().text("Check").build());
--- a/apps/experiments/Modena/src/main/java/modena/SamplePageTableHelper.java	Thu Dec 12 16:33:35 2013 -0800
+++ b/apps/experiments/Modena/src/main/java/modena/SamplePageTableHelper.java	Thu Dec 12 17:44:42 2013 -0800
@@ -273,9 +273,7 @@
                 System.out.println("Edit commit event: " + t.getNewValue());
             }
         });
-        final Node graphic1 = new ImageView(new Image("file:src/helloworld/about_16.png"));
         lastNameCol = new TableColumn<Person, String>();
-        lastNameCol.setGraphic(graphic1);
         lastNameCol.setText("Last");
         lastNameCol.setSortType(TableColumn.SortType.DESCENDING);
         lastNameCol.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Person, String>, ObservableValue<String>>() {