1 19 20 package org.netbeans.modules.java.project; 21 import javax.swing.Action ; 22 import org.netbeans.spi.project.ActionProvider; 23 import org.netbeans.spi.project.ui.support.FileSensitiveActions; 24 import org.openide.util.NbBundle; 25 26 27 31 public class JavaProjectModule { 32 33 public static Action compile() { 34 return FileSensitiveActions.fileCommandAction( 35 ActionProvider.COMMAND_COMPILE_SINGLE, 36 NbBundle.getMessage( JavaProjectModule.class, "LBL_CompileFile_Action" ), null ); 38 } 39 40 public static Action run() { 41 return FileSensitiveActions.fileCommandAction( 42 ActionProvider.COMMAND_RUN_SINGLE, 43 NbBundle.getMessage( JavaProjectModule.class, "LBL_RunFile_Action" ), null ); 45 } 46 47 public static Action debug() { 48 return FileSensitiveActions.fileCommandAction( 49 ActionProvider.COMMAND_DEBUG_SINGLE, 50 NbBundle.getMessage( JavaProjectModule.class, "LBL_DebugFile_Action" ), null ); 52 } 53 54 } 55 | Popular Tags |