JDK 11 jdk.editpad.jmod - Edit Pad Module

JDK 11 jdk.editpad.jmod is the JMOD file for JDK 11 Edit Pad module.

JDK 11 Edit Pad module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.editpad.jmod.

JDK 11 Edit Pad module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Edit Pad module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.editpad.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

jdk/editpad/EditPadProvider.java

/*
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package jdk.editpad;

import java.util.concurrent.CountDownLatch;
import java.util.function.Consumer;
import javax.swing.SwingUtilities;
import jdk.internal.editor.spi.BuildInEditorProvider;

/**
 * Defines the provider of an Edit Pad implementation.
 *
 * @author Robert Field
 */
public class EditPadProvider implements BuildInEditorProvider {

    /**
     * @return the rank of a provider, greater is better.
     */
    @Override
    public int rank() {
        return 5;
    }

    /**
     * Create an Edit Pad minimal editor.
     *
     * @param windowLabel the label string for the Edit Pad window, or null,
     * for default window label
     * @param initialText the source to load in the Edit Pad
     * @param saveHandler a handler for changed source (can be sent the full source)
     * @param errorHandler a handler for unexpected errors
     */
    @Override
    public void edit(String windowLabel, String initialText,
            Consumer<String> saveHandler, Consumer<String> errorHandler) {
        CountDownLatch closeLock = new CountDownLatch(1);
        SwingUtilities.invokeLater(
                new EditPad(windowLabel, errorHandler, initialText, closeLock::countDown, saveHandler));
        do {
            try {
                closeLock.await();
                break;
            } catch (InterruptedException ex) {
                // ignore and loop
            }
        } while (true);
    }
}

jdk/editpad/EditPadProvider.java

 

Or download all of them as a single archive file:

File name: jdk.editpad-11.0.1-src.zip
File size: 2992 bytes
Release date: 2018-11-04
Download 

 

JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module

JDK 11 jdk.dynalink.jmod - Dynamic Linking Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-02-29, 2053👍, 0💬