Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Text.forceFocus()


          IPath selectedPath = (IPath) selectedContainers[0];
          IFolder selectedFolder = project.getParent().getFolder(selectedPath);
          IPath projectRelativePath = selectedFolder.getProjectRelativePath();
          EOGeneratorFormPage.this.getModel().setDestination(projectRelativePath.toPortableString());
        }
        destination.forceFocus();
      }
    });

    Label subclassDestinationLabel = toolkit.createLabel(pathsSection, "Subclass Destination:");
    subclassDestinationLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
View Full Code Here


          IPath selectedPath = (IPath) selectedContainers[0];
          IFolder selectedFolder = project.getParent().getFolder(selectedPath);
          IPath projectRelativePath = selectedFolder.getProjectRelativePath();
          EOGeneratorFormPage.this.getModel().setSubclassDestination(projectRelativePath.toPortableString());
        }
        subclassDestination.forceFocus();
      }
    });

    Composite templatesSection = createSection(toolkit, parent, "Templates", "These paths specify the templates that will be used to generate files.  If left blank, the defaults from the EOGenerator preference page will be used.", 1, 3);
    GridLayout templatesSectionLayout = (GridLayout) templatesSection.getLayout();
View Full Code Here

        directoryDialog.setFilterPath(EOGeneratorFormPage.this.getModel().getTemplateDir());
        String selectedDirectory = directoryDialog.open();
        if (selectedDirectory != null) {
          EOGeneratorFormPage.this.getModel().setTemplateDir(selectedDirectory);
        }
        templatesFolder.forceFocus();
      }
    });

    Label templateLabel = toolkit.createLabel(templatesSection, "Template:");
    templateLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
View Full Code Here

      public void widgetSelected(SelectionEvent selectionevent) {
        String selectedTemplate = EOGeneratorFormPage.this.selectTemplate("Select the superclass template.");
        if (selectedTemplate != null) {
          EOGeneratorFormPage.this.getModel().setJavaTemplate(selectedTemplate);
        }
        template.forceFocus();
      }
    });

    Label subclassTemplateLabel = toolkit.createLabel(templatesSection, "Subclass Template:");
    subclassTemplateLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
View Full Code Here

      public void widgetSelected(SelectionEvent selectionevent) {
        String selectedTemplate = EOGeneratorFormPage.this.selectTemplate("Select the subclass template.");
        if (selectedTemplate != null) {
          EOGeneratorFormPage.this.getModel().setSubclassJavaTemplate(selectedTemplate);
        }
        subclassTemplate.forceFocus();
      }
    });

    Composite outputOptionsSection = createSection(toolkit, parent, "Options", "These flags control various output options for generated source.", 1, 3);
    GridLayout outputOptionsLayout = (GridLayout) outputOptionsSection.getLayout();
View Full Code Here

    Listener traverseListener = new TraverseListener();
    detailsText.addListener(SWT.Traverse, traverseListener);
    commentsText.addListener(SWT.Traverse, traverseListener);
   
    shell.layout();
    detailsText.forceFocus();
  }
 
  class CommentsTextListener implements FocusListener, ModifyListener {
    String defaultText = Labels.getLabel("text.comment.edit");
   
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.