Examples of UIPlugin


Examples of com.puppetlabs.geppetto.ui.UIPlugin

      super(name, selection);
    }

    @Override
    protected void createDestinationGroup(Composite parent) {
      UIPlugin plugin = UIPlugin.getInstance();
      Group destinationGroup = new Group(parent, SWT.NONE);
      GridLayout layout = new GridLayout();
      destinationGroup.setLayout(layout);
      destinationGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));
      destinationGroup.setText(plugin.getString("_UI_Forge_Credentials_label"));
      destinationGroup.setFont(parent.getFont());

      Font font = destinationGroup.getFont();

      Label loginLabel = new Label(destinationGroup, SWT.NONE);
      loginLabel.setText(plugin.getString("_UI_Login_label"));
      loginLabel.setFont(font);

      loginField = new Text(destinationGroup, SWT.BORDER | SWT.READ_ONLY);
      GridData data = new GridData(GridData.FILL_HORIZONTAL);
      data.widthHint = SIZING_TEXT_FIELD_WIDTH;
      loginField.setLayoutData(data);
      loginField.setFont(font);

      Label passwordLabel = new Label(destinationGroup, SWT.NONE);
      passwordLabel.setText(plugin.getString("_UI_Password_label"));
      passwordLabel.setFont(font);

      passwordField = new Text(destinationGroup, SWT.BORDER | SWT.PASSWORD);
      data = new GridData(GridData.FILL_HORIZONTAL);
      data.widthHint = SIZING_TEXT_FIELD_WIDTH;
View Full Code Here

Examples of com.puppetlabs.geppetto.ui.UIPlugin

      passwordField.addListener(SWT.Modify, this);
    }

    @Override
    protected void createOptionsGroupButtons(Group optionsGroup) {
      UIPlugin plugin = UIPlugin.getInstance();
      Font font = optionsGroup.getFont();
      saveInSecureStoreButton = new Button(optionsGroup, SWT.CHECK);
      saveInSecureStoreButton.setText(plugin.getString("_UI_SaveInSecureStorage_label"));
      saveInSecureStoreButton.addListener(SWT.Selection, this);
      saveInSecureStoreButton.setFont(font);

      dryRunButton = new Button(optionsGroup, SWT.CHECK);
      dryRunButton.setText(plugin.getString("_UI_DryRun_label"));
      dryRunButton.setFont(font);
      dryRunButton.setSelection(false);
    }
View Full Code Here

Examples of com.puppetlabs.geppetto.ui.UIPlugin

        return false;

      try {
        @SuppressWarnings("unchecked")
        List<IResource> whiteCheckedResources = getWhiteCheckedResources();
        UIPlugin plugin = UIPlugin.getInstance();
        String owner = null;
        Diagnostic diag = new Diagnostic();
        for(ExportSpec spec : getExportSpecs(whiteCheckedResources)) {
          try {
            Metadata md = getForge().createFromModuleDirectory(
              spec.getModuleRoot(), false, spec.getFileFilter(), null, diag);
            if(md != null) {
              ModuleName name = md.getName();
              if(owner == null)
                owner = name.getOwner();
              else if(!owner.equals(name.getOwner())) {
                setErrorMessage(plugin.getString("_UI_MultipleModuleOwners"));
                return false;
              }
            }
          }
          catch(IOException e) {
          }
        }

        if(owner == null) {
          setErrorMessage(plugin.getString("_UI_NoModulesSelected"));
          return false;
        }
        if(!owner.equals(loginField.getText())) {
          // Owner changed
          validationChange = 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.