rj.tools.jcsc.plugins.intellij
Class JCSCAction

java.lang.Object
  extended bycom.intellij.openapi.actionSystem.AnAction
      extended byrj.tools.jcsc.plugins.intellij.JCSCAction
All Implemented Interfaces:
SourceLineSelector

public class JCSCAction
extends com.intellij.openapi.actionSystem.AnAction
implements SourceLineSelector

JCSC parse action -- triggers parsing on current selected file

Version:
__0.1__
Author:
Ralph Jocham

Field Summary
static java.lang.String ID
          ID of action
 
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
EMPTY_ARRAY, ourClientProperty
 
Constructor Summary
JCSCAction()
          Create a new instance
JCSCAction(java.lang.String s)
          Create a new instance
JCSCAction(java.lang.String s, java.lang.String s1, javax.swing.Icon icon)
          Create a new instance
 
Method Summary
 void actionPerformed()
          Called when action was performed
 void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent event)
          Called when action was performed
 void actionPerformed(com.intellij.openapi.project.Project project, com.intellij.openapi.vfs.VirtualFile classFile)
          Called when action was performed
 boolean isResultWindowVisible()
          Whether the result window is visible
 void selectLine(int line)
          Select line in file
 void update(com.intellij.openapi.actionSystem.AnActionEvent event)
          Called when new file was selected
 
Methods inherited from class com.intellij.openapi.actionSystem.AnAction
copyFrom, displayTextInToolbar, getShortcutSet, getTemplatePresentation, isEnabledInModalContext, registerCustomShortcutSet, setEnabledInModalContext, setShortcutSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
ID of action

See Also:
Constant Field Values
Constructor Detail

JCSCAction

public JCSCAction()
Create a new instance


JCSCAction

public JCSCAction(java.lang.String s)
Create a new instance

Parameters:
s -

JCSCAction

public JCSCAction(java.lang.String s,
                  java.lang.String s1,
                  javax.swing.Icon icon)
Create a new instance

Parameters:
s -
s1 -
icon -
Method Detail

actionPerformed

public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent event)
Called when action was performed

Parameters:
event -

actionPerformed

public void actionPerformed()
Called when action was performed


actionPerformed

public void actionPerformed(com.intellij.openapi.project.Project project,
                            com.intellij.openapi.vfs.VirtualFile classFile)
Called when action was performed

Parameters:
project -
classFile -

isResultWindowVisible

public boolean isResultWindowVisible()
Whether the result window is visible

Returns:
true/false

selectLine

public void selectLine(int line)
Select line in file

Specified by:
selectLine in interface SourceLineSelector
Parameters:
line - to select

update

public void update(com.intellij.openapi.actionSystem.AnActionEvent event)
Called when new file was selected

Parameters:
event -


(c) 1999-2005 by Ralph Jocham (rjocham72@netscape.net)
JCSC is released under the terms of the GNU General Public License