DirectoryFieldEditor vicePathMac = null;
554072
@Override
	protected Control createContents(Composite parent) {
		Composite top = new Composite(parent, SWT.LEFT);

		// Sets the layout data for the top composite's 
		// place in its parent's layout.
		top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

		// Sets the layout for the top composite's 
		// children to populate.
		top.setLayout(new GridLayout());
			
		if(Platform.getOS().equalsIgnoreCase(Platform.OS_MACOSX)){
			vdmPathMac = new DirectoryFieldEditor(ICskConstants.VSLGDE_PATH, "Path to VDM Tools for VDM-SL (vdmgde):", top);
			vdmPathMac.setPage(this);
			vdmPathMac.setPreferenceStore(getPreferenceStore());
			vdmPathMac.load();
			
			vppPathMac = new DirectoryFieldEditor(ICskConstants.VPPGDE_PATH, "Path to VDM Tools for VDM-PP (vppgde):", top);
			vppPathMac.setPage(this);
			vppPathMac.setPreferenceStore(getPreferenceStore());
			vppPathMac.load();
			
//			vicePathMac = new DirectoryFieldEditor(ICskConstants.VRTGDE_PATH, "Path to VDMTools for VICE  (vicegde):", top);
//			vicePathMac.setPage(this);
//			vicePathMac.setPreferenceStore(getPreferenceStore());
//			vicePathMac.load();
			
			Label listLabel = new Label(top, SWT.BOLD);
			listLabel.setText("NOTE: select the \"bin\" folder just above \"vxxgde\"");
		}
		else
		{
			vdmPath = new FileFieldEditor(ICskConstants.VSLGDE_PATH, "Path to VDM Tools for VDM-SL (vdmgde):", top);
			vdmPath.setPage(this);
			vdmPath.setPreferenceStore(getPreferenceStore());
			vdmPath.load();
			
			vppPath = new FileFieldEditor(ICskConstants.VPPGDE_PATH, "Path to VDM Tools for VDM-PP (vppgde):", top);
			vppPath.setPage(this);
			vppPath.setPreferenceStore(getPreferenceStore());
			vppPath.load();
			
//			vicePath = new FileFieldEditor(ICskConstants.VRTGDE_PATH, "Path to VDMTools for VICE  (vicegde):", top);
//			vicePath.setPage(this);
//			vicePath.setPreferenceStore(getPreferenceStore());
//			vicePath.load();
		}
		
		return top;
	}
1071862
public void createFieldEditors() {
		addField(new DirectoryFieldEditor(PreferenceConstants.P_MAVEN_HOME, "&Maven home folder:", getFieldEditorParent()));

		addField(new DirectoryFieldEditor(PreferenceConstants.P_DEFAULT_ROOT_FOLDER,   "Default root folder:", getFieldEditorParent()));

//		addField(new RadioGroupFieldEditor(PreferenceConstants.P_ECLIPSE_GOAL, "Maven Eclipse goal", 1,
//			new String[][] { { "eclipse:eclipse", "eclipse:eclipse" }, {"eclipse:m2eclipse", "eclipse:m2eclipse" }
//		}, getFieldEditorParent()));

		addField(new StringFieldEditor(PreferenceConstants.P_GROOVY_MODEL, "Custom Groovy model:", getFieldEditorParent()));

		addField(new StringFieldEditor(PreferenceConstants.P_SFTP_ROOT_FOLDER,         "Default SFTP root folder:", getFieldEditorParent()));
		
//		addField(
//			new BooleanFieldEditor(
//				PreferenceConstants.P_BOOLEAN,
//				"&An example of a boolean preference",
//				getFieldEditorParent()));

	}
