Examples of Work


Examples of org.jboss.seam.util.Work

   private Map<AnnotatedElement,TransactionMetadata> transactionMetadata = new HashMap<AnnotatedElement, TransactionMetadata>();
  
   @AroundInvoke
   public Object aroundInvoke(final InvocationContext invocation) throws Exception
   {
      return new Work()
      {
        
         @Override
         protected Object work() throws Exception
         {
View Full Code Here

Examples of org.jnode.work.Work

     */
    public final void deviceStarted(final Device device) {
        if (device.implementsAPI(FSBlockDeviceAPI.class)) {
            // add it to the queue of devices to be mounted only if the action
            // is not already pending
            WorkUtils.add(new Work("Mounting " + device.getId()) {
                public void execute() {
                    asyncDeviceStarted(device);
                }
            });
        }
View Full Code Here

Examples of org.jnode.work.Work

    protected void startDevice() throws DriverException {
        try {
            final Device dev = getDevice();
            dev.getManager().rename(dev, IDEControllerAPI.DEVICE_PREFIX, true);
            startDriver();
            WorkUtils.add(new Work("IDE.registerDevices") {
                public void execute() {
                    try {
                        registerDevices();
                    } catch (IDEException ex) {
                        log.error("Error starting IDE devices", ex);
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.model.core.Work

        if (track.getNumber() != null) {
            trackNumberTextInput.setText(track.getNumber().toString());
        }
        recordingNameTextInput.setText(track.getRecording().getName()!=null?track.getRecording().getName():"");
        Work work = null;
        if (track.getRecording().getWorks() != null && track.getRecording().getWorks().size()>0) {
            work = track.getRecording().getWorks().iterator().next();
        }
        if (work != null) {
            workNameTextInput.setText(work.getName());
        }
        if (track.getRecording().getDate() != null) {
            recordingYearTextInput.setText(DATE_FORMAT_DATE.format(this.track.getRecording().getDate()));
        }

        Set<Contributor> contributors = new HashSet<Contributor>(track.getRecording().getContributors());
        if (work != null) {
            contributors.addAll(work.getContributors());
        }
        updateContributors(contributors);

        // Add a suggestion popup on the work name field
        workNameTextInput.getTextInputContentListeners().add(new TextInputContentListener.Adapter() {
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.model.core.Work

        // Selection changes in work results should trigger refresh of artists and releases
        workResultsTableView.getTableViewSelectionListeners().add(new TableViewSelectionListener.Adapter() {
            @Override
            public void selectedRangesChanged(TableView tableView, Sequence<Span> spanSequence) {
                Work work = (Work) tableView.getSelectedRow();
                if(work!=null) {
                    searchTextInput.setText("");
                    searchReleases(null, null, work.getId());
                    searchArtists(null, work.getId(), null);
                }
            }
        });

        // Double click handler for releases
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.