explorer

How to add the Project Explorer view to an Eclipse RCP application

本小妞迷上赌 提交于 2019-12-07 16:07:16
问题 Can someone tell me in detail how to implement the project explorer view in my RCP? 回答1: Use this great tutorial to show any view in your perspective. The rest it to find out the id of Project Explorer View. You will need to add a dependency to the plugin containing Project Explorer View and probably some user plugins required subsequently. Check dependencies with plugin dependencies page. To find out the id of the view you can search in jar files in the plugin directory of Eclipse

Showing file in Windows Explorer

邮差的信 提交于 2019-12-07 00:42:15
问题 My favorite IDE Wing IDE has a command for showing the active file in Explorer. This means that when you launch the command, it opens an explorer window on the folder that the file is in, and then selects the file. The problem is, that if the window is already open, it fails to select the file. It activates the window, but the file doesn't get selected. That's annoying. I want the file to always be selected I spoke to one of the developers and he said that they're using 'explorer /select,%s'

在html中判断IE浏览器的版本

烈酒焚心 提交于 2019-12-06 17:46:12
如何让静态HTML代码根据不同IE版本显示不同内容。 这里的技巧就是利用IE的HTML注释表达式。 HTML 的注释格式是 <!-- Comment content --> , IE 对HTML注释做了一些扩展,使之可以支持条件判断表达式: <!--[if expression]> HTML <![endif]--> 当表达式expression 为True 的时候,显示 HTML 内容。 例子: view plaincopy to clipboardprint? <!--[if IE 5]> <p>Welcome to Internet Explorer 5.</p> <![endif]--> <!--[if IE 5]> <p>Welcome to Internet Explorer 5.</p> <![endif]--> 和编程语言类似,这里的表达式还支持大于(gt)、小于(lt)、 与或非 等操作符。 下面是一些例子。 [if IE] 判断是否IE [if IE 7] 判断是否是IE7 [if !IE] 判断是否不是IE [if lt IE 5.5] 判断是否是IE5.5 以下版本。 (<) [if lte IE 6] 判断是否等于IE6 版本或者以下 (<=) [if gt IE 5] 判断是否IE5以上版本 (> ) [if gte IE 7] 判断是否 IE7

Execute PowerShell command on selected files in Explorer

旧巷老猫 提交于 2019-12-06 14:15:02
How to execute a rename command in PowerShell only on selected files in Explorer? I have the PS command but I don't know where to put it in the Windows registry to be accessible in the right-click context menu in Explorer. HKCR:\*\shell contains what you need. Create a new key with the name of what you want to call it (eg "Rename With Date"), then a subkey called "Command" with a default value of your command. So for example, HKCR:\*\shell\Rename With Date\Command where the (Default) value is PowerShell -Command Rename-Item "%1" ((Get-Date).ToShortDateString() + " - %1") or something should do

Explorer theme for WPF ListView?

岁酱吖の 提交于 2019-12-06 11:23:43
问题 How do I get the explorer theme in a WPF ListView? I know that one answer is the GridView, but that is like the Details view in Windows Explorer. I need the List, Tiles and Icons view themed like the Explorer. How do I get that? 回答1: The Windows API Code Pack has an Explorer browser control, which has exactly the same appearance as the Windows Explorer (of course I'm assuming you want to display files, not something else...) Anyway, if you want to do it yourself, you could create several

How to refresh explorer after a registry change

假装没事ソ 提交于 2019-12-06 08:35:26
I'm trying to refresh the system (Windows 8) after changing a value in the registry, this value affects the explorer settings, Is the value to show/hide the checkboxes: Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Shown RegEdit.Set_Value("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", _ "AutoCheckSelect", "1", Microsoft.Win32.RegistryValueKind.DWord) End Sub And to refresh the system I use this: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click SHChangeNotify(HChangeNotifyEventID.SHCNE_ASSOCCHANGED,

Closing All Explorer Windows in PowerShell

浪尽此生 提交于 2019-12-06 04:19:15
问题 I am writing the following code to close all explorer windows with PowerShell: (New-Object -comObject Shell.Application).Windows() | ? { $_.FullName -ne $null} | ? { $_.FullName.toLower().Endswith('\explorer.exe') } | % { $_.Quit() } But it does not close out all the open windows. Instead, it closes only RoundDown(N/2)+1 windows, and leaves RoundUp(N/2)-1 windows open. Can anyone help with this? 回答1: I think there's something in the pipeline that goes wrong. This code works: $a = (New-Object

使用Prometheus监控Linux系统各项指标

早过忘川 提交于 2019-12-06 00:55:42
首先在Linux系统上安装一个探测器node explorer, 下载地址https://prometheus.io/docs/guides/node-exporter/ 这个探测器会定期将linux系统的各项硬件指标和内核参数通过9100端口和url metrics暴露给外部。 启动node explorer,显示在9100端口上监听: 浏览器里输入hostname:9100/metrics就可以访问到node explorer收集到的各项参数: 一些例子: CPU在不同工作模式下的使用时间:node_cpu_seconds_total 文件系统可用字节数:node_filesystem_avail_bytes 网卡收到的字节数:node_network_receive_bytes_total 下面用Prometheus来收集和展示通过node explorer暴露出来的数据。 在Prometheus安装目录的prometheus.yml文件里定义一个job,指向Linux系统上运行的node explorer: 本地启动Prometheus,打开下面的url: http://localhost:9090/ 输入node_cpu_seconds_total{mode="system"},查询该服务器上所有CPU工作在系统态消耗的时间: 还可以指定时间窗口

Open Internet Properties and wait until user close it C#

旧巷老猫 提交于 2019-12-05 21:58:12
Is there any possibility to open Internet Properties window.. Code: System.Diagnostics.Process p; p = System.Diagnostics.Process.Start("InetCpl.Cpl", ",4"); .. and wait until user close it? (and then check internet connection and continue) This code not work: p.WaitForExit(); I think this problem is related to Open explorer window and wait for it to close but solution for this contains only tips specific for windows explorer browser window. Can I do this in C#? Solution Someone put here (only for a short moment) this full command how to open Internet Properties window: C:\Windows\system32

Copying file details from Explorer as tabular text

你离开我真会死。 提交于 2019-12-05 19:52:13
I am looking for a way to easily copy the file details that appear in a Windows Explorer (details view) and paste it as tabular text. Ideally, the procedure would be to select some files in an Explorer, make a choice in the context menu (or use a shortcut key), and the list would be copied to the clipboard. When pasting, the tabular format would be preserved so that Excel would recognize the columns or Word keep tabs (or create a table). I would like to have a solution that transfers the available columns, and not just a predefined set a details such as name + size + date. Do you think that