前夕乐悠悠
yhyysxqygs · 共 21 篇文章
CentOS卸载二进制安装包
yum -y remove xxx 例如,卸载subservion yum -y remove svn 在Centos中yum安装和卸载软件的使用方法 安装方法 安装一个软件时 yum -y install httpd 安装多个相类似的软件时 yum -y install httpd* 安装多个非类似软件时 yum -y install httpd php php-gd mysql 卸载一个软件时 yum -y remove httpd 卸载多个相类似的软件时 yum -y remove httpd* 卸载多个非类似软件时 yum -y remove httpd php php-gd mys…
2012-08-09 14:36 · CentOS · 评论(0)
subserve 在CentOS 下的配置
CentOS下安装subversion手记 $ yum install subversion $ yum install mod_dav_svn 使用yum命令 安装 subversion 非常简单: $ yum install subversion.i686 安装之前可以用命令 yum search subersion 在centos 软件仓库中寻找合适的软件。 [lisboa@server ~]$ yum search subversion Loaded plugins: fastestmirror base | 3.7 kB 00:00 extras | 3.0 kB 00:00 up…
2012-08-09 11:19 · 评论(0)
redmine 邮箱配置
一般在configuration.yml里面的: default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :async_sendmail----如果linux下面smtp客户端没有安装,就直接使用sendmail来发送,不然smtp老是报验证不成功的错误。 smtp_settings: address: email.xxxx.com port: 25 domain: wuxi ----或者是xxxx.com之类的域名,有些邮箱网址是email.xxx.com,…
2012-08-08 16:26 · redmine · 评论(0)
一个通用的页签式视图框架
一个通用的页签式视图框架 简介: 本文设计并实现了一个通用页签式视图框架,它提供了一种纵向页签视图的快速开发能力。开发者可以利用它快捷地开发出页签样式的视图。这个框架是在 Tabbed Properties View 的基础上设计的。同时本文给出了该框架的一个使用示例。 属性视图是 Eclipse 最重要的一个扩展,用来查看或编辑项目的属性。自从 Eclipse 3.2 版本,开发者通过扩展点为属性视图定制用户界面,可以创建页签属性视图 (Tabbed Properties View)。它是纵向页签 ( 以下简称页签 ) 式的 Properties 视图,有着更加美观的效果。但是当需要在多个…
2012-07-25 09:08 · eclipse插件开发 · 评论(0)
treeviewer的某列设置背景色
package com.test; import java.io.File; import org.eclipse.jface.viewers.CheckStateChangedEvent; import org.eclipse.jface.viewers.CheckboxTreeViewer; import org.eclipse.jface.viewers.ICheckStateListener; import org.eclipse.jface.viewers.ILabelProviderListener; import org.eclipse.jface.viewers.ITable…
2012-07-23 16:10 · SWT/JFace · 评论(0)
CoolBar CoolBarManager应用到任何ViewForm
ViewForm viewForm = new ViewForm(container, SWT.NONE); MyActionGroup actionGroup = new MyActionGroup(); CoolBar coolBar=new CoolBar(viewForm,SWT.FLAT); CoolBarManager coolBarManager = new CoolBarManager(coolBar); // 创建一个toolBar的管理器 ToolBar toolBar = new ToolBar(coolBar, SWT.FLAT); // 创建一个ToolBar容器 …
2012-07-03 10:44 · Eclipse 插件 · RCP 工具栏 · 评论(0)
RCP CoolBar中添加其他类型的控件
Eclipse RCP:添加工具栏 修改浏览权限 | 删除 在工具栏上添加按钮 (1)启用工具栏 org.eclipsercp.hyperbola/ApplicationWorkbenchWindowAdvisor public void preWindowOpen() { …… configurer.setShowCoolBar(true); …… } (2)添加工具栏按钮 org.eclipsercp.hyperbola/ApplicationActionBarAdvisor protected void fillCoolBar(ICoolBarManager coolBar) { IT…
2012-07-03 10:40 · eclipse插件开发 · RCP 工具栏 · 评论(0)
ViewForm 中添加CoolBar
Composite composite = new Composite(viewForm, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); viewForm.setTopLeft(composite); CoolBar coolBar = new CoolBar(composite, SWT.FLAT); CoolItem coolItem = new CoolItem(coolBar, SWT.NONE); ToolBar toolBar = new ToolBar(coolBar, S…
2012-06-29 15:45 · SWT · 评论(0)
eclipse 透视图切换监听 和 视图激活监听
import java.io.File; import java.util.logging.Level; import java.util.logging.Logger; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.IPartListener; import org.eclipse.ui.IPerspectiveDescriptor; import org.eclipse.ui.IPerspectiveListener; import org.eclipse.ui.IStartup; import org.ecl…
2012-06-28 16:24 · Eclipse 插件 · 评论(0)
android PC机向android手机上发送事件
android PC端连接android手机: 引用包: import com.android.chimpchat.ChimpChat; import com.android.chimpchat.core.IChimpDevice; import com.android.chimpchat.core.IChimpImage; import com.android.chimpchat.core.TouchPressType; import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.IDevice; impo…
2012-06-13 15:24 · android 测试 · 评论(0)
动态更新或者删除菜单
@Override public void postWindowOpen() { super.postWindowOpen(); IMenuManager menuManager = getWindowConfigurer().getActionBarConfigurer().getMenuManager(); IContributionItem items = menuManager.getItems(); if (items.length != 0) { for (int i = 0; i < items.length; i++) { if (items*.getId().equals(…
2012-06-08 12:42 · Eclipse 插件 · 评论(0)
Toggle & Radio menu contributions
转载于:http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle-radio-menu.html Commands Part 6: Toggle & Radio menu contributions In the previous parts of the series, we saw how Commands contribute to push style menu items. But commands allow you to contribute menu items with 'toggle' and 'radio' …
2012-06-07 15:04 · Eclipse 插件 · 评论(0)
ActionHandler.java
1: /******************************************************************************* 2: * Copyright (c) 2004, 2006 IBM Corporation and others. 3: * All rights reserved. This program and the accompanying materials 4: * are made available under the terms of the Eclipse Public License v1.0 5: * which a…
2012-06-07 15:00 · Eclipse 插件 · 评论(0)
eclilpse check 菜单 --Toggle Handler for Eclipse Commands_1
转载:http://eclipsesource.com/blogs/2009/01/15/toggling-a-command-contribution/ package de.ralfebert.rcputil; import java.util.Map; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.Command; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.comm…
2012-06-07 14:59 · Eclipse 插件 · 评论(0)