X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2FG2DFocusManager.java;h=6647d43cd1ad524eb4c6dea3384e32a805b240bc;hb=e353ca45b2ad3ce36ea48336feca56e86ad0b089;hp=09421b0e7cd6abd02e5dab280cc49057c2b25b72;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DFocusManager.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DFocusManager.java index 09421b0e7..6647d43cd 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DFocusManager.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DFocusManager.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.scenegraph.g2d; - -import java.awt.Component; - -public class G2DFocusManager { - public static G2DFocusManager INSTANCE = new G2DFocusManager(); - - protected Component focus = null; - - private G2DFocusManager() { - } - - public void markFocus(Component component) { - focus = component; - } - - public void clearFocus() { - focus = null; - } - - public Component getFocusOwner() { - return focus; - } -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.scenegraph.g2d; + +import java.awt.Component; + +public class G2DFocusManager { + public static G2DFocusManager INSTANCE = new G2DFocusManager(); + + protected Component focus = null; + + private G2DFocusManager() { + } + + public void markFocus(Component component) { + focus = component; + } + + public void clearFocus() { + focus = null; + } + + public Component getFocusOwner() { + return focus; + } +}