当前位置: 首页>>代码示例>>Java>>正文


Java ProjectSensitiveActions类代码示例

本文整理汇总了Java中org.netbeans.spi.project.ui.support.ProjectSensitiveActions的典型用法代码示例。如果您正苦于以下问题:Java ProjectSensitiveActions类的具体用法?Java ProjectSensitiveActions怎么用?Java ProjectSensitiveActions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProjectSensitiveActions类属于org.netbeans.spi.project.ui.support包,在下文中一共展示了ProjectSensitiveActions类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: profileProjectPopup

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@Messages({
    "LBL_ProfileProject=Profile"
})
@ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.ProfileProjectPopup")
@ActionRegistration(displayName="#LBL_ProfileProject", lazy=false, asynchronous=true)
@ActionReferences({
    @ActionReference(path="Projects/org-netbeans-modules-java-j2seproject/Actions", position=1000),
    @ActionReference(path="Projects/org-netbeans-modules-java-j2semodule/Actions", position=1000),
    @ActionReference(path="Projects/org-netbeans-modules-apisupport-project/Actions", position=900),
    @ActionReference(path="Projects/org-netbeans-modules-apisupport-project-suite/Actions", position=1000),
    @ActionReference(path="Projects/org-netbeans-modules-web-project/Actions", position=1000)
})
public static Action profileProjectPopup() {
    Action delegate = ProjectSensitiveActions.projectSensitiveAction(
            ProjectSensitivePerformer.profileProject(ActionProvider.COMMAND_PROFILE), 
            NbBundle.getMessage(AntActions.class, "LBL_ProfileProject"), // NOI18N
            null
    );
    
    return delegate;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:AntActions.java

示例2: projects

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@Messages({
        "# {0} - # of selected projects (0 if disabled), or -1 if main project", 
        "# {1} - project name, if exactly one project", 
//        "LBL_ProfileMainProjectAction=&Profile {0,choice,-1#Main Project|0#Project|1#Project ({1})|1<{0} Projects}" // #231371
        "LBL_AttachMainProjectAction=&Attach to {0,choice,-1#Main Project|0#Project|1#Project ({1})|1<Project}"
    })
    @ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.AttachMainProject")
    @ActionRegistration(displayName="#LBL_AttachMainProjectAction", lazy=false)
    @ActionReferences({
        @ActionReference(path="Menu/Profile", position=125)
    })
    public static Action attachMainProjectAction() {
        Action delegate = ProjectSensitiveActions.projectSensitiveAction(
                ProjectSensitivePerformer.attachProject(), 
                NbBundle.getMessage(AntActions.class, "LBL_AttachMainProjectAction"), // NOI18N
                Icons.getIcon(ProfilerIcons.ATTACH)
        );
        delegate.putValue(Action.SHORT_DESCRIPTION, NbBundle.getMessage(AntActions.class, "LBL_AttachMainProjectAction")); // NOI18N
        delegate.putValue("iconBase", Icons.getResource(ProfilerIcons.ATTACH)); // NOI18N
        
        return delegate;
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:AntActions.java

示例3: MainProjectManager

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@java.lang.SuppressWarnings("LeakingThisInConstructor")
private MainProjectManager () {
    pcs = new PropertyChangeSupport (this);
    a = ProjectSensitiveActions.projectSensitiveAction (
        this, "x", null
    );
    OpenProjects.getDefault().addPropertyChangeListener(this);
    currentProject = new WeakReference<Project>(OpenProjects.getDefault().getMainProject());
    isMainProject = currentProject.get() != null;
    a.addPropertyChangeListener(this); // I'm listening on it so that I get enable() called.
    SwingUtilities.invokeLater(new Runnable() {
        public @Override void run() {
            a.isEnabled();
        }
    });
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:MainProjectManager.java

示例4: getActions

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    Action[] nodeActions = {
        CommonProjectActions.newFileAction(),
        null,
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_BUILD, Bundle.LBL_BuildAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_REBUILD, Bundle.LBL_CleanBuildAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_CLEAN, Bundle.LBL_CleanAction_Name(), null),
        null,
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_RUN, Bundle.LBL_RunAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_DEBUG, Bundle.LBL_DebugAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_PROFILE, Bundle.LBL_ProfileAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_TEST, Bundle.LBL_TestAction_Name(), null),
        null,
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.setAsMainProjectAction(),
        CommonProjectActions.closeProjectAction(),
    };
    return nodeActions;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:22,代码来源:GoProjectLogicalView.java

示例5: buildZip

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.buildZip")
@ActionRegistration(displayName="#SUITE_ACTION_zip", lazy=false)
@ActionReference(path=SUITE_PACKAGE_ACTIONS_PATH, position=100)
@Messages("SUITE_ACTION_zip=ZIP Distribution")
public static Action buildZip() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BUILD_ZIP, SUITE_ACTION_zip(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例6: nbms

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.nbms")
@ActionRegistration(displayName="#SUITE_ACTION_nbms", lazy=false)
@ActionReference(path=SUITE_PACKAGE_ACTIONS_PATH, position=200)
@Messages("SUITE_ACTION_nbms=NBMs")
public static Action nbms() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_NBMS, SUITE_ACTION_nbms(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例7: buildMac

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.buildMac")
@ActionRegistration(displayName="#SUITE_ACTION_mac", lazy=false)
@ActionReference(path=SUITE_PACKAGE_ACTIONS_PATH, position=300)
@Messages("SUITE_ACTION_mac=Mac OS X Application")
public static Action buildMac() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BUILD_MAC, SUITE_ACTION_mac(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例8: buildJnlp

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.buildJnlp")
@ActionRegistration(displayName="#SUITE_ACTION_build_jnlp", lazy=false)
@ActionReference(path=SUITE_JNLP_ACTIONS_PATH, position=100)
@Messages("SUITE_ACTION_build_jnlp=Build")
public static Action buildJnlp() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BUILD_JNLP, SUITE_ACTION_build_jnlp(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例9: runJnlp

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.runJnlp")
@ActionRegistration(displayName="#SUITE_ACTION_run_jnlp", lazy=false)
@ActionReference(path=SUITE_JNLP_ACTIONS_PATH, position=200)
@Messages("SUITE_ACTION_run_jnlp=Run")
public static Action runJnlp() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_RUN_JNLP, SUITE_ACTION_run_jnlp(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例10: debugJnlp

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.debugJnlp")
@ActionRegistration(displayName="#SUITE_ACTION_debug_jnlp", lazy=false)
@ActionReference(path=SUITE_JNLP_ACTIONS_PATH, position=300)
@Messages("SUITE_ACTION_debug_jnlp=Debug")
public static Action debugJnlp() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_DEBUG_JNLP, SUITE_ACTION_debug_jnlp(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例11: buildOsgi

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.buildOsgi")
@ActionRegistration(displayName="#SUITE_ACTION_build_osgi", lazy=false)
@ActionReference(path=SUITE_OSGI_ACTIONS_PATH, position=100)
@Messages("SUITE_ACTION_build_osgi=Build Bundles")
public static Action buildOsgi() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BUILD_OSGI, SUITE_ACTION_build_osgi(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例12: buildOsgiObr

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.buildOsgiObr")
@ActionRegistration(displayName="#SUITE_ACTION_build_osgi_obr", lazy=false)
@ActionReference(path=SUITE_OSGI_ACTIONS_PATH, position=200)
@Messages("SUITE_ACTION_build_osgi_obr=Build Bundle Repository")
public static Action buildOsgiObr() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BUILD_OSGI_OBR, SUITE_ACTION_build_osgi_obr(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例13: runOsgi

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.runOsgi")
@ActionRegistration(displayName="#SUITE_ACTION_run_osgi", lazy=false)
@ActionReference(path=SUITE_OSGI_ACTIONS_PATH, position=300)
@Messages("SUITE_ACTION_run_osgi=Run in Felix")
public static Action runOsgi() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_RUN_OSGI, SUITE_ACTION_run_osgi(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例14: debugOsgi

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.debugOsgi")
@ActionRegistration(displayName="#SUITE_ACTION_debug_osgi", lazy=false)
@ActionReference(path=SUITE_OSGI_ACTIONS_PATH, position=400)
@Messages("SUITE_ACTION_debug_osgi=Debug in Felix")
public static Action debugOsgi() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_DEBUG_OSGI, SUITE_ACTION_debug_osgi(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java

示例15: branding

import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; //导入依赖的package包/类
@ActionID(category="Project", id="org.netbeans.modules.apisupport.project.suite.branding")
@ActionRegistration(displayName="#SUITE_ACTION_branding", lazy=false)
@ActionReference(path=SUITE_ACTIONS_PATH, position=2700)
@Messages("SUITE_ACTION_branding=Branding...")
public static Action branding() {
    return ProjectSensitiveActions.projectCommandAction(COMMAND_BRANDING, SUITE_ACTION_branding(), null);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SuiteActions.java


注:本文中的org.netbeans.spi.project.ui.support.ProjectSensitiveActions类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。