Creates a FloatCtiEditor.
            For the parameters see the AbstractCti constructor documentation.
483299
def createEditor(self, delegate, parent, option):
        
        return FloatCtiEditor(self, delegate, parent=parent)
680272
def createEditor(self, delegate, parent, _option):
        
        return GroupCtiEditor(self, delegate, parent=parent)
1143943
function (paintStyle, referenceAnchor, endpoint, referenceCanvas, sourceElement, _jsPlumb, _newEndpoint, scope) {
		var floatingAnchor = new _jp.FloatingAnchor({ reference: referenceAnchor, referenceCanvas: referenceCanvas, jsPlumbInstance: _jsPlumb });
		//setting the scope here should not be the way to fix that mootools issue.  it should be fixed by not
		// adding the floating endpoint as a droppable.  that makes more sense anyway!
		// TRANSIENT MANAGE
		return _newEndpoint({
			paintStyle: paintStyle,
			endpoint: endpoint,
			anchor: floatingAnchor,
			source: sourceElement,
			scope: scope
		});
	}
1248093
def create():
        
        # First, try to use ctypes.
        if ctypes:
            inotify = _CtypesLibcINotifyWrapper()
            if inotify.init():
                return inotify
        # Second, see if C extension is compiled.
        if inotify_syscalls:
            inotify = _INotifySyscallsWrapper()
            if inotify.init():
                return inotify
528180
def create_tutorial_layout(self):
        
        lexer, _, _ = get_lexers(self.shell_ctx.lexer, None, None)
        layout_full = HSplit([
            FloatContainer(
                Window(
                    BufferControl(
                        input_processors=self.input_processors,
                        lexer=lexer,
                        preview_search=Always()),
                    get_height=get_height),
                [
                    Float(xcursor=True,
                          ycursor=True,
                          content=CompletionsMenu(
                              max_height=MAX_COMPLETION,
                              scroll_offset=1,
                              extra_filter=(HasFocus(DEFAULT_BUFFER))))]),
            ConditionalContainer(
                HSplit([
                    get_hline(),
                    get_param(lexer),
                    get_hline(),
                    Window(
                        content=BufferControl(
                            buffer_name='example_line',
                            lexer=lexer
                        ),
                    ),
                    Window(
                        TokenListControl(
                            get_tutorial_tokens,
                            default_char=Char(' ', Token.Toolbar)),
                        height=LayoutDimension.exact(1)),
                ]),
                filter=~IsDone() & RendererHeightIsKnown()
            )
        ])
        return layout_full
3743
protected function initEditor(): void
    {
        $view = $this->getView();

        CKEditorAsset::register($view);
        CKEditorAssetAddition::register($view);

        $id = $this->options['id'];

        $clientOptions = !empty($this->clientOptions) ? Json::encode($this->clientOptions) : '{}';

        $js = [];

        $js[] = "CKEDITOR.replace('$id', $clientOptions);";
        $js[] = "initItstructureOnChangeHandler('$id');";

        if (array_key_exists('filebrowserUploadUrl', $this->clientOptions) ||
            array_key_exists('filebrowserImageUploadUrl', $this->clientOptions)) {
            $js[] = "initItstructureCsrfHandler();";
        }

        $view->registerJs(implode("\n", $js));
    }
728158
private static MutablePicoContainer createContainer(ComponentContainer parent) {
    ComponentMonitor componentMonitor = new NullComponentMonitor();
    ReflectionLifecycleStrategy lifecycleStrategy = new StopSafeReflectionLifecycleStrategy(componentMonitor) {
      @Override
      public boolean isLazy(ComponentAdapter<?> adapter) {
        return adapter.getComponentImplementation().getAnnotation(EagerStart.class) == null;
      }
    };

    return new DefaultPicoContainer(new OptInCaching(), lifecycleStrategy, parent.getPicoContainer(), componentMonitor);
  }
292413
private void createDecoder()
    {
        decoder = new DOMAnalyzer(doc, base);
        if (encoding == null)
            encoding = decoder.getCharacterEncoding();
        decoder.setDefaultEncoding(encoding);
        decoder.attributesToStyles();
        decoder.addStyleSheet(null, CSSNorm.stdStyleSheet(), DOMAnalyzer.Origin.AGENT);
        decoder.addStyleSheet(null, CSSNorm.userStyleSheet(), DOMAnalyzer.Origin.AGENT);
        decoder.getStyleSheets();
    }
