01: /*
02: * SnippetsPaletteSupport.java
03: *
04: * Created on August 22, 2006, 4:03 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.mobility.snippets;
11:
12: import java.io.IOException;
13: import org.netbeans.spi.palette.PaletteController;
14: import org.netbeans.spi.palette.PaletteFactory;
15:
16: /**
17: *
18: * @author bohemius
19: */
20: public class SnippetsPaletteSupport {
21:
22: private static PaletteController snippetPaletteController = null;
23:
24: /** Creates a new instance of SnippetsPaletteSupport */
25: public SnippetsPaletteSupport() {
26: }
27:
28: public static PaletteController getPaletteController()
29: throws IOException {
30: if (snippetPaletteController == null) {
31: snippetPaletteController = PaletteFactory.createPalette(
32: "MobilityPalette", new SnippetsPaletteActions());
33: }
34: return snippetPaletteController;
35: }
36:
37: }
|