Package org.eclipse.swt.printing

Examples of org.eclipse.swt.printing.PrintDialog


        printer.dispose();
    }

    public static void printDialog(Shell shell, Document doc, String url,
            NamespaceHandler nsh, String jobName) {
        PrintDialog dlg = new PrintDialog(shell);
        dlg.setText(jobName);
        PrinterData data = dlg.open();
        if (data != null) {
            print(data, doc, url, nsh, jobName);
        }
    }
View Full Code Here


        }
    }

    public static void printDialog(Shell shell, String url,
            NamespaceHandler nsh, String jobName) {
        PrintDialog dlg = new PrintDialog(shell);
        dlg.setText(jobName);
        PrinterData data = dlg.open();
        if (data != null) {
            print(data, url, nsh, jobName);
        }
    }
View Full Code Here

    @Override
    public void run()
    {
        NeoGraphViewPart view = (NeoGraphViewPart) getWorkbenchPart();
        // let the user select the print mode
        PrintDialog dialog = new PrintDialog(
                view.getViewer().getControl().getShell(), SWT.NULL );
        PrinterData data = dialog.open();
        if ( data != null )
        {
            // TODO This is only a temporary implementation, until the Zest
            // Graph supports true
            // scalable printing...
View Full Code Here

       * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse
       * .swt.events.SelectionEvent)
       */
      @Override
      public void widgetSelected(SelectionEvent arg0) {
        PrintDialog dialog = new PrintDialog(shell);
        PrinterData data = dialog.open();
        if (data == null)
          return;
        Printer printer = new Printer(data);
        GC gc = new GC(printer);

View Full Code Here

TOP

Related Classes of org.eclipse.swt.printing.PrintDialog

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.