Package org.jitterbit.application.ui.window

Examples of org.jitterbit.application.ui.window.AbstractWindowElementResource


            if (editor instanceof GenericEditor) {
                ((GenericEditor) editor).setSubTitle(tx.getName());
            }
            editor.setEditable(true);
            editor.decorateText(TextStyles.DefaultText.asTextDecorator());
            editor.addResource(new AbstractWindowElementResource() {

                @Override
                public void dispose(WindowElement e) {
                    file.delete();
                }
View Full Code Here


    private JButton toolkitButton(TransformationPage page) {
        JPopupMenu popup = createToolkitPopupMenu(page);
        final PopupMenuButton toolkit = new PopupMenuButton("", getToolkitIcon(), popup);
        // HACK: If we don't dispose the toolkit button when the page is closed the page is never
        // garbage collected. This shouldn't be necessary, and we should look into what causes this.
        page.addResource(new AbstractWindowElementResource() {

            @Override
            public void dispose(WindowElement e) {
                toolkit.dispose();
            }
View Full Code Here

     */
    public OperationActivityMonitorPageSite(GenericEditor page) {
        this.page = page;
        canvas = new JPanel(new BorderLayout());
        canvas.setOpaque(false);
        page.addResource(new AbstractWindowElementResource() {

            @Override
            public void dispose(WindowElement e) {
                if (activityMonitor != null) {
                    activityMonitor.dispose();
View Full Code Here

    }

    private ScriptPadEditor createEditor(ScriptPad pad) {
        assert this.editor == null : "There is already a Script Pad editor open.";
        ScriptPadEditor editor = new ScriptPadEditor(pad);
        editor.addResource(new AbstractWindowElementResource() {

            @Override
            public void dispose(WindowElement e) {
                ScriptPadEditorDisplayer.this.pad.onPadClosed();
                close();
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.window.AbstractWindowElementResource

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.