Skip to main content
summaryrefslogtreecommitdiffstats
blob: f942a49ad574fc30bd83ca815abb0472ebb71dcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.ats.util;

import java.util.logging.Level;
import org.eclipse.nebula.widgets.xviewer.XViewer;
import org.eclipse.nebula.widgets.xviewer.customize.dialog.XViewerCustomizeDialog;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

/**
 * @author Megumi Telles
 */
public class CustomizeDemoTableTestUtil extends XViewerCustomizeDialog {

   public boolean DEBUG = false;

   public CustomizeDemoTableTestUtil(XViewer viewer) {
      super(viewer);
   }

   /**
    * for testing purposes - simulate customization view
    */
   @Override
   public Control createDialogArea(Composite parent) {
      if (DEBUG) {
         OseeLog.log(AtsPlugin.class, Level.INFO, "===> Simulating CustomizationView " + "\"...");
      }
      return super.createDialogArea(parent);
   }

   /**
    * for testing purposes - simulate the add all button click
    */
   public void handleAddAllItemButtonClick() {
      if (DEBUG) {
         OseeLog.log(AtsPlugin.class, Level.INFO, "===> Simulating CustomizationView Add All Columns" + "\"...");
      }
      super.handleAddAllItem();
      super.handleLoadConfigCust();
   }
}

Back to the top