eclipse-rcp

How to find orphan plugins in eclipse RCPs?

╄→гoц情女王★ 提交于 2019-12-10 10:48:49
问题 Update sites with RCPs prohibits orphan plugins, otherwise plugins that are not in a feature. If this condition is not filled, the update manager returns the following error: Resulting configuration does not contain the platform. Unfortunately, no way to determine which plugins are orphan. How to find orphan plugins ? 回答1: Here's a starting point (this applies for Eclipse 3.4 and later, when the P2 repository was introduced, earlier versions store their configuration differently. IIRC you

How to add files to the root of an Eclipse RCP app?

独自空忆成欢 提交于 2019-12-10 10:38:51
问题 I would like to know if is possible(and how) to add files to the root of an Eclipse RCP app. I have an AppManual.pdf and i would like to distribute in the root of the app. 回答1: Check out http://help.eclipse.org/galileo/topic/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm 来源: https://stackoverflow.com/questions/11366399/how-to-add-files-to-the-root-of-an-eclipse-rcp-app

Eclipse RCP application - custom splash screen

送分小仙女□ 提交于 2019-12-10 10:15:38
问题 I'm currently developing an Eclipse RCP application, in which I'm trying to implement a custom splash screen handler, sporting a progress bar (behavior similar to the default progress bar you can define in the .product definition) and multiple cycling background images. After editing the extensions of the main application plugin this way: [...] <!-- install custom splash handler --> <extension point="org.eclipse.ui.splashHandlers"> <splashHandler class="com.example.application.splash

How to add perspective listeners

旧城冷巷雨未停 提交于 2019-12-10 10:13:21
问题 In our application, we have 4 views (View 1, 2, 3 & 4) and 3 perspectives (perspective 1, 2 and 3). The perspectives are built by implementing IPerspectivefactory and views are built by extending viewPart. We are facing a situation where we want to set the focus to a particular view in case of any of the perspective is selected. For ex, Consider View 1 as a common view which will be displayed under all the 3 perspectives. We want to set focus to View1 whenever we select any perspective. How

In eclipse API, How to get IFile from file that locate outside project or workspace

情到浓时终转凉″ 提交于 2019-12-10 10:12:28
问题 I want to create IFile interface to open file that locate outside project or workspace. How to get IFile interface? Regards, Simon 回答1: http://wiki.eclipse.org/FAQ_How_do_I_open_an_editor_on_a_file_outside_the_workspace%3F You can create a linked resource : IPath location = new Path(name); IFile file = project.getFile(location.lastSegment()); file.createLink(location, IResource.NONE, null); Or, if you can use the EFS interface (since Eclipse 3.3), you can use that instead of IFile. 来源: https:

Eclipse RCP - good Eclipse Forms tutorial/resource

最后都变了- 提交于 2019-12-10 10:05:40
问题 I'm looking for resources to learn how to use effectively Eclipse forms within an Eclipse RCP application. I was trying to use the newest SWT Window Builder plugin on Indigo but building forms this way doesn't really work for me eg. cannot put anything inside expandable composite etc. (I have Swing background with Netbeans designer) and I'm new to SWT. All I can find so far is this quite old tutorial from 2005. Any help, point to good tutorial/book/source code sample will be highly

Developing Eclipse plugins without Java

百般思念 提交于 2019-12-10 05:38:31
问题 Is it possible to create Eclipse plugins/program Eclipse RCP apps without Java? (preferably in Jython) 回答1: This will be possible in the next Eclipse major release e4: One of the goals of e4 is to provide support for writing plugins in other languages. The quote is from http://wiki.eclipse.org/E4/JavaScript which summarizes the current state of using javascript to implement eclipse plug-ins in e4. This issue in eclipse's bugzilla issue #227058 also has some discussion on that, but I believe

Blinking background rows of TableViewer or TreeViewer in SWT

北城余情 提交于 2019-12-10 03:19:23
问题 I need the ability to have a blinking (red, maybe more colors) background for rows in a TableViewer/TreeViewer. What are the best options? There may be more than one row blinking, the blinking MUST be synchron and I need two blinking modes, fast and slow. 回答1: I would do something similar to this. Update the elements that you need to change the colors for at a regular interval. At each update toggle the colors depending on how you want them to flash. void scheduleColorChange(final Color

get line number within a eclipse Plugin

霸气de小男生 提交于 2019-12-09 23:27:34
问题 I'm looking for the right extension point for my plugin to access the cursor position in the editor. The aim is to provide additional information to the current code line in a plugin view. I sure it is possible, since the Outline view for example highlights the current function which I'm within. thx 回答1: You can use textSelection.getOffset() from the pattern you've found and then use the org.eclipse.jface.text.IDocument interface to extract text from the document to do whatever analysis you

Problem with Validating the Integer Value in Java

▼魔方 西西 提交于 2019-12-09 23:00:45
问题 hi i am using Eclipse Rcp and i need to validate the textbox that only accept the integer value for that i have use the code txtCapacity.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent EVT) { if((EVT.character>='0' && EVT.character<='9')){ txtCapacity.setEditable(true); txtCapacity.setEditable(true); } else { txtCapacity.setEditable(false); System.out.println("enter only the numeric number"); } } }); It validates But the Problem with this one is that i cannot use the