/bundles/plugins-trunk/SideKick/sidekick/IAsset.java
Java | 89 lines | 15 code | 12 blank | 62 comment | 0 complexity | a0999b858a4ebb09bfd70391101b7635 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /*
- * IAsset.java
- * :tabSize=8:indentSize=8:noTabs=false:
- * :folding=explicit:collapseFolds=1:
- *
- * Copyright (C) 2005 Matthieu Casanova
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- package sidekick;
- //{{{ Imports
- import javax.swing.*;
- import javax.swing.text.Position;
- //}}}
- /**
- * A block of code within a file. Assets correspond to nodes in the
- * Structure Browser and folds in the SideKick folding mode.
- */
- public interface IAsset
- {
- /**
- * Returns the icon to be shown for the asset in the structure tree.
- */
- Icon getIcon();
- /**
- * Returns a brief description of the asset to be shown in the tree.
- * This string is displayed in the jEdit status bar and optionally in
- * a tool tip (if the user has the 'show tool tips' option turned on).
- */
- String getShortString();
- /**
- * Returns a full description of the asset to be shown in the view's
- * status bar on when the mouse is over the asset in the tree. Only
- * the first line of this message will be shown in the status bar. The
- * full text will be displayed in the built-in status window (if the user
- * has the 'show status window' option turned on).
- */
- String getLongString();
- /**
- * Returns the name of the Asset.
- */
- String getName();
- /**
- * Set the name of the asset
- */
- void setName(String name);
-
- /**
- * Set the start position
- */
- void setStart(Position start);
-
- /**
- * Returns the starting position.
- */
- Position getStart();
-
- /**
- * Set the end position - the position of the first character
- * following the asset (or the end of the buffer).
- */
- void setEnd(Position end);
- /**
- * Returns the end position - the position of the first character
- * following the asset (or the end of the buffer).
- */
- Position getEnd();
-
- }