|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.editor; import java.util.ResourceBundle; import javax.swing.Action; import javax.swing.text.JTextComponent; /** This is provider of implementation. This package (org.netbeans.editor) * represent editor core which can be used independently on the rest of NetBeans. * However this core needs access to higher level functionality like access * to localized bundles, access to settings storage, etc. which can be implemented * differently by the applications which uses this editor core. For this purpose * was created this abstract class and it can be extended with any other methods which * are more and more often required by core editor. Example implementation * of this provider can be found in org.netbeans.modules.editor package * * @author David Konecny * @since 10/2001 */ abstract public class ImplementationProvider { private static ImplementationProvider provider = null; /** Returns currently registered provider */ public static ImplementationProvider getDefault() { return provider; } /** Register your own provider through this method */ public static void registerDefault(ImplementationProvider prov) { provider = prov; } /** Returns ResourceBundle for the given class.*/ abstract public ResourceBundle getResourceBundle(String localizer); /** This is temporary method which allows core editor to access * glyph gutter action. These actions are then used when user clicks * on glyph gutter. In next version this should be removed and redesigned * as suggested in issue #16762 */ abstract public Action[] getGlyphGutterActions(JTextComponent target); /** Activates the given component or one of its ancestors. * @return whether the component or one of its ancestors was succesfuly activated * */ public boolean activateComponent(JTextComponent c) { return false; } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.