001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.tasklist.impl;
043:
044: import java.awt.Image;
045: import java.awt.event.ActionListener;
046: import org.netbeans.modules.tasklist.trampoline.TaskGroup;
047: import org.netbeans.modules.tasklist.trampoline.TaskManager;
048: import org.netbeans.spi.tasklist.FileTaskScanner;
049: import org.netbeans.spi.tasklist.PushTaskScanner;
050: import org.netbeans.spi.tasklist.Task;
051: import org.netbeans.spi.tasklist.TaskScanningScope;
052: import org.openide.filesystems.FileObject;
053:
054: /**
055: *
056: * @author S. Aubrecht
057: */
058: public class Accessor {
059:
060: /** Creates a new instance of Accessor */
061: private Accessor() {
062: }
063:
064: public static FileObject getResource(Task t) {
065: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
066: .getResource(t);
067: }
068:
069: public static String getDescription(Task t) {
070: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
071: .getDescription(t);
072: }
073:
074: public static TaskGroup getGroup(Task t) {
075: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
076: .getGroup(t);
077: }
078:
079: public static int getLine(Task t) {
080: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
081: .getLine(t);
082: }
083:
084: public static ActionListener getActionListener(Task t) {
085: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
086: .getActionListener(t);
087: }
088:
089: public static String getDisplayName(TaskScanningScope scope) {
090: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
091: .getDisplayName(scope);
092: }
093:
094: public static String getDescription(TaskScanningScope scope) {
095: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
096: .getDescription(scope);
097: }
098:
099: public static Image getIcon(TaskScanningScope scope) {
100: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
101: .getIcon(scope);
102: }
103:
104: public static boolean isDefault(TaskScanningScope scope) {
105: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
106: .isDefault(scope);
107: }
108:
109: public static TaskScanningScope.Callback createCallback(
110: TaskManager tm, TaskScanningScope scope) {
111: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
112: .createCallback(tm, scope);
113: }
114:
115: public static TaskScanningScope getEmptyScope() {
116: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
117: .getEmptyScope();
118: }
119:
120: public static String getDisplayName(FileTaskScanner scanner) {
121: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
122: .getDisplayName(scanner);
123: }
124:
125: public static String getDescription(FileTaskScanner scanner) {
126: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
127: .getDescription(scanner);
128: }
129:
130: public static String getOptionsPath(FileTaskScanner scanner) {
131: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
132: .getOptionsPath(scanner);
133: }
134:
135: public static FileTaskScanner.Callback createCallback(
136: TaskManager tm, FileTaskScanner scanner) {
137: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
138: .createCallback(tm, scanner);
139: }
140:
141: public static String getDisplayName(PushTaskScanner scanner) {
142: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
143: .getDisplayName(scanner);
144: }
145:
146: public static String getDescription(PushTaskScanner scanner) {
147: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
148: .getDescription(scanner);
149: }
150:
151: public static String getOptionsPath(PushTaskScanner scanner) {
152: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
153: .getOptionsPath(scanner);
154: }
155:
156: public static PushTaskScanner.Callback createCallback(
157: TaskManager tm, PushTaskScanner scanner) {
158: return org.netbeans.modules.tasklist.trampoline.Accessor.DEFAULT
159: .createCallback(tm, scanner);
160: }
161: }
|