[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/intellij/plugin JarSpyIntelliJPluginAction.java,1
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2003-01-30 23:07:52
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/intellij/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv12829/src/com/ociweb/jarspy/intellij/plugin
Modified Files:
JarSpyIntelliJPluginAction.java
Log Message:
use DataConstants instead of literals
Index: JarSpyIntelliJPluginAction.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/intellij/plugin/JarSpyIntelliJPluginAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** JarSpyIntelliJPluginAction.java 25 Jan 2003 23:24:33 -0000 1.3
--- JarSpyIntelliJPluginAction.java 30 Jan 2003 23:07:49 -0000 1.4
***************
*** 22,25 ****
--- 22,26 ----
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
+ import com.intellij.openapi.actionSystem.DataConstants;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
***************
*** 30,34 ****
public void update(AnActionEvent e) {
VirtualFile file
! = (VirtualFile) e.getDataContext().getData("virtualFile");
Presentation presentation = e.getPresentation();
if (file == null || file.getExtension() == null)
--- 31,35 ----
public void update(AnActionEvent e) {
VirtualFile file
! = (VirtualFile) e.getDataContext().getData(DataConstants.VIRTUAL_FILE);
Presentation presentation = e.getPresentation();
if (file == null || file.getExtension() == null)
***************
*** 45,50 ****
public void actionPerformed(AnActionEvent e) {
final VirtualFile file
! = (VirtualFile) e.getDataContext().getData("virtualFile");
! Project p = (Project) e.getDataContext().getData("project");
ToolWindow tw = ToolWindowManager.getInstance(p).getToolWindow("JarSpy");
if (tw != null) {
--- 46,51 ----
public void actionPerformed(AnActionEvent e) {
final VirtualFile file
! = (VirtualFile) e.getDataContext().getData(DataConstants.VIRTUAL_FILE);
! Project p = (Project) e.getDataContext().getData(DataConstants.PROJECT);
ToolWindow tw = ToolWindowManager.getInstance(p).getToolWindow("JarSpy");
if (tw != null) {
|