diff options
Diffstat (limited to 'plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java')
-rw-r--r-- | plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java | 152 |
1 files changed, 76 insertions, 76 deletions
diff --git a/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java b/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java index fc8e490612d..82b3268434b 100644 --- a/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java +++ b/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/import1/com/screenB/ScreenBButton1.java @@ -1,76 +1,76 @@ -/*******************************************************************************
- * 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.coverage.test.import1.com.screenB;
-
-import java.util.logging.Level;
-import org.eclipse.osee.coverage.internal.Activator;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * @author Donald G. Dunne
- */
-public class ScreenBButton1 extends Button {
-
- public Image image;
-
- /**
- * @param parent
- * @param style
- */
- public ScreenBButton1(Composite parent, int style, Image image) {
- super(parent, style);
- }
-
- @Override
- public String getText() {
- try {
- if (getStyle() == 4) { // 1, 1, TestUnit2|TestUnit3
- return "Navigate Here"; // 1, 2, TestUnit2|TestUnit3
- } else {
- return "Navigate There"; // 1, 3, TestUnit2|TestUnit3
- }
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex); // 1, 4, n
- }
- return "Navigate";
- }
-
- @Override
- public void setImage(Image image) {
- this.image = image; // 2, 1, TestUnit2|TestUnit3
- }
-
- @Override
- public void setText(String string) {
- super.setText(string); // 3, 1, n
- }
-
- @Override
- public Image getImage() {
- try {
- if (getStyle() == 4) { // 4, 1, TestUnit2|TestUnit3
- return this.image; // 4, 2, n
- } else {
- return super.getImage(); // 4, 3, TestUnit2|TestUnit3
- }
- } catch (IllegalArgumentException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex); // 4, 4, n
-
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex); // 4, 5, n
- }
- return null; // 4, 6, n
- }
-
-}
+/******************************************************************************* + * 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.coverage.test.import1.com.screenB; + +import java.util.logging.Level; +import org.eclipse.osee.coverage.internal.Activator; +import org.eclipse.osee.framework.logging.OseeLog; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; + +/** + * @author Donald G. Dunne + */ +public class ScreenBButton1 extends Button { + + public Image image; + + /** + * @param parent + * @param style + */ + public ScreenBButton1(Composite parent, int style, Image image) { + super(parent, style); + } + + @Override + public String getText() { + try { + if (getStyle() == 4) { // 1, 1, TestUnit2|TestUnit3 + return "Navigate Here"; // 1, 2, TestUnit2|TestUnit3 + } else { + return "Navigate There"; // 1, 3, TestUnit2|TestUnit3 + } + } catch (Exception ex) { + OseeLog.log(Activator.class, Level.SEVERE, ex); // 1, 4, n + } + return "Navigate"; + } + + @Override + public void setImage(Image image) { + this.image = image; // 2, 1, TestUnit2|TestUnit3 + } + + @Override + public void setText(String string) { + super.setText(string); // 3, 1, n + } + + @Override + public Image getImage() { + try { + if (getStyle() == 4) { // 4, 1, TestUnit2|TestUnit3 + return this.image; // 4, 2, n + } else { + return super.getImage(); // 4, 3, TestUnit2|TestUnit3 + } + } catch (IllegalArgumentException ex) { + OseeLog.log(Activator.class, Level.SEVERE, ex); // 4, 4, n + + } catch (Exception ex) { + OseeLog.log(Activator.class, Level.SEVERE, ex); // 4, 5, n + } + return null; // 4, 6, n + } + +} |