Initializes common attributes such as operations and default fitness.
<p/>
Requires {@link #formula}/{@link #variables} to be already fully loaded.
183232
protected void initCommons() {
        this.setTrueOperations = new ArrayList<SetTrueOperation>(this.dimension);
        this.setFalseOperations = new ArrayList<SetFalseOperation>(this.dimension);
        SetTrueOperation setTrueOperation;
        SetFalseOperation setFalseOperation;
        for (int i = 0; i < this.dimension; ++i) {
            setTrueOperation = new SetTrueOperation(this.variables.get(i));
            setFalseOperation = new SetFalseOperation(this.variables.get(i));
            setTrueOperation.setReverse(setFalseOperation);
            setFalseOperation.setReverse(setTrueOperation);
            this.setTrueOperations.add(setTrueOperation);
            this.setFalseOperations.add(setFalseOperation);
        }
        // create starting configuration
        List<Integer> tmp = new ArrayList<Integer>(this.dimension);
        for (int i = 0; i < this.dimension; ++i) tmp.add(0);
        this.startingConfiguration = new Configuration(tmp, "Empty SAT created");
    }
381834
@Override
  public void initialize() {
    if (this.initialized.compareAndSet(false, true)){
      SwingUtilities.invokeLater(new Runnable() {

        @Override
        public void run() {
          labelMindMapName.setText(mindMapName);
          checkBoxFindInComments.setSelected(findInCommentsDefaultFlag);
          if (!panelScope.initialize(lookup, new AtomicBoolean())){
            labelScopeName.setVisible(false);
            panelScope.setVisible(false);
          }else{
            labelScopeName.setVisible(true);
            panelScope.setVisible(true);
          }
        }
      });
    }
  }
635855
protected void initMojoMultiValueParameters() {

		// Set default values for 'checkFileSets' to "src/main/resources/*.btdesign"
		if (checkFileSets == null) {
			FileSet defaultFileSet = new FileSet();
			defaultFileSet.setDirectory(project.getBasedir() + "/src/main/resources");
			defaultFileSet.addInclude("*.btdesign");
			checkFileSets = new FileSet[] { defaultFileSet };
		}
	}
1215228
private static void init() {
        String pkgs = System.getProperty("java.protocol.handler.pkgs");
        if (pkgs == null || pkgs.trim().length() == 0) {
            pkgs = "org.jboss.net.protocol|org.jboss.vfs.protocol";
            System.setProperty("java.protocol.handler.pkgs", pkgs);
        } else if (pkgs.contains("org.jboss.vfs.protocol") == false) {
            if (pkgs.contains("org.jboss.net.protocol") == false) { pkgs += "|org.jboss.net.protocol"; }
            pkgs += "|org.jboss.vfs.protocol";
            System.setProperty("java.protocol.handler.pkgs", pkgs);
        }
    }
667896
private void initJavaFXTaglets() {
        addStandardTaglet(new PropertyGetterTaglet());
        addStandardTaglet(new PropertySetterTaglet());
        addStandardTaglet(new SimpleTaglet("propertyDescription",
                message.getText("doclet.PropertyDescription"),
                SimpleTaglet.FIELD + SimpleTaglet.METHOD));
        addStandardTaglet(new SimpleTaglet("defaultValue", message.getText("doclet.DefaultValue"),
            SimpleTaglet.FIELD + SimpleTaglet.METHOD));
        addStandardTaglet(new SimpleTaglet("treatAsPrivate", null,
                SimpleTaglet.FIELD + SimpleTaglet.METHOD + SimpleTaglet.TYPE));
    }
112748
private void initWimAttributes() throws LdapException {

        Log.info(c, "initWimAttributes", "entry");

        /*
         * Initialize some branches to hold the attributes.
         */
        Entry entry = newEntry("cn=ibm, ou=schema");
        entry.add("objectclass", "metaSchema");
        entry.add("objectclass", "top");
        entry.add("cn", "ibm");
        add(entry);

        entry = newEntry("ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "organizationalUnit");
        entry.add("objectclass", "top");
        entry.add("ou", "attributetypes");
        add(entry);

        /*
         * Attributes will start with the OID 1.3.6.1.4.1.18060.0.4.3.2.1 and increment
         * for each attribute. This OID is one that was assigned to Apache and that they
         * use for their examples.
         */
        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.1, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.1");
        entry.add("m-name", "photoUrl");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.2, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.2");
        entry.add("m-name", "photoURLThumbnail");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.3, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.3");
        entry.add("m-name", "homeStreet");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.4, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.4");
        entry.add("m-name", "homeCity");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.5, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.5");
        entry.add("m-name", "homeStateOrProvinceName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.6, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.6");
        entry.add("m-name", "homePostalCode");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.7, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.7");
        entry.add("m-name", "homeCountryName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.8, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.8");
        entry.add("m-name", "businessStreet");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.9, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.9");
        entry.add("m-name", "businessCity");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.10, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.10");
        entry.add("m-name", "businessStateOrProvinceName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.11, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.11");
        entry.add("m-name", "businessPostalCode");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.12, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.12");
        entry.add("m-name", "businessCountryName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.13, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.13");
        entry.add("m-name", "middleName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.14, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.14");
        entry.add("m-name", "honorificSuffix");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.15, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.15");
        entry.add("m-name", "honorificPrefix");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.16, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.16");
        entry.add("m-name", "nickName");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.17, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.17");
        entry.add("m-name", "profileUrl");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.18, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.18");
        entry.add("m-name", "locale");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.19, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.19");
        entry.add("m-name", "timezone");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.20, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.20");
        entry.add("m-name", "active");
        entry.add("m-equality", "booleanMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.7");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.21, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.21");
        entry.add("m-name", "ims");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "FALSE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.22, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.22");
        entry.add("m-name", "extendedProperty1");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "TRUE");
        add(entry);

        entry = newEntry("m-oid=1.3.6.1.4.1.18060.0.4.3.2.23, ou=attributetypes, cn=ibm, ou=schema");
        entry.add("objectclass", "metaAttributeType");
        entry.add("objectclass", "metaTop");
        entry.add("objectclass", "top");
        entry.add("m-oid", "1.3.6.1.4.1.18060.0.4.3.2.23");
        entry.add("m-name", "extendedProperty2");
        entry.add("m-equality", "caseIgnoreMatch");
        entry.add("m-syntax", "1.3.6.1.4.1.1466.115.121.1.15");
        entry.add("m-singleValue", "FALSE");
        add(entry);

        Log.info(c, "initWimAttributes", "exit");
    }
