public boolean execute(@NotNull Editor editor, @NotNull DataContext context, @NotNull ExCommand cmd) throws ExException { logger.info("execute"); return true; }
@Override public boolean write(@NotNull Request message) throws IOException { ByteBuf content = message.getBuffer(); LOG.info("OUT: " + content.toString(CharsetToolkit.UTF8_CHARSET)); return vmHelper.write(content); } };
BallerinaSdkService.LOG.info("Arbitrary File Write attack attempted via an archive file. File name: " + outputFile.getName()); continue;
@Override protected void messageReceived(ChannelHandlerContext context, Object message) throws Exception { if (message instanceof ByteBuf) { LOG.info("IN: " + ((ByteBuf)message).toString(CharsetToolkit.UTF8_CHARSET)); CharSequence string = ChannelBufferToString.readChars((ByteBuf)message); JsonReaderEx ex = new JsonReaderEx(string); getCommandProcessor().processIncomingJson(ex); } } });
@Nullable @Override public Stub buildStubTree(FileContent fileContent) { byte[] content = fileContent.getContent(); Optional<Stub> stubOptional = BeamFileImpl.buildFileStub(content, fileContent.getFile().getPath()); Stub stub; if (stubOptional.isPresent()) { stub = stubOptional.get(); } else { LOGGER.info("No stub built for file " + fileContent); stub = null; } return stub; }
@Override public void valueChange(OptionChangeEvent event) { for (VimExtension extension : Extensions.getExtensions(VimExtension.EP_NAME)) { if (name.equals(extension.getName())) { if (Options.getInstance().isSet(name)) { extension.init(); logger.info("IdeaVim extension '" + name + "' initialized"); } else { extension.dispose(); } } } } });
@Override public void loadState(@NotNull final BallerinaLSPState lspState) { try { XmlSerializerUtil.copyBean(lspState, this); LOG.info("LSP State loaded"); if (extToServ != null && !extToServ.isEmpty()) { PluginMain.setExtToServerDefinition(UserConfigurableServerDefinition$.MODULE$.fromArrayMap(extToServ)); } if (timeouts != null && !timeouts.isEmpty()) { Timeout.setTimeouts(timeouts); } if (forcedAssociations != null && !forcedAssociations.isEmpty()) { PluginMain.setForcedAssociations(forcedAssociations); } } catch (final Exception e) { LOG.warn("Couldn't load BallerinaLSPState"); LOG.warn(e); ApplicationUtils$.MODULE$.invokeLater(() -> Messages.showErrorDialog("Couldn't load LSP settings, you will need to reconfigure them.", "LSP plugin")); } }
public boolean execute(@NotNull Editor editor, @NotNull DataContext context, @NotNull ExCommand cmd) throws ExException { logger.info("execute");
@Override public void build(@NotNull Target target, @NotNull DirtyFilesHolder<SourceRootDescriptor, Target> holder, @NotNull BuildOutputConsumer outputConsumer, @NotNull CompileContext context) throws ProjectBuildException, IOException { LOGGER.info(target.getPresentableName()); final Set<File> filesToCompile = new THashSet<>(FileUtil.FILE_HASHING_STRATEGY); holder.processDirtyFiles((target1, file, root) -> { boolean isAcceptFile = target1.isTests() ? ELIXIR_TEST_SOURCE_FILTER.accept(file) : ELIXIR_SOURCE_FILTER.accept(file); if (isAcceptFile && ourCompilableModuleTypes.contains(target1.getModule().getModuleType())) { filesToCompile.add(file); } return true; }); if (filesToCompile.isEmpty() && !holder.hasRemovedFiles()) return; JpsModule module = target.getModule(); JpsProject project = module.getProject(); CompilerOptions compilerOptions = Extension.getOrCreateExtension(project).getOptions(); if (compilerOptions.useMixCompiler) { doBuildWithMix(target, context, module, compilerOptions); } else { // elixirc can not compile tests now. if (!target.isTests()) { doBuildWithElixirc(target, context, module, compilerOptions, filesToCompile); } } }
@SuppressWarnings("UnresolvedPropertyKey") @NotNull public Process createProcess() throws ExecutionException { if (LOG.isDebugEnabled()) { LOG.debug("Executing [" + getCommandLineString() + "]"); } List<String> commands; try { checkWorkingDirectory(); if (StringUtil.isEmptyOrSpaces(myExePath)) { throw new ExecutionException(IdeBundle.message("run.configuration.error.executable.not.specified")); } commands = CommandLineUtil.toCommandLine(myExePath, myProgramParams.getList()); } catch (ExecutionException e) { LOG.info(e); throw e; } try { return startProcess(commands); } catch (IOException e) { LOG.info(e); throw new ProcessNotCreatedException(e.getMessage(), e, this); } }
try { JDOMUtil.load(request.getReader()); LOG.info((request.isSuccessful() ? "Successful" : "Unsuccessful") + " update: " + url);
/** * Turns off the ex entry field and optionally puts the focus back to the original component */ public void deactivate(boolean refocusOwningEditor) { logger.info("deactivate"); if (!active) return; active = false; if (!ApplicationManager.getApplication().isUnitTestMode()) { if (refocusOwningEditor && parent != null) { UiHelper.requestFocus(parent); } oldGlass.removeComponentListener(adapter); oldGlass.setVisible(false); oldGlass.remove(this); oldGlass.setOpaque(wasOpaque); oldGlass.setLayout(oldLayout); if (isIncSearchEnabled(label.getText())) { entry.getDocument().removeDocumentListener(documentListener); final Editor editor = entry.getEditor(); editor.getScrollingModel().scrollVertically(verticalOffset); editor.getScrollingModel().scrollHorizontally(horizontalOffset); if (incHighlighter != null) { editor.getMarkupModel().removeHighlighter(incHighlighter); } } } parent = null; }
private void init(File file) { try { LOGGER.info(String.format("Adding file %s", file)); BufferedImage image = ImageIO.read(file); imageFile = file; originalImageWidth = image.getWidth(); targetWidth = image.getWidth(); targetHeight = image.getHeight(); aspectRatio = (float) image.getHeight() / (float) originalImageWidth; } catch (Exception e) { LOGGER.error(e); } }
public CheckStyleModulePlugin(@NotNull final Module module) { LOG.info("CheckStyle Module Plugin loaded for module: \"" + module.getName() + "\""); }
synchronized public static void cleanInstance(Project project){ if(instance.containsKey(project)) { Symfony2ProjectComponent.getLogger().info("clean ServiceXmlParserFactory for " + project.getName()); instance.remove(project); } }
/** * Construct a plug-in instance for the given project. * * @param project the current project. */ public CheckStylePlugin(@NotNull final Project project, @NotNull final PluginConfigurationManager configurationManager, @NotNull final CheckerFactoryCache checkerFactoryCache) { this.project = project; this.configurationManager = configurationManager; this.checkerFactoryCache = checkerFactoryCache; LOG.info("CheckStyle Plugin loaded with project base dir: \"" + getProjectPath() + "\""); disableCheckStyleLogging(); }
@Override public void run(@NotNull ProgressIndicator indicator) { Symfony2ProjectComponent.getLogger().info("Running webDeployment dev download"); RemoteWebServerUtil.collectRemoteFiles(project); } }.queue();
synchronized public TranslationStringMap getTranslationMap() { if(this.translationStringMap != null && this.isCacheValid()) { return this.translationStringMap; } File translationDirectory = this.getTranslationRoot(); if(null == translationDirectory) { return new TranslationStringMap(); } Symfony2ProjectComponent.getLogger().info("translations changed: " + translationDirectory.toString()); this.translationStringMapModified = translationDirectory.lastModified(); return this.translationStringMap = new TranslationPsiParser(project).parsePathMatcher(translationDirectory.getPath()); }
public void projectOpened() { if(!WebDeploymentUtil.isEnabled(project)) { return; } // remote file downloader if(Settings.getInstance(project).remoteDevFileScheduler) { Symfony2ProjectComponent.getLogger().info("Starting Symfony webDeployment background scheduler"); DumbService.getInstance(project).smartInvokeLater(() -> new Timer().schedule(new MyTimerTask(), 1000, 300000)); } }
public void asyncScanFiles(final List<VirtualFile> files, final ConfigurationLocation overrideConfigLocation) { LOG.info("Scanning current file(s)."); if (files == null || files.isEmpty()) { LOG.debug("No files provided."); return; } final ScanFiles checkFiles = new ScanFiles(this, files, overrideConfigLocation); checkFiles.addListener(new UiFeedbackScannerListener(this)); runAsyncCheck(checkFiles); }