Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.FileFieldEditor


        fHTMLRootDir.setPropertyChangeListener(this);
    }
   
    private void createStartupFileGroup(Composite parent)
    {
        fHTMLRootFile = new FileFieldEditor(
                "",
                "HTML &Startup File:",
                parent);
        fHTMLRootFile.fillIntoGrid(parent, 3);
        fHTMLRootFile.setPropertyChangeListener(this);
View Full Code Here


    mDebugPackageComp = new Composite(comp, SWT.NONE);
    mDebugPackageComp.setLayout(layout);
    mDebugPackageComp.setLayoutData(gd);
    mDebugPackageComp.setFont(font);

    mDebugPackageFilePath = new FileFieldEditor("Test",
        "Debug Package File Path", mDebugPackageComp);

    String[] ext = {".zip"};
    mDebugPackageFilePath.setFileExtensions(ext);
    //fHTMLRootDir.fillIntoGrid(htmlRootDirComp, 3);
View Full Code Here

        Composite compChooser = new Composite(comp, SWT.NONE);
        data = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END);
        data.widthHint = 400;
        compChooser.setLayoutData(data);

        csvChooser = new FileFieldEditor(
                Labels.getString("DataSelectionPage.csv"), Labels.getString("DataSelectionPage.csvMessage"), compChooser); //$NON-NLS-1$ //$NON-NLS-2$
        csvChooser.setFileExtensions(FILTER_EXTS);
        csvChooser.setEmptyStringAllowed(false);
        csvChooser.setPropertyChangeListener(new IPropertyChangeListener() {
            @Override
View Full Code Here

        spacerData.horizontalSpan = 3;
        spacer.setLayoutData(spacerData);
        spacer.setText("Runtime option");
        spacer = new Label(fieldParent, SWT.SEPARATOR | SWT.HORIZONTAL);
        spacer.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
        addField(new FileFieldEditor(PreferenceConstants.IVYSETTINGS_PATH, "&Ivy settings URL:",
                fieldParent) {
            /* Opens the file chooser dialog and returns the selected file as an url. */
            protected String changePressed() {
                String f = super.changePressed();
                if (f == null) {
View Full Code Here

          DirectoryFieldEditor dField =
            new DirectoryFieldEditor(prefAD.getID(), prefAD.getName(), getFieldEditorParent());
          dField.setEmptyStringAllowed(true);
          addField(dField);
        } else if (attrType == PreferenceAD.FILE) {     
          FileFieldEditor fiField =
            new FileFieldEditor(prefAD.getID(), prefAD.getName(), getFieldEditorParent());
          fiField.setEmptyStringAllowed(true);
          addField(fiField);
        } else if (attrType == PreferenceAD.PATH) {     
          PathEditor pField =
            new PathEditor(prefAD.getID(), prefAD.getName(), prefAD.getName(), getFieldEditorParent());
          addField(pField);
View Full Code Here

    fileSelectionLayout.makeColumnsEqualWidth = false;
    fileSelectionLayout.marginWidth = 0;
    fileSelectionLayout.marginHeight = 0;
    fileSelectionArea.setLayout(fileSelectionLayout);
   
    editor = new FileFieldEditor("fileSelect","Select File: ",fileSelectionArea); //NON-NLS-1 //NON-NLS-2
    editor.getTextControl(fileSelectionArea).addModifyListener(new ModifyListener(){
      public void modifyText(ModifyEvent e) {
        IPath path = new Path(ImportWizardPage.this.editor.getStringValue());
        setFileName(path.lastSegment());
      }
View Full Code Here

    }

    // javadoc inherited
    protected void createFieldEditors() {
        if (!communityEdition) {
            final FileFieldEditor driverLocation =
                    new LocationFieldEditor(PREF_ORACLE_DRIVER_LOCATION,
                            EclipseCommonMessages.getString(
                                    "MCSPreferencePage.oracleDriverLocation"),
                            false,
                            getFieldEditorParent());
View Full Code Here

        fileSelectionLayout.makeColumnsEqualWidth = false;
        fileSelectionLayout.marginWidth = 0;
        fileSelectionLayout.marginHeight = 0;
        fileSelectionArea.setLayout(fileSelectionLayout);

        editor = new FileFieldEditor("fileSelect", Messages.getString("ImportParWizardPage.page.parFile"), fileSelectionArea);
        editor.setFileExtensions(new String[] { "*.par" });
        fileSelectionArea.moveAbove(null);

        createListGroup(wholePageComposite);

View Full Code Here

    Label horizontalLine;
   
    horizontalLine = new Label(getFieldEditorParent(), SWT.NONE);
    horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
   
    mplayerPath = new FileFieldEditor(PreferenceConstants.P_MPLAYER_PATH,
        Messages.getString("MPlayerEnginePage.MPlayerPath"), getFieldEditorParent()); //$NON-NLS-1$   
    addField(mplayerPath);  
   
    additionalOptionsEditor = new StringFieldEditor(PreferenceConstants.MPLAYER_ADDITIONAL_OPTIONS,
        Messages.getString("MPlayerEnginePage.MPlayerAdditionalOptions"), //$NON-NLS-1$
View Full Code Here

        {"Internet Explorer", PreferenceConstants.RD_IE},
        {"XVR Full Screen", PreferenceConstants.RD_FS}
    },
    this.getFieldEditorParent());

    this.ie = new FileFieldEditor(PreferenceConstants.RD_IE_PATH, "&Path to internet explorer", true, StringButtonFieldEditor.VALIDATE_ON_KEY_STROKE, this.getFieldEditorParent());
    this.ie.setEnabled(this.getPreferenceStore().getString(PreferenceConstants.RD_VM_USED).equals(PreferenceConstants.RD_IE), getFieldEditorParent());
   
    this.group.load();
    this.ie.load();
   
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.FileFieldEditor

Copyright © 2018 www.massapicom. 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.