Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1847

UIContext.getSelection() always return null

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.5.0.Final
    • Fix Version/s: 2.6.0.Final
    • Component/s: UI - Shell
    • Labels:
      None

      Description

      value.setDefaultValue(new Callable<JavaResource>() {
       @Override
       public JavaResource call() throws Exception {   
          Object selected = builder.getUIContext().getSelection();
          if(selected != null && selected instanceof JavaResource) {
             return (JavaResource)selected;
          }
          return null;
       }
      });
      

      Object selected is always null.

      Using InitalSelection works as expected.

      Object selected = builder.getUIContext().getInitialSelection().get();
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                aslak Aslak Knutsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: