Examples of GSContent


Examples of org.springframework.ide.eclipse.wizard.gettingstarted.content.GSContent

   * Downloads currently selected guide content (if it is not already cached locally.
   */
  public void performDownload(IProgressMonitor mon) {
    mon.beginTask("Downloading", 1);
    try {
      GSContent g = guide.getValue();
      if (g!=null) {
        g.getZip().getFile(); //This forces download
      }
    } catch (Exception e) {
      //Don't throw exceptions they are now tracked via downloadStatus.
      WizardPlugin.log(e); //Log for more details than downloadStatus message (i.e. stack trace).
    } finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.wizard.gettingstarted.content.GSContent

   * @throws InvocationTargetException
   */
  public boolean performFinish(IProgressMonitor mon) throws InvocationTargetException, InterruptedException {
    //The import will be carried out with whatever the currently selected values are
    // in all the input fields / variables / widgets.
    GSContent g = guide.getValue();
    BuildType bt = buildType.getValue();
    Set<String> codesetNames = codesets.getValue();

    mon.beginTask("Import guide content", codesetNames.size()+1);
    try {
      for (String name : codesetNames) {
        CodeSet cs = g.getCodeSet(name);
        if (cs==null) {
          //Ignore 'invalid' codesets. This is a bit of a hack so that we can retain selected codeset names
          //  across guide selection changes. To do that we remember 'selected' cs names even if they
          //  aren't valid for the current guide. That way the checkbox state stays consistent
          //  when switching between guides (otherwise 'invalid' names would have to be cleared when switching to
View Full Code Here

Examples of org.springframework.ide.eclipse.wizard.gettingstarted.content.GSContent

    }

    @Override
    protected ValidationResult compute() {
      try {
        GSContent g = codesetProvider.getValue();
        if (g!=null) { //Don't check or produce errors unless a content provider has been selected.
          boolean codesetSelected = false;
          try {
            Set<String> names = selectedNames.getValue();
            if (names != null && !names.isEmpty()) {
              for (String name : names) {
                CodeSet cs = g.getCodeSet(name);
                if (cs!=null) {
                  codesetSelected = true;
                  ImportConfiguration conf = ImportUtils.importConfig(g, cs);
                  ValidationResult valid = ImportUtils.validateImportConfiguration(conf);
                  if (!valid.isOk()) {
View Full Code Here

Examples of org.springframework.ide.eclipse.wizard.gettingstarted.content.GSContent

    grab.applyTo(field);
    grab.applyTo(treeviewer.getControl());

    whenVisible(treeviewer.getControl(), new Runnable() {
      public void run() {
        GSContent preSelect = selection.selection.getValue();
        if (preSelect!=null) {
          treeviewer.setSelection(new StructuredSelection(preSelect), true);
        } else {
          treeviewer.setSelection(StructuredSelection.EMPTY, true);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.