944172
public void doCreate(Composite parentComposite, IDialogSettings settings) {
		// Introduction
		final String introductionMessage = getIntroductionLabel();
		if (!Strings.isEmpty(introductionMessage)) {
			final GridData gd = new GridData();
			gd.grabExcessHorizontalSpace = true;
			gd.horizontalAlignment = GridData.FILL_HORIZONTAL;
			gd.horizontalSpan = 2;
			final Label textWidget = new Label(parentComposite, SWT.WRAP);
			textWidget.setLayoutData(gd);
			textWidget.setText(introductionMessage);
			textWidget.setFont(parentComposite.getFont());
		}
		//
		final GridData gd = new GridData(GridData.FILL_BOTH);
		gd.heightHint = HEIGHT_HINT;
		gd.widthHint = WIDTH_HINT;
		this.table = new Table(parentComposite, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
		this.table.setLayoutData(gd);
		this.table.setFont(parentComposite.getFont());
		this.table.setHeaderVisible(true);
		this.table.setLinesVisible(true);
		this.table.setLinesVisible(true);

		TableColumn column = new TableColumn(this.table, SWT.NULL);
		column.setText(getSourceColumnLabel());
		if (!this.isSortedElements) {
			column.addSelectionListener(new SelectionAdapter() {
				@SuppressWarnings("synthetic-access")
				@Override
				public void widgetSelected(SelectionEvent event) {
					sortBySourceColumn();
					AbstractConversionTable.this.list.refresh(true);
				}
			});
		}
		column.setWidth(DEFAULT_WIDTH);

		column = new TableColumn(this.table, SWT.NULL);
		column.setText(getTargetColumnLabel());
		if (!this.isSortedElements) {
			column.addSelectionListener(new SelectionAdapter() {
				@SuppressWarnings("synthetic-access")
				@Override
				public void widgetSelected(SelectionEvent event) {
					sortByTargetColumn();
					AbstractConversionTable.this.list.refresh(true);
				}
			});
		}
		column.setWidth(DEFAULT_WIDTH);

		this.list = new TableViewer(this.table);
		this.list.setLabelProvider(createLabelProvider());
		this.list.setContentProvider(createContentProvider());
		this.list.setUseHashlookup(true);

		this.list.addSelectionChangedListener(evt -> enableButtons());

		this.table.addKeyListener(new KeyAdapter() {
			@SuppressWarnings("synthetic-access")
			@Override
			public void keyPressed(KeyEvent event) {
				if (event.character == SWT.DEL && event.stateMask == 0) {
					if (AbstractConversionTable.this.removeButton.isEnabled()) {
						removeCurrentTypeConversion();
					}
				}
			}
		});

		this.editors = new CellEditor[2];
		this.editors[0] = createSourceColumnEditor();
		this.editors[1] = createTargetColumnEditor();
		this.list.setCellEditors(this.editors);

		this.cellModifier = createCellModifier();
		this.list.setColumnProperties(new String[] {SOURCE_COLUMN_PROPERTY, TARGET_COLUMN_PROPERTY});
		this.list.setCellModifier(this.cellModifier);

		final Composite buttons = SWTFactory.createComposite(parentComposite, parentComposite.getFont(), 1, 1,
				GridData.VERTICAL_ALIGN_BEGINNING, 0, 0);

		final Button addButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_0, null);
		addButton.addListener(SWT.Selection, evt -> addTypeConversion(null, null, true));

		this.removeButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_1, null);
		this.removeButton.addListener(SWT.Selection, evt -> removeCurrentTypeConversion());

		this.clearButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_2, null);
		this.clearButton.addListener(SWT.Selection, evt -> removeAllTypeConversions());

		if (this.isSortedElements) {
			this.moveTopButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_3, null);
			this.moveTopButton.addListener(SWT.Selection, evt -> moveSelectionTop());

			this.moveUpButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_4, null);
			this.moveUpButton.addListener(SWT.Selection, evt -> moveSelectionUp());

			this.moveDownButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_5, null);
			this.moveDownButton.addListener(SWT.Selection, evt -> moveSelectionDown());

			this.moveBottomButton = SWTFactory.createPushButton(buttons, Messages.AbstractConversionTable_6, null);
			this.moveBottomButton.addListener(SWT.Selection, evt -> moveSelectionBottom());
		}

		SWTFactory.createVerticalSpacer(parentComposite, 1);

		// Register the preference key(s)
		registerKey(getPreferenceKey());

		// Fill the content of the table
		updateControls();

		// Enable/disable the buttons
		enableButtons();

		// By default, sort by name
		restoreColumnSettings(settings);
	}
