11 Oct 2014

Quick Tip: Using working sets in Domino Designer and Eclipse


I use working sets in Domino Designer all the time otherwise the Application Navigator becomes unbearable.You can also use working sets in the Package Explorer but unfortunately as standard they are not linked to the working set selected in the Application Navigator. Brad Balassaitis has previously blogged how to configure the Package Explorer and Application Navigator to use the same working set: XPages Tip: Select a Working Set in Package Explorer (and Navigator)

As I transition into doing more Java work in Eclipse I decided to use working sets there too. By default the Package Explorer in Eclipse does not display your projects grouped by their working sets although you can add new and existing projects into them.
To display working sets in the package explorer click the 'View Menu' button in the top right, then select 'Top Level Elements' and 'Working Sets'

I also find it very useful that you can add a project to multiple working sets.

If like myself you use working sets heavily this post from Paul Withers on Restoring Domino Designer…Including Working Sets will be very useful.

Anybody have any useful tips when using Eclipse for XPages OSGI Development?

2 Oct 2014

Domino OSGI (Part 4) - Deploy a custom plugin to Domino Designer

In my previous post I walked through creating a simple layout control as an OSGI plugin.
The next step is to deploy the control to designer this is where the set up we did in part 2 comes in.

Inside eclipse then right click the plugin then go to Export
Select 'Deployable plug-ins and fragments' and click next.
Ensure your plug-in is ticked then set the destination as 'Directory' and set that to be your newly created plugin directory, finally click finish.

Your plugin should now be available inside Domino Designer.
Inside Designer create a new XPage, now inside your controls palette you should see new category 'JMC Layout Controls'.

The category is based on what was set in the xsp-config file:
15
16
17
18
   <designer-extension>
          <in-palette>true</in-palette>
          <category>JMC Layout Controls</category> 
... 

Just drag the control on to your XPage as you would any other control and hey presto:

BxSlider