本文整理汇总了Java中org.netbeans.spi.palette.PaletteFactory.createPalette方法的典型用法代码示例。如果您正苦于以下问题:Java PaletteFactory.createPalette方法的具体用法?Java PaletteFactory.createPalette怎么用?Java PaletteFactory.createPalette使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.spi.palette.PaletteFactory
的用法示例。
在下文中一共展示了PaletteFactory.createPalette方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getOrCreatePalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
private static PaletteController getOrCreatePalette(String paletteFolder) throws IOException {
PaletteController palette = PALETTES.get(paletteFolder);
if(palette == null) {
palette = PaletteFactory.createPalette(paletteFolder, new HtmlPaletteActions(), null, new HtmlDragAndDropHandler());
PALETTES.put(paletteFolder, palette);
}
return palette;
}
示例2: createPalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
public static PaletteController createPalette() {
try {
if (null == palette)
palette = PaletteFactory.createPalette(JAVA_PALETTE_FOLDER, new MyActions());
return palette;
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
return null;
}
示例3: createPalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
@MimeRegistration(mimeType = "text/x-niftygui+xml", service = PaletteController.class)
public static PaletteController createPalette() {
if (null == palette){
AbstractNode paletteRoot = new AbstractNode(Children.create(new CategoryChildFactory(), true));
paletteRoot.setName("Palette Root");
palette = PaletteFactory.createPalette( paletteRoot,new MyActions(),null,new MyHandler());
}
return palette;
}
示例4: createPalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
public static PaletteController createPalette(ModelerFile file) {
IPaletteConfig config = file.getModelerDiagramModel().getPaletteConfig();
if (paletteConfigs.get(config) == null) {
AbstractNode paletteRoot = new AbstractNode(new CategoryChildren(file));
paletteRoot.setName(file.getName());
PaletteController controller = PaletteFactory.createPalette(paletteRoot, new ModelerPaletteActions(), null, new ModelerPaletteItemDragAndDropHandler());
paletteConfigs.put(config, controller);
}
return paletteConfigs.get(config);
}
示例5: createPalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
public static PaletteController createPalette() {
try {
if (null == palette)
palette = PaletteFactory.createPalette(PALETTE_FOLDER, new MyActions());
return palette;
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}
return null;
}
示例6: createPalette
import org.netbeans.spi.palette.PaletteFactory; //导入方法依赖的package包/类
public static PaletteController createPalette() {
AbstractNode paletteRoot = new AbstractNode(new CategoryChildren());
paletteRoot.setName("Palette Root");
return PaletteFactory.createPalette( paletteRoot, new MyActions(), null, new MyDnDHandler() );
}