本文整理汇总了Java中com.intellij.execution.RunConfigurationExtension类的典型用法代码示例。如果您正苦于以下问题:Java RunConfigurationExtension类的具体用法?Java RunConfigurationExtension怎么用?Java RunConfigurationExtension使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RunConfigurationExtension类属于com.intellij.execution包,在下文中一共展示了RunConfigurationExtension类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupJavaParameters
import com.intellij.execution.RunConfigurationExtension; //导入依赖的package包/类
protected void setupJavaParameters(JavaParameters params) throws ExecutionException {
JavaParametersUtil.configureConfiguration(params, myConfiguration);
for (RunConfigurationExtension ext : RunConfigurationExtension.EP_NAME.getExtensions()) {
ext.updateJavaParameters(getConfiguration(), params, getRunnerSettings());
}
}
示例2: setupJavaParameters
import com.intellij.execution.RunConfigurationExtension; //导入依赖的package包/类
protected void setupJavaParameters(OwnJavaParameters params) throws ExecutionException
{
JavaParametersUtil.configureConfiguration(params, myConfiguration);
for(RunConfigurationExtension ext : RunConfigurationExtension.EP_NAME.getExtensions())
{
ext.updateJavaParameters(getConfiguration(), params, getRunnerSettings());
}
}
示例3: createJavaParameters
import com.intellij.execution.RunConfigurationExtension; //导入依赖的package包/类
@Override
protected final JavaParameters createJavaParameters() throws ExecutionException {
JavaParameters javaParameters = new JavaParameters();
for(RunConfigurationExtension ext: Extensions.getExtensions(RunConfigurationExtension.EP_NAME)) {
ext.updateJavaParameters(configuration, javaParameters, getRunnerSettings());
}
// @TODO What is the classpath entry constant class?
javaParameters.configureByModule(module, 3);
javaParameters.setMainClass(configuration.getRunSettings().getSketchClass());
ParametersList programParameters = javaParameters.getProgramParametersList();
int display = configuration.getRunSettings().getDisplay();
programParameters.addParametersString(CliArg.DISPLAY.text() + ARG_VAL_SEP + display);
String windowColorHex = configuration.getRunSettings().getWindowBackgroundColor();
if (windowColorHex != null && ! windowColorHex.isEmpty()) {
programParameters.addParametersString(CliArg.WINDOW_COLOR.text() + ARG_VAL_SEP + windowColorHex);
}
String stopButtonColorHex = configuration.getRunSettings().getStopButtonColor();
if (stopButtonColorHex != null && ! stopButtonColorHex.isEmpty()) {
programParameters.addParametersString(CliArg.STOP_BUTTON_COLOR.text() + ARG_VAL_SEP + stopButtonColorHex);
}
DisplayLocation sketchLocation = DisplayLocation.toEnum(configuration.getRunSettings().getLocation());
// Processing Core automatically aligns sketch at the center of the screen, incorporating sketch size.
if (sketchLocation != DisplayLocation.CENTER) {
GraphicsDevice[] screens = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
GraphicsDevice screen;
if (display >= screens.length) {
logger.warn("The display with index " + display + " is no longer connected.");
screen = screens[0];
} else {
screen = screens[display];
}
Point sketchLocationPoint = sketchLocation.getLocation(screen);
programParameters.addParametersString(CliArg.SKETCH_SCREEN_LOCATION.text() + ARG_VAL_SEP +
((int) sketchLocationPoint.getX()) + "," + ((int) sketchLocationPoint.getY()));
}
String sketchOutputPath = configuration.getRunSettings().getSketchOutputPath();
if (sketchOutputPath != null && !sketchOutputPath.isEmpty()) {
programParameters.addParametersString(CliArg.SKETCH_OUTPUT_PATH.text() + ARG_VAL_SEP + sketchOutputPath);
}
if (configuration.getRunSettings().isHideStopButton()) {
programParameters.add(CliArg.HIDE_STOP_BUTTON.text());
}
if (configuration.getRunSettings().isFullscreen()) {
programParameters.addParametersString(CliArg.PRESENTATION_MODE.text());
}
programParameters.add(configuration.getRunSettings().getSketchClass());
programParameters.addParametersString(configuration.getRunSettings().getSketchArguments());
javaParameters.getVMParametersList().addParametersString(configuration.getRunSettings().getJvmArguments());
return javaParameters;
}
示例4: getExtensionSettings
import com.intellij.execution.RunConfigurationExtension; //导入依赖的package包/类
@Nullable
public Object getExtensionSettings (Class<? extends RunConfigurationExtension> extensionClass) {
return extensionSettings.get (extensionClass);
}
示例5: setExtensionSettings
import com.intellij.execution.RunConfigurationExtension; //导入依赖的package包/类
public void setExtensionSettings (Class<? extends RunConfigurationExtension> extensionClass, Object value) {
extensionSettings.put (extensionClass, value);
}