1255578
private void initGraphEditorWindow()
	{
	    // create the window
	    GraphEditorWindow editor = new GraphEditorWindow();

	    whiskasPanel.setEditor(editor);

	    graphEditorFrame= new JFrame("Whiskas Gradient Editor");
	    graphEditorFrame.getContentPane().add(editor);
	    graphEditorFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
	    graphEditorFrame.pack();
	    graphEditorFrame.setSize(600, 300);
	    graphEditorFrame.setLocation(this.getX(), this.getY()+this.getHeight());
	    graphEditorFrame.setVisible(true);
	    
//		try {
//			InputStream in = ParticleEditor.class.getClassLoader().getResourceAsStream("org/newdawn/slick/tools/peditor/data/icon.gif");
//			
//			//graphEditorFrame.setIconImage(ImageIO.read(in));
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
	}
1128706
def createEditor(self, parent, column, operator, value):
        
        if type(value) == datetime.timedelta:
            editor = XTimeDeltaEdit(parent)
            editor.setAttribute(Qt.WA_DeleteOnClose)
            editor.setDelta(value)
            return editor
        
        else:
            editor = super(DateTimePlugin, self).createEditor(parent,
                                                              column,
                                                              operator,
                                                              value)
        
            if isinstance(editor, XDateTimeEdit) or \
               isinstance(editor, XDateEdit):
                editor.setCalendarPopup(True)
            
            return editor
350802
public static Janitor createJanitor(String type)
   {
      if (type == null || type.equals(""))
         return new MinimalJanitor();

      type = type.toLowerCase(Locale.US);
      
      switch (type)
      {
         case "minimal":
            return new MinimalJanitor();
         case "full":
            return new FullJanitor();
         default:
         {
            return new MinimalJanitor();
         }
      }
   }
934538
public void appendFloat(float x) {
        ByteArrayOutputStream buffer = new ByteArrayOutputStream(4);
        DataOutputStream bufout = new DataOutputStream(buffer);
        try {
            bufout.writeFloat(x);
            appendBytes(buffer.toByteArray(), 0, 4);
        } catch (IOException e) {
            throw new AssertionError("write");
        }
    }
993540
public SAXEncoder createEXIWriter() throws EXIException {
		final FidelityOptions fidelityOptions = exiFactory.getFidelityOptions();
		if (fidelityOptions.isFidelityEnabled(FidelityOptions.FEATURE_PREFIX)
				|| fidelityOptions
						.isFidelityEnabled(FidelityOptions.FEATURE_COMMENT)
				|| fidelityOptions
						.isFidelityEnabled(FidelityOptions.FEATURE_PI)
				|| fidelityOptions
						.isFidelityEnabled(FidelityOptions.FEATURE_DTD)) {
			return new SAXEncoderExtendedHandler(exiFactory);
		} else {
			return new SAXEncoder(exiFactory);
		}
	}
450717
public static CmsInheritanceContainerEditor openInheritanceContainerEditor(
        CmsGroupContainerElementPanel groupContainer,
        CmsContainerpageController controller,
        CmsContainerpageHandler handler) {

        // making sure only a single instance of the group-container editor is open
        if (INSTANCE != null) {
            CmsDebugLog.getInstance().printLine("group-container editor already open");
        } else {
            CmsInheritanceContainerEditor editor = new CmsInheritanceContainerEditor(
                groupContainer,
                controller,
                handler);
            RootPanel.get().add(editor);
            editor.openDialog(Messages.get().key(Messages.GUI_INHERITANCECONTAINER_CAPTION_0));
            groupContainer.refreshHighlighting();
            INSTANCE = editor;
        }
        return INSTANCE;
    }
1229699
def createEditor(self, parent, option, index):
        """"""
        # bring up separate window for component parameters
        view = parent.parentWidget()
        component = view.model().data(index)

        if component is not None:
            editor = component.showEditor()
        else:
            print 'delegate data type', type(component)
            raise Exception('UnknownDelegateType')

        # connect editor to update defaults
        editor.attributesSaved.connect(view.updateDefaults)
        editor.attributesSaved.connect(view.somethingChanged)

        if component.name == 'Vocalization':
            # find any associated file auto-parameters
            files = view.model().autoParams().findFileParam(component)
            if files is not None:
                editor.selectMany(files)
            editor.vocalFilesChanged.connect(view.updateVocalAuto)

        return editor
339852
function createAbstractClass(params, constructor) {
        var def,
            savedMembers,
            key,
            value;

        // Handle abstract methods
        if (hasOwn(params, '$abstracts')) {
            savedMembers = params.$abstracts;
            delete params.$abstracts;
        }

        // Create the class definition
        def = Class.$create(params, constructor);
        def[$abstract] = true;

        // Grab binds
        if (savedMembers) {
            for (key in savedMembers) {
                value = savedMembers[key];

                if (value[$bound]) {
                    insert(def[$class].binds, key);
                }
            }
        }

        return def;
    }