760514
private void buildField(
        Map<String, CmsClientProperty> ownProps,
        final String propName,
        CmsClientProperty.Mode mode) {

        String entryId = m_handler.getId().toString();
        CmsXmlContentProperty propDef = m_propertyConfig.get(propName);

        if (propDef == null) {
            String widget = CmsClientProperty.PROPERTY_TEMPLATE.equals(propName) ? "template" : "string";
            propDef = new CmsXmlContentProperty(
                propName,
                "string",
                widget,
                "",
                null,
                null,
                null,
                null,
                null,
                null,
                null);
        }

        if (mode != Mode.effective) {
            propDef = propDef.withNiceName(propName);
        }

        CmsClientProperty ownProp = m_properties.get(propName);
        CmsPathValue pathValue = CmsClientProperty.getPathValue(ownProp, mode).prepend(entryId + "/" + propName + "/");

        //CHECK: should fields other than NavText be really automatically allowed to be empty in navigation mode?
        final String tab = tabs.get(mode);
        final CmsBasicFormField field = CmsBasicFormField.createField(
            propDef,
            pathValue.getPath() + "#" + tab,
            this,
            Collections.<String, String> emptyMap(),
            true);

        CmsPair<String, String> defaultValueAndOrigin = getDefaultValueToDisplay(ownProp, mode);
        String defaultValue = "";
        String origin = "";
        if (defaultValueAndOrigin != null) {
            defaultValue = defaultValueAndOrigin.getFirst();
            origin = defaultValueAndOrigin.getSecond();
        }
        final Widget w = (Widget)field.getWidget();
        I_CmsStringModel model = getStringModel(pathValue);
        field.bind(model);
        boolean ghost = CmsStringUtil.isEmptyOrWhitespaceOnly(pathValue.getValue());
        String initialValue = pathValue.getValue();
        if (w instanceof I_CmsHasGhostValue) {
            ((I_CmsHasGhostValue)w).setGhostValue(defaultValue, ghost);
            if (ghost) {
                initialValue = null;
            }
        }
        if (w instanceof HasFocusHandlers) {
            try {
                ((HasFocusHandlers)w).addFocusHandler(new FocusHandler() {

                    @SuppressWarnings("synthetic-access")
                    public void onFocus(FocusEvent event) {

                        if ((w instanceof CmsTextBox) || (w instanceof CmsTextArea)) {
                            m_activeFieldData = new CmsActiveFieldData(field, tab, propName);
                        } else {
                            // field received focus, but it doesn't make sense to restore it later
                            m_activeFieldData = null;
                        }
                    }
                });
            } catch (Exception e) {
                CmsDebugLog.consoleLog("" + e);
            }

        }

        boolean isShowingGhost = ghost && !CmsStringUtil.isEmpty(defaultValue);

        if (isShowingGhost) {
            field.getLayoutData().put("info", origin);
        }
        if (!ghost || isShowingGhost) {
            field.getLayoutData().put(CmsPropertyPanel.LD_DISPLAY_VALUE, "true");
        }
        field.getLayoutData().put(CmsPropertyPanel.LD_PROPERTY, propName);
        field.getLayoutData().put("tab", tab);
        m_form.addField(tab, field, initialValue);
    }
131625
function find_program(program_dir) {

  const files_in_program_dir = fs.readdirSync(program_dir);

  for (let i = 0; i < files_in_program_dir.length; i++) {
    const file = files_in_program_dir[i];
    if (file.includes('Adobe After Effects'))
      return path.join(program_dir, file);
  }

  return null;
}
438654
public void tryToRestoreFieldData(CmsActiveFieldData fieldDataToBeRestored) {

        if (fieldDataToBeRestored == null) {
            return;
        }
        m_markedProperty = null;
        final String propName = fieldDataToBeRestored.getProperty();
        final String tabName = fieldDataToBeRestored.getTab();
        m_markedProperty = propName;
        final int tabIndex;
        if (TAB_INDIVIDUAL.equals(tabName)) {
            tabIndex = 1;
        } else if (TAB_SHARED.equals(tabName)) {
            tabIndex = 2;
        } else {
            tabIndex = 0;
        }

        Timer timer = new Timer() {

            @Override
            public void run() {

                if ((tabIndex >= 0) && (tabIndex < m_tabPanel.getTabCount())) {
                    I_CmsFormField markedField = null;
                    m_tabPanel.selectTab(tabIndex);
                    @SuppressWarnings("synthetic-access")
                    Collection<I_CmsFormField> fieldsForTab = m_fieldsByGroup.get(tabName);
                    if ((fieldsForTab != null) && !fieldsForTab.isEmpty()) {
                        for (I_CmsFormField currentField : fieldsForTab) {
                            if (currentField.getLayoutData().get(LD_PROPERTY).equals(propName)) {
                                markedField = currentField;
                                break;
                            }
                        }
                    }
                    if (markedField != null) {
                        final I_CmsFormField constMarkedField = markedField;
                        Timer timer2 = new Timer() {

                            @Override
                            @SuppressWarnings("synthetic-access")
                            public void run() {

                                focusField(constMarkedField);
                            }

                        };
                        timer2.schedule(1);
                    }
                }

            }

            private void focusField(final I_CmsFormField constMarkedField) {

                I_CmsFormWidget widget = constMarkedField.getWidget();
                if (widget instanceof CmsTextBox) {
                    CmsTextBox box = (CmsTextBox)widget;
                    box.selectAll();
                    box.setFocus(true);
                } else if (widget instanceof CmsTextArea) {
                    CmsTextArea textarea = ((CmsTextArea)widget);
                    textarea.selectAll();
                    textarea.setFocus(true);
                }
            }
        };
        timer.schedule(1);

    }
