`
grape927
  • 浏览: 73665 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
logging.properties     handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler, test.log.TestHandler # Default global logging level.OFF, they include SEVERE,WARNING,INFO,CONFIG,FINE,FINER,FINEST and ALL. .level= FINE ####################################################### ...
  import java.net.InetAddress; import java.net.UnknownHostException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Formatter; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.LogManager; import java.util.logging.L ...
记录一下用过的开发效率提高的工具   BeyondCompare 文件比较工具 Everything 文件搜索工具 net.sf.jadclipse_3.3.0.jar、Jad 反编译工具 Easy Explorer eclipse插件链接文件目录工具 UltraEdit、NotePad++ 编辑文件工具 FingBug 代码检视工具 EA建模(Enterprise Architect)  建模工具 MemoryManager 内存占用率的监视 UIDesigner GUI原型界面工具   sonar 代码检视工具 arachni 代码安全扫描工具 Jenkins ...

EditorPart

    博客分类:
  • RCP
1、设置editor标题 @Override public void init(IEditorSite site, IEditorInput input) throws PartInitException { this.setSite(site); this.setInput(input); if (input instanceof TestEditorInput) { TestEditorInput testInput = (TestEditorInput)input; this.fileName = testInput.ge ...
1、我们可以添加org.eclipse.ui.perspectiveExtensions扩展点,类似的还可以控制View的移动、最大化最小化等 <extension         point="org.eclipse.ui.perspectiveExtensions">      <perspectiveExtension            targetID="*">         <view               closeable="false" //控制视图不被关闭          ...

RCP 程序类

    博客分类:
  • RCP
1、ApplicationWorkbenchAdvisor initialize 在启动工作台之前初始化 preStartup 在初始化完成之后,打开第一个窗口之前调用,在这里可以对编辑器和试图的初始化参数进行设置 postStartup 在所有窗口打开或恢复以后,事件循环开始之前调用。在这里可以进行一些自动批处理的工作或打开其他窗口 preShutdown 在世界循环结束以后,任何一个窗口关闭之前调用 postShutdown 在所有窗口关闭之后,工作台(Workbench)可以用来保存当前应用的状态,清理initialize方法创建的内容 2、ApplicationWorkben ...

批量重名文件

    博客分类:
  • JAVA
import java.io.File; import java.util.ArrayList; import java.util.List; public class Util { public static final List<String> list = new ArrayList<String>(); public static List<String> getList() { return list; } public static List<String> getFileList(Str ...
RCP Application Plugin JFace/SWT EditorPart/ViewPart/Perspective/…… GMF = GEF + EMF model.ecore (domain model)                                  非图形化领域模型 model.ecore_diagram                                                图形化领域模型 model.genmodel           model.gmfgraph(diagram definition mod ...
创建GEF工程,具体创建步骤可以参考http://www.ibm.com/developerworks/cn/opensource/os-ecl-gmf/ EMF注意点: 1、创建模型时,主要要有句柄ShapesDiagram。 2、实体关系要创建正确。 3、创建model.gmfmap图形映射关系时,到Map domain model elements这一步的时候,除掉多余的Links,保证connections对应关系正确,可以点击chang按钮查看修改。 GEF注意点: 1、自定义的properties Sheets时,可以自己创建一个新的properties插件。这时你需要注 ...

重命名Action

    博客分类:
  • RCP
File selected_file = (File) selection.getFirstElement(); String oldFileName = selected_file.getName(); // need write a class InputValidator implements IInputValidator InputDialog inputDlg = new InputDialog(window.getShell(), "Rename", "Please input new name", oldFile ...
    private boolean isAreadyRunning(){        boolean locked=true;        Location instanceLoc=Platform.getInstanceLocation();        if(!instanceLoc.isSet()){            try {                instanceLoc.set(instanceLoc.getDefault(), false);//关键            } catch (Exception e) {                e.pri ...
第三方国际化插件工具 1.sourceforge.net  搜索“Eclipse ResourceBundle Editor”  ----->“Relevance”---->“direct link” 2.解压ResourceBundleEditor_v0.7.7.zip 把“com.essiembre.eclipse.i18n.resourcebundle_0.7.7”直接复制到Eclipse的“plugins”文件下,重启Eclipse 3.Windows---->Preference 可以看到 “资源文件编辑器”   对第三方插件进行国际化 1.创建一个“pl ...
public class Perspective implements IPerspectiveFactory { public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout flayout = layout.createFolder(&quot;navigation&quot;, IPageLayout.LEFT, 0.25f, editorArea); flayout.addView(IPa ...
public void preWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); configurer.setInitialSize(new Point(1024, 768)); // 初始化窗体大小 configurer.setShowCoolBar(true); // 是否显示工具栏 configurer.setShowPerspectiveBar(false); // 是否显示透视图 configurer.setShowStatusLine(fals ...
在TreeViewer或TableViewer中,可用CellEditor结合CellModifier可以很实现表格的编辑功能但是默认的是单击,就会打开编辑区域。有时候我们会需要双击进行(或者其他),于是我写了一个DoubleCellModifier,只要让你的CellModifier继承它,就可 ...
Global site tag (gtag.js) - Google Analytics