858713
@Override
	public String initValuesImpl(final FieldCase c) {
		if (c == FieldCase.NULL) {
			return null;
		}
		String value = source.initValues(c);
		if (value == null) {
			return defaultValue;
		}
		return value;
	}
670349
@Override
    protected void initializeImpl()
    {
        String value=this.getConfigurationValue(FaxClientSpiConfigurationConstants.HTTP_CLIENT_CLASS_NAME_PROPERTY_KEY);
        if(value==null)
        {
            value=ApacheHTTPClient.class.getName();
        }

        //create HTTP client
        this.httpClient=(HTTPClient)ReflectionHelper.createInstance(value);
        
        //create configuration
        this.httpClientConfiguration=this.createHTTPClientConfiguration();

        //create fax job to HTTP request converter
        this.faxJob2HTTPRequestConverter=this.createFaxJob2HTTPRequestConverter();

        //create HTTP response handler
        this.httpResponseHandler=this.createHTTPResponseHandler();

        //get resources
        Map<FaxActionType,String> map=this.initializeFaxActionType2ResourceMap();
        this.faxActionType2ResourceMap=new HashMap<FaxActionType,String>(map);
        
        //get URL parameters
        this.urlParameters=this.initializeURLParameters();
    }
1252793
private void initAttribute(Object pAttrval) {
        if (pAttrval instanceof String) {
            attributeNames = EscapeUtil.split((String) pAttrval,EscapeUtil.CSV_ESCAPE,",");
            multiAttributeMode = attributeNames.size() > 1;
        } else if (pAttrval instanceof Collection) {
            Collection<String> attributes = (Collection<String>) pAttrval;
            if (attributes.size() == 1 && attributes.iterator().next() == null) {
                attributeNames = null;
                multiAttributeMode = false;
            } else {
                attributeNames = new ArrayList<String>(attributes);
                multiAttributeMode = true;
            }
        } else if (pAttrval == null) {
            attributeNames = null;
            multiAttributeMode = false;
        } else {
            throw new IllegalArgumentException("Attribute names must be either a String, Collection or null (and not " + pAttrval.getClass() + ")");
        }
    }
