eclipse-pde

How to make read only editor in Eclipse (Eclipse Plugin Development)

Hi, I'm wondering how to make a really read only eclipse editor.. My editor extends TextEditor, so when I reimplement method isEditable to always return false. It's the easiest way, which prevents user from typing or deleting anything in the document opened in the editor. But you can still change content of the document for example b...

Eclipse PDE build fails to find jar location on customAssembly

I'm running a PDE build - pretty much defaults ( see at the end of the message ) which manages to copy all my plugins/features, resolve them, compile them and generate p2 metadata. At the customAssembly step it fails misteriously with BUILD FAILED /home/robert/apps/eclipse/plugins/org.eclipse.pde.build_3.5.0.v20090527-1800/scripts ...

JCE problem in Lotus Expeditor (IBM's custom Eclipse runtime)

I'm trying to authenticate to Google Apps using the GData client library. I've imported the needed jars and dependencies from the library into my Eclipse environment and verified that test code that calls the service works when run (a) as a POJO and (b) as a standard Eclipse plugin. When running in the Expeditor runtime (j9vm - Lotus Sym...

Eclipse RCP/ Plug-in Question

Hi, I have an RCP application (referred to as RCP-APP). I have created a new plug-in (referred to as plug-in A) that wraps a media player api (.jar file) and a folder of C libraries (dlls) that the media player api accesses via JNA. I then created another plugin (referred to as plug-in B) that contains a media player application that ...

Eclipse Plug-in / View Question

I have a plugin which contains class A that brings up a view defined in class B via the following line of code: (VideoLogView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("Videolog.VideoLogView"); What I need to do in the createPartControl() method of the view (class B object) is access a method in t...

executing eclipse.buildscript task on a feature misses the fragment

I have a feature called foo, plugin called foo, and a single fragment foo.win32.x86. I should be able to execute a call to eclipse.buildscript within an ant file on a feature and have it create a build.xml for the feature, plugin, and fragment; however, all I get is the build.xml for the feature and plugin. The foo feature.xml: <?xml ...

osgi: fragment is not working outside eclipse pde (and no error appeared)

Context of this problem: OSGi and Eclipse Platform. I've got bundle (plugin) which is host for some fragment. Fragment is running only when I start it through Eclipse "run configuration" (I add it in plugin dependencies in run configuration of plugin), but when I am trying to export it either through eclipse or through maven tycho proje...

How to get API Tooling to work in Eclipse

I have been having a real hard time getting API Tooling to work in Eclipse 3.4.2. It keeps telling me: The minor version should be incremented in version 3.4.0.qualifier, since new APIs have been added since version 3.4.0.40001 That being said, I have generated the plugins that are used for the baseline from the exact same code th...

Using a ILightweightLabelDecorator decorator

Having implemented one of the above, can anyone say how I might wire it up directly to a viewer? None of the usual sources explain. Martin. ...

Hudson job does not stop - why?

Hello! My automated build and tests are up and running, everything works fine. Im am using hudson and the pde build (configured with pluginbuilder). When the build succeeds everything is fine, the hudson ball turns blue and so on. But when something goes wrong and the build or tests fail - the Hudson job does NOT end. I am invoking ...

Eclipse PDE build does not call customBuildCallbacks.xml

I'm trying to get my PDE build script to invoke my customBuildCallbacks.xml. I've added # build.properties customBuildCallbacks=customBuildCallbacks.xml and copied the customBuildCallbacks.xml file from the PDE build plugin, but it's still not called. The only reference to customBuildCallbacks I get (with -verbose) is a note [java] ...

Eclipse PDE Ant Build Script Generation Failing Due to Binary Cycles

I'm trying to compile down a set of plug-ins (ultimately OSGi bundles) into a feature using Eclipse PDE tools. I have a custom Target Platform based on the Spring framework. When I export the feature through Eclipse's Export Wizard the feature builds successfully, however, when I try to generate an Ant build script from the feature.xml...

Running Eclipse Plug-in tests in non-ui thread

How do I run a Eclipse JUnit plug-in test in a non-ui thread when running the tests from the command-line? In the launch configuration dialog I can uncheck the checkbox "Run in UI thread", but how do I do that when running plug-in tests on the command-line? EDIT: It seems as if org.eclipse.pde.junit.runtime.nonuithreadtestapplication is...

Eclipse: how to run plugin test as part of local build

Hello! Due to incomplete understanding of eclipse infrastructure I have one problem. Historically we have one ugly thing in our build procedure. It looks like following: After eclipse builds entire workspace there is one incomplete thing in local build of plugins. It is some data file which is currently built during execution of special ...

hiding tab in pde

Hi, I have an editor (emf editor). And I only want one of the tabs in the editor. If I do not add the other pages, I still see one tab in the tab selection. Can I hide the tab, so the user will not see it is a multipageeditor? ...

Update Site Creation Automation

Hi, I've developed an eclipse plug in, and created a feature and an update site projects inside eclipse to publish it. What i am looking for, is a way to automate the process of creating my update site during our automatic build process through a command line rather that manually throught the UI of the update site project. It seems to ...

Adding a list to a PreferencePage

Update: So far I found class ListEditor which provides the functionality I'm searching for except the 'edit' button and only for one column. The 'Proxy bypass' Page extends directly from PreferencePage. So there is no proper Base Class I could use. -- The standard PDE way of adding Preference is to use field editors (for Boolean, Stri...

TargetInvocationException when calling performFinish() on any subclass of NewItemWizard in Eclipse JDT UI plugins

I'm posting this on behalf of the 30 or so projects that seem to be suffering from this problem without any resolution. Basically the problem boils down to, a subclass of org.eclipse.jdt.internal.ui.wizards.NewElementWizard (which is the "Wizard" that controls the creation of new JDT elements like projects, packages, classes, etc -- thi...

Get IResources methods in eclipse development?

I'm developing an eclipse plugin and need to list of IMethods that belong to an IResource. I see IType has a getMethods function but not sure how to go about converting an IResource to an IType Help appreciated Nicky ...

eclipse.buildscript building a platform specific feature on the wrong platform

I have a feature and plugin called foo, and both are win32 platform specific; however, when I call the following in my ANT script on a linux, gtk, x86 system, the feature is built, but the plugin isn't (correct). <eclipse.buildScript elements="feature@foo" configInfo="${os},${ws},${arch}" buildDirectory="${edge.build.eclipse.loc}" baseL...