~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/dialogs/TabContents.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**********************************************************************
2
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
3
 * Copyright (c) 2011, 2012 Ericsson.
4
 
 * 
 
4
 *
5
5
 * All rights reserved.   This program and the accompanying materials
6
6
 * are made available under the terms of the Eclipse Public License v1.0
7
7
 * which accompanies this distribution, and is available at
8
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 
 * 
10
 
 * Contributors: 
 
9
 *
 
10
 * Contributors:
11
11
 * IBM - Initial API and implementation
12
12
 * Bernd Hufmann - Updated for TMF
13
13
 **********************************************************************/
30
30
 
31
31
/**
32
32
 * Class implementation contains the controls that allows to create or update a find or filter Criteria.
33
 
 * 
 
33
 *
34
34
 * @version 1.0
35
35
 * @author sveyrier
36
36
 */
98
98
 
99
99
    /**
100
100
     * Creates the dialog contents
101
 
     * 
 
101
     *
102
102
     * @param parent the parent widget
103
103
     * @param provider the provider which handle the action
104
104
     * @param okButton of the dialog (to be enabled/disabled)
172
172
            } else {
173
173
                fStopButton.setText(SDMessages._29);
174
174
            }
175
 
            
 
175
 
176
176
            fStopButton.setEnabled(true);
177
177
            fStopButton.addSelectionListener(fGraphNodeTypeListener);
178
178
        }
237
237
    // ------------------------------------------------------------------------
238
238
    // Methods
239
239
    // ------------------------------------------------------------------------
240
 
    
 
240
 
241
241
    /**
242
 
     * Set result text visibility  
 
242
     * Set result text visibility
243
243
     * @param found <code>true</code> for found (enable visibility) else false
244
244
     */
245
245
    public void setResult(boolean found) {
260
260
 
261
261
    /**
262
262
     * Sets the parent OK button reference.
263
 
     * 
 
263
     *
264
264
     * @param okButton The parent OK button
265
265
     */
266
266
    public void setOkButton(Button okButton) {
269
269
 
270
270
    /**
271
271
     * Returns the asynchronous message check button state
272
 
     * 
 
272
     *
273
273
     * @return true if check, false otherwise
274
274
     */
275
275
    public boolean isAsynMessageButtonSelected() {
281
281
 
282
282
    /**
283
283
     * Returns the asynchronous message return check button state
284
 
     * 
 
284
     *
285
285
     * @return true if check, false otherwise
286
286
     */
287
287
    public boolean isAsynMessageReturnButtonSelected() {
293
293
 
294
294
    /**
295
295
     * Returns the case sensitive check button state
296
 
     * 
 
296
     *
297
297
     * @return true if check, false otherwise
298
298
     */
299
299
    public boolean isCaseSensitiveSelected() {
305
305
 
306
306
    /**
307
307
     * Returns the lifeline check button state
308
 
     * 
 
308
     *
309
309
     * @return true if check, false otherwise
310
310
     */
311
311
    public boolean isLifelineButtonSelected() {
317
317
 
318
318
    /**
319
319
     * Returns the user input string
320
 
     * 
 
320
     *
321
321
     * @return the string to search for
322
322
     */
323
323
    public String getSearchText() {
326
326
 
327
327
    /**
328
328
     * Returns the stop check button state
329
 
     * 
 
329
     *
330
330
     * @return true if check, false otherwise
331
331
     */
332
332
    public boolean isStopButtonSelected() {
338
338
 
339
339
    /**
340
340
     * Returns the synchronous message check button state
341
 
     * 
 
341
     *
342
342
     * @return true if check, false otherwise
343
343
     */
344
344
    public boolean isSynMessageButtonSelected() {
350
350
 
351
351
    /**
352
352
     * Returns the synchronous message return check button state
353
 
     * 
 
353
     *
354
354
     * @return true if check, false otherwise
355
355
     */
356
356
    public boolean isSynMessageReturnButtonSelected() {
362
362
 
363
363
    /**
364
364
     * Set the asynchronous message check button state
 
365
     *
 
366
     * @param state
 
367
     *            The new state to set
365
368
     */
366
369
    public void setAsynMessageButtonSelection(boolean state) {
367
370
        if (fAsynMessageButton != null) {
371
374
 
372
375
    /**
373
376
     * Set the asynchronous message return check button state
 
377
     *
 
378
     * @param state
 
379
     *            The new state to set
374
380
     */
375
381
    public void setAsynMessageReturnButtonSelection(boolean state) {
376
382
        if (fAsynMessageReturnButton != null) {
380
386
 
381
387
    /**
382
388
     * Set the case sensitive check button state
 
389
     *
 
390
     * @param state
 
391
     *            The new state to set
383
392
     */
384
393
    public void setCaseSensitiveSelection(boolean state) {
385
394
        if (fCaseSensitive != null) {
389
398
 
390
399
    /**
391
400
     * Set the lifeline check button state
 
401
     *
 
402
     * @param state
 
403
     *            The new state to set
392
404
     */
393
405
    public void setLifelineButtonSelection(boolean state) {
394
406
        if (fLifelineButton != null) {
398
410
 
399
411
    /**
400
412
     * Set the user input string
 
413
     *
 
414
     * @param text
 
415
     *            The search text
401
416
     */
402
417
    public void setSearchText(String text) {
403
418
        fSearchText.setText(text);
405
420
 
406
421
    /**
407
422
     * Set the stop check button state
 
423
     *
 
424
     * @param state
 
425
     *            The new state to set
408
426
     */
409
427
    public void setStopButtonSelection(boolean state) {
410
428
        if (fStopButton != null) {
414
432
 
415
433
    /**
416
434
     * Set the synchronous message check button state
 
435
     *
 
436
     * @param state
 
437
     *            The new state to set
417
438
     */
418
439
    public void setSynMessageButtonSelection(boolean state) {
419
440
        if (fSynMessageButton != null) {
423
444
 
424
445
    /**
425
446
     * Set the synchronous message return check button state
 
447
     *
 
448
     * @param state
 
449
     *            The new state to set
426
450
     */
427
451
    public void setSynMessageReturnButtonSelection(boolean state) {
428
452
        if (fSynMessageReturnButton != null) {
460
484
 
461
485
    /**
462
486
     * Modify listener implementation for the expression field.
463
 
     * 
 
487
     *
464
488
     * @version 1.0
465
489
     */
466
490
    protected class ExpressionListener implements ModifyListener {