679552
private void initValues() throws VarExploderException
    {

        Class<?> c = source.getClass();
        if (c.isAnnotation() || c.isArray() || c.isEnum() || c.isPrimitive())
        {
            throw new IllegalArgumentException("The value must an object");
        }

        if(source instanceof Map )
        {
            this.pairs = (Map<String,Object>) source;
            return;
        }
        Method[] methods = c.getMethods();
        for (Method method : methods)
        {
            inspectGetters(method);
        }
        scanFields(c);
    }
705087
protected void initSettingsObject() {

        Object o;
        if (CmsStringUtil.isEmpty(getParamAction())) {
            o = new CmsXmlContentRepairSettings(getCms());
        } else {
            // this is not the initial call, get the settings object from session
            o = getDialogObject();
        }

        if (o == null) {
            // create a new settings object
            m_settings = new CmsXmlContentRepairSettings(getCms());
        } else {
            // reuse settings object stored in session
            m_settings = (CmsXmlContentRepairSettings)o;
        }

    }
1335198
public void init() {
		N = getParameterLength();
		jacR = new DMatrixRMaj[N];
		for (int i = 0; i < N; i++) {
			jacR[i] = new DMatrixRMaj(3,3);
		}
		jacobian = new DMatrixRMaj(N,9);
		paramInternal = new double[N];
		numericalJac = createNumericalAlgorithm(function);
	}
99690
protected void initializeAttributeIndices() {
    //m_AttributeIndices.setUpper(m_Data.numAttributes() - 1);
    m_ActiveIndices = new boolean[m_Data.numAttributes()];
    for (int i = 0; i < m_ActiveIndices.length; i++)
      m_ActiveIndices[i] = true; //m_AttributeIndices.isInRange(i);
  }
369377
private void init() {
        writers.put(Boolean.class, new BooleanDataWriter());
        writers.put(Calendar.class, new CalendarDataWriter());
        writers.put(Date.class, new DateDataWriter());
        writers.put(Enum.class, new EnumDataWriter());
        writers.put(Number.class, new NumberDataWriter());
        writers.put(String.class, new StringDataWriter());
    }
