Adapts the helper text of the dialog's edit text widget.
775580
private void adaptHelperText() {
        if (textInputLayout != null && TextUtils.isEmpty(getText())) {
            textInputLayout.setHelperText(helperText);
            textInputLayout.setHelperTextEnabled(true);
        }
    }
201383
public void setEditText(final EditText editText, final String text) {
		if(editText != null){
			final String previousText = editText.getText().toString();
	
			inst.runOnMainSync(new Runnable()
			{
				public void run()
				{
					editText.setInputType(InputType.TYPE_NULL); 
					editText.performClick();
					dialogUtils.hideSoftKeyboard(editText, false, false);
					if(text.equals(""))
						editText.setText(text);
					else{
						editText.setText(previousText + text);
						editText.setCursorVisible(false);
					}
				}
			});
		}
	}
761708
function() {
    this.textarea.style.width = this.getTdEl().offsetWidth + "px";
    this.textarea.style.height = "3em";
    YAHOO.widget.TextareaCellEditor.superclass.move.call(this);
}
890672
private void adjustWidgets(String implCategory) {
        // adjust to add script language options param
        Map<Integer,Widget> companions = new HashMap<>();
        for (int i = 0; i < widgets.size(); i++) {
            Widget widget = widgets.get(i);
            if ("expression".equals(widget.type) || ("edit".equals(widget.type) && !"Java".equals(widget.name))) {
                Widget companion = new Widget("SCRIPT", "dropdown");
                companion.setAttribute("label", "Language");
                companion.options = Arrays.asList(widget.getAttribute("languages").split(","));
                if (companion.options.contains("Groovy"))
                    companion.setAttribute("default", "Groovy");
                else if (companion.options.contains("Kotlin Script"))
                    companion.setAttribute("default", "Kotlin Script");
                String section = widget.getAttribute("section");
                if (section != null)
                    companion.setAttribute("section", section);
                companions.put(i, companion);
            }
        }
        int offset = 0;
        for (int idx : companions.keySet()) {
            widgets.add(idx + offset, companions.get(idx));
            offset++;
        }
    }
1104185
def setEditable( self, state ):
        
        super(XComboBox, self).setEditable(state)
        
        if state:
            edit = self.lineEdit()
            if edit and isinstance(edit, XLineEdit):
                return
            elif edit:
                edit.setParent(None)
                edit.deleteLater()
            
            edit = XLineEdit(self)
            edit.setHint(self.hint())
            self.setLineEdit(edit)
458994
def format_help_text(self, ctx, formatter):
        """"""
        if self.help:
            formatter.write_paragraph()
            with formatter.indentation():
                formatter.write_text(self.help)
1034934
def updatetext(self):
        """"""
        if self.TEXTCONTAINER:
            s = ""
            for child in self:
                if isinstance(child, AbstractElement):
                    child.updatetext()
                    s += child.text()
                elif isstring(child):
                    s += child
            self.data = [s]
796481
protected void updateText() 
    {
        super.updateText();
        _exampleInfo[3].setText("[PageUp] Next model");
        _exampleInfo[4].setText("[PageDown] Previous model");
        _exampleInfo[5].setText("[1] Generate polygon type A ");
        _exampleInfo[6].setText("[2] Generate polygon type B ");
    }
526269
protected void editSRE() {
		final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection();
		final ISREInstall sre = (ISREInstall) selection.getFirstElement();
		if (sre == null) {
			return;
		}
		final EditSREInstallWizard wizard = new EditSREInstallWizard(
				sre, this.sreArray.toArray(new ISREInstall[this.sreArray.size()]));
		final WizardDialog dialog = new WizardDialog(getShell(), wizard);
		if (dialog.open() == Window.OK) {
			this.sresList.setSelection(new StructuredSelection(sre));
			this.sresList.refresh(true);
			updateUI();
		}
	}
841915
def setText( self, text ):
        
        super(XNavigationEdit, self).setText(text)
        
        self.scrollWidget().show()
        if ( text == '' or self._originalText != text ):
            self.rebuild()
953328
public void updateTitle() {

        m_publishDialog.setCaption(
            Messages.get().key(
                Messages.GUI_PUBLISH_DIALOG_PROBLEMS_2,
                m_publishDialog.getSelectedWorkflow().getNiceName(),
                String.valueOf(m_list.getWidgetCount())));
    }
