eclipse-plugin

Couldn't install derby in eclipse

ぐ巨炮叔叔 提交于 2020-01-30 13:11:25
问题 I'm new to java . I'm using eclipse. I want to create database project using derby . I installed two files for derby called derby_ui_doc_plugin_1.1.3.zip and derby_core_plugin_10.8.2.zip and extracted them in plug ins of eclipse but when I opened the eclipse I couldn't find data management or data source or anything that told me that derby is installed . Thanks in advance i'm working on Kepler Service Release 2 if version is old . how can i update it ? 回答1: These plugins are very old and are

Get DB2-specific parser instance

江枫思渺然 提交于 2020-01-25 10:25:06
问题 I'm trying to create a simple plugin where I can paste in an sql query from our logs and have it display the column names and inserted values in a table. I've got it working, except for dates and times, because our DB2 database uses special values like {d: '2014-07-03'} rather than '2014-07-03' . How do I figure out what values I need to pass to SQLQueryParserManagerProvider.getInstance().getParserManager( dbProduct , dbVersion ); to get the right parser that can handle these values? 回答1: Set

Display multiple choice questions in a random order

[亡魂溺海] 提交于 2020-01-24 22:56:05
问题 Below is the code that displays multiple choice questions sequentially. It displays a question, gets the answer and checks for correctness. public static void Rap() { Scanner input = new Scanner(System.in); int correct = 0; //1 System.out.println("Complete the lyrics(hint travis scott): 'dont you open up that... \n A.can of coke \n B.window \n C. back door \n D. water bottle "); String x = input.next(); if (x.equalsIgnoreCase("b")) { System.out.println("Correct"); correct++; } if (x

NPE in HandledContributionItem.canExecuteItem

為{幸葍}努か 提交于 2020-01-24 21:17:58
问题 I have this little editor with a toolbar contributed by the plugin.xml : public class MyEditor extends EditorPart { public static final String ID = "org.acme.project.MyEditor"; @Override public void init(IEditorSite site, IEditorInput input) throws PartInitException { setSite(site); setInput(input); } @Override public void createPartControl(Composite parent) { final ToolBarManager localToolBarmanager = new ToolBarManager(); final IMenuService menuService = PlatformUI.getWorkbench().getService

NPE in HandledContributionItem.canExecuteItem

丶灬走出姿态 提交于 2020-01-24 21:17:26
问题 I have this little editor with a toolbar contributed by the plugin.xml : public class MyEditor extends EditorPart { public static final String ID = "org.acme.project.MyEditor"; @Override public void init(IEditorSite site, IEditorInput input) throws PartInitException { setSite(site); setInput(input); } @Override public void createPartControl(Composite parent) { final ToolBarManager localToolBarmanager = new ToolBarManager(); final IMenuService menuService = PlatformUI.getWorkbench().getService

How to create Eclipse GWT Designer Project, something is off?

荒凉一梦 提交于 2020-01-24 20:47:05
问题 After downloading the latest Eclipse (Luna 4.4.1), I installed the GWT / GWT designer plugin. I concluded I that I am missing WindowsBuilderPro, and so I installed it via Eclipse Help->Install New Software. Now I want to create a new GTW Designer project, and get the following choices, which I think are wrong: Tutorials, perhaps older, show the following project choice: Is my installation messed up? I reversed the installation order, and nothing changed. Is GWT Designer out of date, should I

Eclipse Plugin - get Launch Configurations Tree List in a Dialog.

牧云@^-^@ 提交于 2020-01-24 19:44:10
问题 I'm currently trying to get the red part of the "RunConfigurations..." window, (see img 1.1) into an TitleAreaDialog (see img 1.2). The final result should look like this: (see img 1.3) img 1.1 img 1.2 img 1.3 With the plugin "Spy" I found some useful information: The "Run Configurations..." window (img 1.1) is created in the class: "LaunchConfigurationsDialog" which has a "LaunchConfigurationView" as an attribute (note: this attribute is a class). Within this private attribute you find a

SWT TreeViewer is slow when filling with many elements

时间秒杀一切 提交于 2020-01-24 14:13:46
问题 I'm new in the java world, so I'm sorry if my question is trivial. I'm developing a Eclipse view part, and I'm filling a SWT tree view with the following data structure. All data is in memory: Node1 Child1 Child2 Node2 Child1 ... Child2915 I think that is not a very big tree, but it is slow being drawn (10 seconds). I have manage trees in .NET with more than 10.000 elements and it loaded smoothly. I don't know if I've implemented the code, but the same problem appeared in .NET if I did not

Eclipse rcp - how to load jdbc driver?

為{幸葍}努か 提交于 2020-01-24 12:43:26
问题 I was wondering if someone could give me some instructions on how to do the following: How to add mysql connection JAR file to the Eclipse plugin build path How to add the connector JAR file as library and adding to the plugin's runtime classpath I am getting com.mysql.jdbc.Driver exception when trying to load the Driver class using Class.forName("com.mysql.jdbc.Driver") . I have added the jdbc driver to the project by right clicking on the project name and selecting add Library button. But I

Eclipse rcp - how to load jdbc driver?

有些话、适合烂在心里 提交于 2020-01-24 12:41:13
问题 I was wondering if someone could give me some instructions on how to do the following: How to add mysql connection JAR file to the Eclipse plugin build path How to add the connector JAR file as library and adding to the plugin's runtime classpath I am getting com.mysql.jdbc.Driver exception when trying to load the Driver class using Class.forName("com.mysql.jdbc.Driver") . I have added the jdbc driver to the project by right clicking on the project name and selecting add Library button. But I