359917
private void buildGui() {
		left = toInteger(getElement().getStyle().getLeft());
		top = toInteger(getElement().getStyle().getTop());
		zoomInElement.getElement().setInnerText("+");
		zoomOutElement.getElement().setInnerText("-");
		StopPropagationHandler preventWeirdBehaviourHandler = new StopPropagationHandler();

		// Calculate height:
		int y = 0;
		for (int i = 0; i < viewPort.getResolutionCount(); i++) {
			final int count = i;

			SimplePanel zoomStep = new SimplePanel();
			zoomStep.setSize(ZOOMBUTTON_SIZE + "px", (ZOOMSTEP_HEIGHT + 1) + "px");
			zoomStep.setStyleName(resource.css().zoomStepControlStep());
			zoomStep.addDomHandler(new ClickHandler() {

				public void onClick(ClickEvent event) {
					double scale = viewPort.getResolution(viewPort.getResolutionCount() - count - 1);
					viewPort.applyResolution(scale);
					event.stopPropagation();
				}
			}, ClickEvent.getType());
			zoomStep.addDomHandler(preventWeirdBehaviourHandler, MouseDownEvent.getType());
			zoomStep.addDomHandler(preventWeirdBehaviourHandler, MouseUpEvent.getType());
			zoomStep.addDomHandler(preventWeirdBehaviourHandler, ClickEvent.getType());
			zoomStep.addDomHandler(preventWeirdBehaviourHandler, DoubleClickEvent.getType());
			zoomStepsPanel.add(zoomStep, 0, y);
			y += ZOOMSTEP_HEIGHT;
		}
		zoomStepsPanel.setSize(ZOOMBUTTON_SIZE + "px", (y + 1) + "px");
		setSize(ZOOMBUTTON_SIZE + "px", (y + (ZOOMBUTTON_SIZE * 2) + 1) + "px");

		// Zoom in button:
		zoomInElement.addDomHandler(new ClickHandler() {

			public void onClick(ClickEvent event) {
				int index = viewPort.getResolutionIndex(viewPort.getResolution());
				if (index < viewPort.getResolutionCount() - 1) {
					viewPort.registerAnimation(NavigationAnimationFactory.createZoomIn(mapPresenter));
				}
				event.stopPropagation();
			}
		}, ClickEvent.getType());
		zoomInElement.addDomHandler(preventWeirdBehaviourHandler, MouseDownEvent.getType());
		zoomInElement.addDomHandler(preventWeirdBehaviourHandler, MouseUpEvent.getType());
		zoomInElement.addDomHandler(preventWeirdBehaviourHandler, ClickEvent.getType());
		zoomInElement.addDomHandler(preventWeirdBehaviourHandler, DoubleClickEvent.getType());

		// Zoom out button:
		zoomOutElement.addDomHandler(new ClickHandler() {

			public void onClick(ClickEvent event) {
				int index = viewPort.getResolutionIndex(viewPort.getResolution());
				if (index > 0) {
					viewPort.registerAnimation(NavigationAnimationFactory.createZoomOut(mapPresenter));
				}
				event.stopPropagation();
			}
		}, ClickEvent.getType());
		zoomOutElement.addDomHandler(preventWeirdBehaviourHandler, MouseDownEvent.getType());
		zoomOutElement.addDomHandler(preventWeirdBehaviourHandler, MouseUpEvent.getType());
		zoomOutElement.addDomHandler(preventWeirdBehaviourHandler, ClickEvent.getType());
		zoomOutElement.addDomHandler(preventWeirdBehaviourHandler, DoubleClickEvent.getType());

		// Add the zoom handle:
		ZoomStephandler zoomStepHandler = new ZoomStephandler();
		zoomStepHandler.setMinY(top + ZOOMBUTTON_SIZE);
		zoomStepHandler.setMaxY(top + ZOOMBUTTON_SIZE + (viewPort.getResolutionCount() - 1) * ZOOMSTEP_HEIGHT);
		zoomHandle.addDomHandler(zoomStepHandler, MouseDownEvent.getType());
		addDomHandler(zoomStepHandler, MouseUpEvent.getType());
		addDomHandler(zoomStepHandler, MouseMoveEvent.getType());
		addDomHandler(zoomStepHandler, MouseOutEvent.getType());

		// Apply correct positions for all widgets:
		applyPositions();
	}
