|
|
@ -23,8 +23,8 @@ import org.openide.util.lookup.InstanceContent; |
|
|
|
import org.openide.util.lookup.ProxyLookup; |
|
|
|
import org.openide.util.lookup.ProxyLookup; |
|
|
|
|
|
|
|
|
|
|
|
public class NiftyGuiDataObject extends XmlMultiViewDataObject { |
|
|
|
public class NiftyGuiDataObject extends XmlMultiViewDataObject { |
|
|
|
private static final int TYPE_TOOLBAR = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final int TYPE_TOOLBAR = 0; |
|
|
|
protected final Lookup lookup; |
|
|
|
protected final Lookup lookup; |
|
|
|
protected final InstanceContent lookupContents = new InstanceContent(); |
|
|
|
protected final InstanceContent lookupContents = new InstanceContent(); |
|
|
|
|
|
|
|
|
|
|
@ -74,8 +74,13 @@ public class NiftyGuiDataObject extends XmlMultiViewDataObject { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected DesignMultiViewDesc[] getMultiViewDesc() { |
|
|
|
protected DesignMultiViewDesc[] getMultiViewDesc() { |
|
|
|
|
|
|
|
if (getLookup().lookup(ProjectAssetManager.class) == null) { |
|
|
|
|
|
|
|
return new DesignMultiViewDesc[]{}; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
return new DesignMultiViewDesc[]{new PreviewView(this, TYPE_TOOLBAR)}; |
|
|
|
return new DesignMultiViewDesc[]{new PreviewView(this, TYPE_TOOLBAR)}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected String getPrefixMark() { |
|
|
|
protected String getPrefixMark() { |
|
|
|