1032627
@SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    labelTitle = new javax.swing.JLabel();
    textFieldSearchText = new javax.swing.JTextField();
    buttonPrev = new javax.swing.JButton();
    buttonNext = new javax.swing.JButton();
    labelClose = new javax.swing.JLabel();
    filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
    toggleButtonCaseSensitive = new javax.swing.JToggleButton();
    panelButtonsForMap = new javax.swing.JPanel();
    toggleButtonTopicText = new javax.swing.JToggleButton();
    toggleButtonNote = new javax.swing.JToggleButton();
    toggleButtonFile = new javax.swing.JToggleButton();
    toggleButtonURI = new javax.swing.JToggleButton();

    setLayout(new java.awt.GridBagLayout());

    labelTitle.setText("Find:");
    labelTitle.setFocusable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 10.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 16, 0, 8);
    add(labelTitle, gridBagConstraints);

    textFieldSearchText.setFocusTraversalPolicyProvider(true);
    textFieldSearchText.addKeyListener(new java.awt.event.KeyAdapter() {
      public void keyPressed(java.awt.event.KeyEvent evt) {
        textFieldSearchTextKeyPressed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 16);
    add(textFieldSearchText, gridBagConstraints);

    buttonPrev.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/resultset_previous.png"))); // NOI18N
    buttonPrev.setToolTipText("Find previous (SHFT+ENTER)");
    buttonPrev.setFocusable(false);
    buttonPrev.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        buttonPrevActionPerformed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 10.0;
    add(buttonPrev, gridBagConstraints);

    buttonNext.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/resultset_next.png"))); // NOI18N
    buttonNext.setToolTipText("Find next (ENTER)");
    buttonNext.setFocusable(false);
    buttonNext.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        buttonNextActionPerformed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 10.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 16);
    add(buttonNext, gridBagConstraints);

    labelClose.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    labelClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/nimbusCloseFrame.png"))); // NOI18N
    labelClose.setToolTipText("Close search form (ESC)");
    labelClose.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    labelClose.setFocusable(false);
    labelClose.addMouseListener(new java.awt.event.MouseAdapter() {
      public void mouseClicked(java.awt.event.MouseEvent evt) {
        labelCloseMouseClicked(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 7;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 8);
    add(labelClose, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100000.0;
    add(filler1, gridBagConstraints);

    toggleButtonCaseSensitive.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/find/case16.png"))); // NOI18N
    toggleButtonCaseSensitive.setToolTipText("Case sensitive mode");
    toggleButtonCaseSensitive.setFocusable(false);
    toggleButtonCaseSensitive.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        toggleButtonCaseSensitiveActionPerformed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 8);
    add(toggleButtonCaseSensitive, gridBagConstraints);

    panelButtonsForMap.setLayout(new java.awt.GridBagLayout());

    toggleButtonTopicText.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/find/text16.png"))); // NOI18N
    toggleButtonTopicText.setToolTipText("Find in topic title");
    toggleButtonTopicText.setFocusable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    panelButtonsForMap.add(toggleButtonTopicText, gridBagConstraints);

    toggleButtonNote.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/find/note16.png"))); // NOI18N
    toggleButtonNote.setToolTipText("Find in topic notes");
    toggleButtonNote.setFocusable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    panelButtonsForMap.add(toggleButtonNote, gridBagConstraints);

    toggleButtonFile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/find/disk16.png"))); // NOI18N
    toggleButtonFile.setToolTipText("Find in file links");
    toggleButtonFile.setFocusable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    panelButtonsForMap.add(toggleButtonFile, gridBagConstraints);

    toggleButtonURI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/find/url16.png"))); // NOI18N
    toggleButtonURI.setToolTipText("Find in URI links");
    toggleButtonURI.setFocusable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    panelButtonsForMap.add(toggleButtonURI, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    add(panelButtonsForMap, gridBagConstraints);
  }
1154945
private void initialize() {
        this.setName(Constant.messages.getString("options.script.title"));
        this.setLayout(new GridBagLayout());

        GridBagConstraints gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.weightx = 1.0;
        gbc.anchor = GridBagConstraints.LINE_START;
        gbc.fill = GridBagConstraints.BOTH;

        this.add(new JLabel(Constant.messages.getString("options.script.label.dirs")), gbc);

        tokensOptionsPanel = new AntiCsrfMultipleOptionsPanel(this.extension, getScriptDirModel());
        
        gbc.weighty = 1.0;
        this.add(tokensOptionsPanel, gbc);
	}
1113232
private void initialize() {
		if (selection != null && selection.isEmpty() == false
				&& selection instanceof IStructuredSelection) {
			IStructuredSelection iStructuredSelection = (IStructuredSelection) selection;
			
			if (iStructuredSelection.size() > 0) {
				Object selectedObject = iStructuredSelection.getFirstElement();
				IProject project = null;
				
				if (selectedObject instanceof IJavaProject) {
					project = ((IJavaProject)selectedObject).getProject();
				} else if (selectedObject instanceof IJavaElement) {
					IJavaProject jProject= ((IJavaElement)selectedObject).getJavaProject();
					project = jProject.getProject();
				} else if (selectedObject instanceof IResource) {
					project = ((IResource)selectedObject).getProject();
				} 
				
				if (project != null) {
					projectText.setText(project.getName());
				}
			}
		}
		serviceText.setText("mySample");
	}