1.1 --- a/a11y/manifest.mf Fri Jul 26 12:23:05 2013 +0200
1.2 +++ b/a11y/manifest.mf Fri Jul 26 14:04:01 2013 +0200
1.3 @@ -1,6 +1,5 @@
1.4 Manifest-Version: 1.0
1.5 OpenIDE-Module: org.netbeans.modules.a11y/1
1.6 -OpenIDE-Module-Layer: org/netbeans/modules/a11y/layer.xml
1.7 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/a11y/Bundle.properties
1.8
1.9 Name: org/netbeans/modules/a11y/A11yAction.class
2.1 --- a/a11y/src/org/netbeans/modules/a11y/TestIDEWindowA11YAction.java Fri Jul 26 12:23:05 2013 +0200
2.2 +++ b/a11y/src/org/netbeans/modules/a11y/TestIDEWindowA11YAction.java Fri Jul 26 14:04:01 2013 +0200
2.3 @@ -1,7 +1,7 @@
2.4 /*
2.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2.6 *
2.7 - * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
2.8 + * Copyright 1997-2013 Sun Microsystems, Inc. All rights reserved.
2.9 *
2.10 * The contents of this file are subject to the terms of either the GNU
2.11 * General Public License Version 2 only ("GPL") or the Common
2.12 @@ -47,21 +47,27 @@
2.13 import org.openide.util.actions.NodeAction;
2.14
2.15 import org.netbeans.a11y.tester.UIAccessibilityTester;
2.16 +import org.openide.awt.ActionID;
2.17 +import org.openide.awt.ActionRegistration;
2.18
2.19 /**
2.20 * Accessibility test action. Testing windows from IDE.
2.21 * @author Marian.Mirilovic@Sun.Com
2.22 */
2.23 +@ActionID(id = "org.netbeans.modules.a11y.TestIDEWindowA11YAction", category = "Tools")
2.24 +@ActionRegistration(lazy = false, displayName = "UI Accessibility Tester - testing IDE")
2.25 public class TestIDEWindowA11YAction extends NodeAction {
2.26
2.27 //private static final long serialVersionUID = ;
2.28
2.29 + @Override
2.30 protected void performAction(Node[] nodes) {
2.31 UIAccessibilityTester at = UIAccessibilityTester.getInstance();
2.32 at.setVisible(true);
2.33 at.requestFocus();
2.34 }
2.35
2.36 + @Override
2.37 public boolean enable(Node[] node) {
2.38 return true;
2.39 }
2.40 @@ -70,6 +76,7 @@
2.41 * Human presentable name of the action. This should be
2.42 * presented as an item in a menu.
2.43 * @return the name of the action */
2.44 + @Override
2.45 public String getName() {
2.46 //return NbBundle.getBundle(TestIDEWindowA11YAction.class).getString("ACT_A11Y_IDE_Test"); // NOI18N
2.47 return "UI Accessibility Tester - testing IDE";
2.48 @@ -77,6 +84,7 @@
2.49
2.50
2.51 /** @return resource for the action icon */
2.52 + @Override
2.53 protected String iconResource() {
2.54 return "org/netbeans/modules/a11y/resources/disabled.gif";
2.55 }
2.56 @@ -84,13 +92,15 @@
2.57
2.58 /** Help context where to find more about the action.
2.59 * @return the help context for this action */
2.60 + @Override
2.61 public HelpCtx getHelpCtx() {
2.62 - return new HelpCtx(TestIDEWindowA11YAction.class);
2.63 + return new HelpCtx("org.netbeans.modules.a11y.TestIDEWindowA11YAction");
2.64 }
2.65
2.66 /** Fix issue 45833
2.67 * Warning - org.netbeans.modules.a11y.TestIDEWindowA11YAction should override CallableSystemAction.asynchronous() to return false
2.68 */
2.69 + @Override
2.70 protected boolean asynchronous() {
2.71 return false;
2.72 }
3.1 --- a/a11y/src/org/netbeans/modules/a11y/layer.xml Fri Jul 26 12:23:05 2013 +0200
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,63 +0,0 @@
3.4 -<?xml version="1.0"?>
3.5 -<!--
3.6 - DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3.7 -
3.8 - Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
3.9 -
3.10 - The contents of this file are subject to the terms of either the GNU
3.11 - General Public License Version 2 only ("GPL") or the Common
3.12 - Development and Distribution License("CDDL") (collectively, the
3.13 - "License"). You may not use this file except in compliance with the
3.14 - License. You can obtain a copy of the License at
3.15 - http://www.netbeans.org/cddl-gplv2.html
3.16 - or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
3.17 - specific language governing permissions and limitations under the
3.18 - License. When distributing the software, include this License Header
3.19 - Notice in each file and include the License file at
3.20 - nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
3.21 - particular file as subject to the "Classpath" exception as provided
3.22 - by Sun in the GPL Version 2 section of the License file that
3.23 - accompanied this code. If applicable, add the following below the
3.24 - License Header, with the fields enclosed by brackets [] replaced by
3.25 - your own identifying information:
3.26 - "Portions Copyrighted [year] [name of copyright owner]"
3.27 -
3.28 - Contributor(s):
3.29 -
3.30 - The Original Software is NetBeans. The Initial Developer of the Original
3.31 - Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
3.32 - Microsystems, Inc. All Rights Reserved.
3.33 -
3.34 - If you wish your version of this file to be governed by only the CDDL
3.35 - or only the GPL Version 2, indicate your decision by adding
3.36 - "[Contributor] elects to include this software in this distribution
3.37 - under the [CDDL or GPL Version 2] license." If you do not indicate a
3.38 - single choice of license, a recipient has the option to distribute
3.39 - your version of this file under either the CDDL, the GPL Version 2 or
3.40 - to extend the choice of license to its licensees as provided above.
3.41 - However, if you add GPL Version 2 code and therefore, elected the GPL
3.42 - Version 2 license, then the option applies only if the new code is
3.43 - made subject to such option by the copyright holder.
3.44 --->
3.45 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
3.46 -
3.47 -<filesystem>
3.48 -
3.49 - <folder name="Actions">
3.50 - <folder name="Tools">
3.51 - <!-- Functionality needs to be fixed first
3.52 - <file name="org-netbeans-modules-a11y-A11yAction.instance" />
3.53 - -->
3.54 - </folder>
3.55 - </folder>
3.56 -
3.57 - <folder name="Toolbars">
3.58 - <folder name="Data">
3.59 - <file name="org-netbeans-modules-a11y-TestIDEWindowA11YAction.instance" />
3.60 - <!-- Functionality needs to be fixed first
3.61 - <file name="org-netbeans-modules-a11y-A11yAction.instance" />
3.62 - -->
3.63 - </folder>
3.64 - </folder>
3.65 -
3.66 -</filesystem>