Examples of Print


Examples of de.willuhn.jameica.gui.internal.action.Print

    addItem(new CheckedContextMenuItem(i18n.tr("L�schen..."), new DBObjectDelete(),"user-trash-full.png"));
    addItem(ContextMenuItem.SEPARATOR);
    addItem(new CheckedContextMenuItem(i18n.tr("Drucken..."),new Action() {
      public void handleAction(Object context) throws ApplicationException
      {
        new Print().handleAction(new PrintSupportLastschriftList(context));
      }
    },"document-print.png"));
    addItem(new CheckedContextMenuItem(i18n.tr("Exportieren..."),new LastschriftExport(),"document-save.png"));
  }
View Full Code Here

Examples of fork.lib.base.Print

   
   
public static void main(String[] args) throws Exception{ //debug
   
    String[] aa= new String[]{"aaa", "bbb", "sfsd"};
    Print a;
   
}
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.labelmode.Print

public class PrintTest {

    @Test
    public void test() {
  Print command = new Print();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("PRINT");

  assertCommand(output, command);
View Full Code Here

Examples of net.sf.paperclips.Print

  /**
   * @see de.willuhn.jameica.print.PrintSupport#print()
   */
  public PrintJob print() throws ApplicationException
  {
    Print content = printContent();

    // Das Haupt-Layout
    GridPrint grid = new GridPrint("l:d:g");
    grid.add(new TextPrint(getTitle(),fontTitle));
    grid.add(new LinePrint());
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.Print

    conf = fs.getConf();
  }
 
  @Test
  public void testPrint() throws IOException{
    Print print = new Print();
    PrintStream out = mock(PrintStream.class);
    FindOptions options = new FindOptions();
    options.setOut(out);
    print.initialise(options);
   
    String filename = "/one/two/test";
    PathData item = new PathData(filename, conf);
    assertEquals(Result.PASS, print.apply(item));
    verify(out).println(filename);
    verifyNoMoreInteractions(out);
  }
View Full Code Here

Examples of org.globus.workspace.common.print.Print

        BrokerContactType broker = new BrokerContactType();

        final RunTask[] runTasks = deployment.generateRunTasks(broker,
            this.getTempDir().getAbsolutePath(),
            "/home/david/.ssh/id_rsa.pub",
            60, new Print());

        assertEquals(deployment.getMembers().size(),  runTasks.length);

    }
View Full Code Here

Examples of org.globus.workspace.common.print.Print

   
    private MemberDeployment[] getMemberDeployments() throws Exception {
        final Cloudcluster_Type cluster = TestUtil.getSampleCluster();

        final ClusterMember[] members =
            ClusterUtil.getClusterMembers(cluster, "priv", "pub", new Print());

        final MemberDeployment[] deploys = new MemberDeployment[members.length];
        for (int i = 0; i < deploys.length; i++) {
            deploys[i] = new MemberDeployment(members[i], new Clouddeploy_Type());
        }
View Full Code Here

Examples of org.globus.workspace.common.print.Print

    GlobusCredential getCredentialBeingUsed() throws Exception {
        if (this.credentialUsed != null) {
            return this.credentialUsed;
        }
        this.credentialUsed = CloudClientUtil.getActiveX509Credential(new Print());
        if (this.credentialUsed == null) {
            throw new Exception("Could not find current credential");
        }
        return this.credentialUsed;
    }
View Full Code Here

Examples of org.globus.workspace.common.print.Print

        return this.remoteUserBaseDir;
    }

    private URI deriveImageURL(String imageName) throws ExecutionProblem {

        AllArgs args = new AllArgs(new Print());
        try {
            args.intakeProperties(this.props, "from meta", null);
        } catch (Exception e) {
            throw new ExecutionProblem(e.getMessage(), e);
        }
View Full Code Here

Examples of org.globus.workspace.common.print.Print

            debug = System.err;
        }

        PrintOpts prOpts = new PrintOpts(CloudClient.getOptInPrCodes());

        final Print print = new Print(prOpts, System.out, System.err, debug);
        CloudMetaClient client = new CloudMetaClient(print);

        ParameterProblem parameterProblem = null;
        ExitNow exitNow = null;
        Throwable anyError = null;
        try {
            mainImpl(client, argv);
        } catch (ParameterProblem e) {
            anyError = e;
            parameterProblem = e;
        } catch (ExecutionProblem e) {
            anyError = e;
        } catch (ExitNow e) {
            exitNow = e;
        } catch (Throwable e) {
            anyError = e;
        }

        int exitCode;

        if (exitNow != null) {
            print.debugln("[exiting via exitnow system]");
            exitCode = exitNow.exitCode;

        } else if (anyError == null) {
            exitCode = BaseClient.SUCCESS_EXIT_CODE;
        } else {
            exitCode = BaseClient.COMMAND_LINE_EXIT_CODE;

            final String message =
                CommonUtil.genericExceptionMessageWrapper(anyError);

            String err = "Problem: " + message;

            if (parameterProblem != null && !print.useLogging()) {
                err += "\nSee help (-h).";
            }

            print.errln(err);

            print.debugln("\n");

            final String sectionTitle = "STACKTRACE";
            CommonPrint.printDebugSection(print, sectionTitle);

            anyError.printStackTrace(print.getDebugProxy());

            CommonPrint.printDebugSectionEnd(print, sectionTitle);

            print.debugln("\n");

            print.debugln("Stacktrace was from: " + anyError.getMessage());
        }

        print.flush();
        print.close();
        System.exit(exitCode);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.