ProgressNotification.st
author Stefan Vogel <sv@exept.de>
Wed, 12 Dec 2012 15:30:26 +0100
changeset 4157 67226e0d3d71
parent 4138 e65b7c94ed2f
child 5304 4b50bec89cd5
permissions -rw-r--r--
class: ProgressNotification changed: #notify:progress:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2008 by eXept Software AG
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libwidg2' }"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ActivityNotification subclass:#ProgressNotification
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Kernel-Exceptions-Notifications'
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ProgressNotification class methodsFor:'documentation'!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2008 by eXept Software AG
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
! !
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
4157
67226e0d3d71 class: ProgressNotification
Stefan Vogel <sv@exept.de>
parents: 4138
diff changeset
    37
!ProgressNotification class methodsFor:'notification'!
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    38
4138
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    39
notify: message progress: progress
4157
67226e0d3d71 class: ProgressNotification
Stefan Vogel <sv@exept.de>
parents: 4138
diff changeset
    40
    ^ self new
4138
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    41
        messageText: message;
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    42
        parameter: progress;
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    43
        raiseRequest
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    44
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    45
    "Created: / 31-07-2012 / 16:13:54 / cg"
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    46
!
e65b7c94ed2f added: #notify:progress:
Claus Gittinger <cg@exept.de>
parents: 3541
diff changeset
    47
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    48
progressPercentage:aPercentageNumber
3541
7d676ed9b6bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3539
diff changeset
    49
    self raiseRequestWith:aPercentageNumber
3539
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    50
! !
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    51
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    52
!ProgressNotification methodsFor:'instance creation'!
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    53
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    54
progressValue
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    55
    ^ parameter
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    56
! !
53b322935b6d changed #progressValue
Claus Gittinger <cg@exept.de>
parents: 3538
diff changeset
    57
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
!ProgressNotification class methodsFor:'documentation'!
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
version
4157
67226e0d3d71 class: ProgressNotification
Stefan Vogel <sv@exept.de>
parents: 4138
diff changeset
    61
    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressNotification.st,v 1.5 2012-12-12 14:30:26 stefan Exp $'
3538
c0e7660db9ff initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
! !