Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/editor/spi/MappingInfo.java


1   package javax.ide.editor.spi;
2   
3   /**
4    * Record of information identifying an editor class that can open documents
5    * of a particular class.
6    */
7   public final class MappingInfo 
8   {
9     private String _editorClass;
10    private boolean  _preferred;
11  
12    /**
13     * Constructor.
14     */
15    public MappingInfo( String editorClass, boolean isPreferred ) 
16    {
17      _editorClass = editorClass;
18      _preferred = isPreferred;
19    }
20  
21    /**
22     * Get the editor class.
23     * 
24     * @return The editor class.
25     */
26    public String getEditorClass()
27    {
28      return _editorClass;
29    }
30  
31  
32    /**
33     * Get whether this editor class is the preferred editor for a given 
34     * document type. How this is interpreted is IDE specific.
35     * 
36     * @return true if this editor is the preferred editor type for a particular
37     *    document.
38     */
39    public boolean isPreferred()
40    {
41      return _preferred;
42    }
43  }