1133686
public function getViewPath()
    {
        return is_null($this->_nsedModuleViewPath) ?
        parent::getViewPath()
        . DIRECTORY_SEPARATOR
        . array_pop(explode('\\', $this->controllerNamespace)) :
        parent::getViewPath();
    }
819336
private <F extends FileDescriptor> void scanPath(MavenProjectDirectoryDescriptor projectDescriptor, String path, Scope scope, Scanner scanner) {
        File file = new File(path);
        if (!file.exists()) {
            LOGGER.debug(file.getAbsolutePath() + " does not exist, skipping.");
        } else {
            F fileDescriptor = scanFile(projectDescriptor, file, path, scope, scanner);
            if (fileDescriptor != null) {
                projectDescriptor.getContains().add(fileDescriptor);
            }
        }
    }
317954
function(flvtool, cb) {
        if (flvtool.length) {
          return cb(null, flvtool);
        }

        if (process.env.FLVTOOL2_PATH) {
          fs.exists(process.env.FLVTOOL2_PATH, function(exists) {
            cb(null, exists ? process.env.FLVTOOL2_PATH : '');
          });
        } else {
          cb(null, '');
        }
      }
953692
@Override
    protected void configureFindbugsEngine() {
        addBoolOption("-formatDates", formatDates);
        addBoolOption("-noTabs", noTabs);
        addBoolOption("-summary", summary);
        addArg(inputFile.getName());
        if (outputFile != null) {
            // Don't use .getName() because it discards path
            addArg(outputFile.getAbsolutePath());
        }
    }
41072
private void initFileDirTables(Path path) throws IOException {
    FileStatus[] stats = fs.listStatus(path);
    if (stats != null) {
      for (FileStatus stat : stats) {
        if (stat.isDir()) {
          dirs.add(stat.getPath().toString());
          initFileDirTables(stat.getPath());
        } else {
          Path filePath = stat.getPath();
          if (filePath.getName().startsWith(StructureGenerator.FILE_NAME_PREFIX)) {
            files.add(filePath.toString());
          }
        }
      }
    }
  }
758899
private ElementUI parentFromPath(String path) throws Exception {
        if (TOOLBAR_PATH.equalsIgnoreCase(path)) {
            return getDesktop().getToolbar();
        }
        
        String[] pieces = path.split(delim, 2);
        ElementTabPane tabPane = pieces.length == 0 ? null : findTabPane(pieces[0]);
        ElementUI parent = pieces.length < 2 ? null : getPathResolver().resolvePath(tabPane, pieces[1]);
        return parent == null ? tabPane : parent;
    }
303930
function getClickDataset(path) {
            var el;
            for (var i = 0; i < path.length; i++) {
                el = path[i];
                if (el.dataset.nctr !== undefined) {
                    return el.dataset;
                }
            }
            return null;
        }
888534
public void setEditedFilePath(final String editedFilePath) {

        m_filePathField.setReadOnly(false);
        m_filePathField.setValue(editedFilePath);
        m_filePathField.setReadOnly(true);

    }
155724
def change_exteditor(self):
        """"""
        path, valid = QInputDialog.getText(self, _('External editor'),
                          _('External editor executable path:'),
                          QLineEdit.Normal,
                          self.get_option('external_editor/path'))
        if valid:
            self.set_option('external_editor/path', to_text_string(path))
738665
function layoutEditorUpdateData( divId, paramsObj ) {
	log( "layout-editor", "start '"+JSON.stringify(paramsObj)+"'");
	//alert(divId+": ... try to load "+paramsObj.rowId ); 
	if ( ( paramsObj != null ) && ( paramsObj.page_id != null ) ) {
		moduleConfig[ divId ].page_id = paramsObj.page_id;
	} else { 
		paramsObj = { "page_id":moduleConfig[ divId ].page_id };
	}
	pongLayoutBackendCall( "GET", divId, paramsObj, false );
	log( "layout-editor", "end.");
}
439274
def on_directory_button_tool_clicked(self):
        """"""
        # noinspection PyCallByClass,PyTypeChecker
        # set up parameter from dialog
        input_path = self.layer.currentLayer().source()
        input_directory, self.output_filename = os.path.split(input_path)
        file_extension = os.path.splitext(self.output_filename)[1]
        self.output_filename = os.path.splitext(self.output_filename)[0]
        # show Qt file directory dialog
        output_path, __ = QtWidgets.QFileDialog.getSaveFileName(
            self,
            self.tr('Output file'),
            '%s_multi_buffer%s' % (
                os.path.join(input_directory, self.output_filename),
                file_extension),
            'GeoJSON (*.geojson);;Shapefile (*.shp)')
        # set selected path to the dialog
        self.output_form.setText(output_path)