741911
function(options) {
     inputEx.widget.dtInPlaceEdit.superclass.setOptions.call(this, options);
     
     this.options.allowModify = false;
		this.options.insertWithDialog = lang.isUndefined(options.insertWithDialog) ? false : options.insertWithDialog; 
   }
1145308
public void editElementSettings(final CmsContainerPageElementPanel elementWidget) {

        m_controller.getElementSettingsConfig(
            elementWidget.getId(),
            elementWidget.getParentTarget().getContainerId(),
            new I_CmsSimpleCallback<CmsElementSettingsConfig>() {

                public void execute(final CmsElementSettingsConfig settingsConfig) {

                    CmsContainerElementData elementBean = settingsConfig.getElementData();

                    if (!elementBean.getClientId().equals(elementWidget.getId())) {
                        // the client id may have changed, update the element widget
                        elementWidget.setId(elementBean.getClientId());
                    }
                    Map<String, String> settingPresets = getSettingPresets(elementWidget);
                    try {
                        CmsElementSettingsDialog dialog = new CmsElementSettingsDialog(
                            m_controller,
                            elementWidget,
                            settingsConfig,
                            settingPresets);
                        dialog.center();
                    } catch (NoFormatterException e) {
                        String ctype = "???";
                        String cname = "???";
                        String schema = "???";
                        if (settingsConfig.getSchema() != null) {
                            schema = settingsConfig.getSchema();
                        }
                        try {
                            I_CmsDropContainer dropContainer = elementWidget.getParentTarget();
                            if (dropContainer instanceof CmsContainerPageContainer) {
                                CmsContainerPageContainer cpc = (CmsContainerPageContainer)dropContainer;
                                ctype = cpc.getContainerType();
                                cname = cpc.getContainerId();
                            }
                        } catch (Exception e2) {
                            /*ignore*/ }
                        String path = "???";
                        try {
                            path = elementBean.getSitePath();
                        } catch (Exception e2) {
                            /*ignore*/ }
                        CmsAlertDialog alert = new CmsAlertDialog(
                            org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_ERROR_0),
                            Messages.get().key(Messages.GUI_NO_FORMATTER_4, path, cname, ctype, schema));
                        alert.center();
                    }
                }

                /**
                 * Gets the map of setting presets.<p>
                 *
                 * @param elementWidget2 the element widget
                 * @return the setting presets
                 */
                private Map<String, String> getSettingPresets(CmsContainerPageElementPanel elementWidget2) {

                    I_CmsDropContainer dropContainer = elementWidget2.getParentTarget();
                    if (dropContainer instanceof CmsContainerPageContainer) {
                        CmsContainerPageContainer container = (CmsContainerPageContainer)dropContainer;
                        return container.getSettingPresets();
                    } else {
                        return new HashMap<String, String>();
                    }
                }
            });
    }
305546
function(oldRange, newRange, oldText, newText)
    {
        if (!this._internalTextChangeMode)
            this._textModel.resetUndoStack();
        this._mainPanel.textChanged(oldRange, newRange);
        this._gutterPanel.textChanged(oldRange, newRange);
        this._updatePanelOffsets();
    }
1006647
public void setToolTipText(String text) {
        this.toolTipText = text;
        if (toolTipDialog != null) {
            toolTipDialog.setText(text);
        }
    }
1253587
function() {
			var el = this.parts.dialog;
			var dialogSize = this.getSize();
			var win = CKEDITOR.document.getWindow(),
					viewSize = win.getViewPaneSize();

			var posX = ( viewSize.width - dialogSize.width ) / 2,
				posY = ( viewSize.height - dialogSize.height ) / 2;

			// Switch to absolute position when viewport is smaller than dialog size.
			if ( !CKEDITOR.env.ie6Compat ) {
				if ( dialogSize.height + ( posY > 0 ? posY : 0 ) > viewSize.height ||
						 dialogSize.width + ( posX > 0 ? posX : 0 ) > viewSize.width )
					el.setStyle( 'position', 'absolute' );
				else
					el.setStyle( 'position', 'fixed' );
			}

			this.move( this._.moved ? this._.position.x : posX,
					this._.moved ? this._.position.y : posY );
		}
1265436
function editorUpdate() {
    if (editor.binding) {
      if ('hold' === generator.clientUpdateFragmentText(editor.binding, editor.$edit.val())) {
        editor.holding = true;
      }
    }
  }