本文整理汇总了Java中org.openide.awt.UndoRedo.NONE属性的典型用法代码示例。如果您正苦于以下问题:Java UndoRedo.NONE属性的具体用法?Java UndoRedo.NONE怎么用?Java UndoRedo.NONE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.openide.awt.UndoRedo
的用法示例。
在下文中一共展示了UndoRedo.NONE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
if (formDesigner != null) {
FormModel formModel = formDesigner.getFormModel();
if (formModel != null) {
UndoRedo ur = formModel.getUndoRedoManager();
if (ur != null) {
return ur;
}
}
}
return UndoRedo.NONE;
}
示例2: setDiffView
public void setDiffView(JComponent componentDelegate) {
if (componentDelegate == null) {
setDelegate(UndoRedo.NONE);
} else {
if (comp != null) {
comp.removePropertyChangeListener(this);
}
comp = componentDelegate;
comp.addPropertyChangeListener(this);
UndoRedo delegate = (UndoRedo) componentDelegate.getClientProperty(UndoRedo.class);
if (delegate == null) delegate = UndoRedo.NONE;
setDelegate(delegate);
}
}
示例3: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
if (selectedPanel == null || !(selectedPanel instanceof NavigatorPanelWithUndo)) {
return UndoRedo.NONE;
}
return ((NavigatorPanelWithUndo)selectedPanel).getUndoRedo();
}
示例4: ProductSceneViewTopComponent
public ProductSceneViewTopComponent(ProductSceneView view, UndoRedo undoRedo) {
super(view.getRaster());
this.view = view;
this.undoRedo = undoRedo != null ? undoRedo : UndoRedo.NONE;
this.nodeRenameHandler = new NodeRenameHandler();
this.selection = Selection.EMPTY;
setToolTipText(view.getRaster().getDescription());
setIcon(ImageUtilities.loadImage("org/esa/snap/rcp/icons/RsBandAsSwath.gif"));
updateDisplayName();
setName(getDisplayName());
/*
// checkme - this is ugly and not wanted (nf), the node will either passed in or we'll have
// a central node factory, e.g. via an ExtensionObject
Node node = null;
try {
if (raster instanceof Mask) {
node = new MNode((Mask) raster, undoRedo);
} else if (raster instanceof Band) {
node = new BNode((Band) raster, undoRedo);
} else if (raster instanceof TiePointGrid) {
node = new TPGNode((TiePointGrid) raster, undoRedo);
}
} catch (IntrospectionException e) {
Exceptions.printStackTrace(e);
}
if (node != null) {
setActivatedNodes(new Node[]{node});
}
*/
setLayout(new BorderLayout());
add(new JLayer<>(this.view, new ProductSceneViewLayerUI()), BorderLayout.CENTER);
}
示例5: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
if (product != null) {
return snapApp.getUndoManager(getProduct());
}
return UndoRedo.NONE;
}
示例6: privateGetUndoRedo
private UndoRedo privateGetUndoRedo() {
return model.getActiveElement().getUndoRedo() != null ? model.getActiveElement().getUndoRedo() : UndoRedo.NONE;
}
示例7: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
return UndoRedo.NONE;
}
示例8: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
final UndoRedo undoRedo = Lookups.forPath("org/netbeans/modules/refactoring").lookup(UndoRedo.class);
return undoRedo==null?UndoRedo.NONE:undoRedo;
}
示例9: getUndoRedo
@Override public UndoRedo getUndoRedo() {
return UndoRedo.NONE;
}
示例10: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
UndoRedo undoredo = (UndoRedo) diffView.getClientProperty(UndoRedo.class);
return undoredo == null ? UndoRedo.NONE : undoredo;
}
示例11: getUndoRedo
@Override public UndoRedo getUndoRedo() {
NavigatorPanel p = initialize();
return p instanceof NavigatorPanelWithUndo ? ((NavigatorPanelWithUndo) p).getUndoRedo() : UndoRedo.NONE;
}
示例12: getUndoRedo
/** Finds current undo/redo.
*/
static UndoRedo getUndoRedo() {
TopComponent el = WindowManager.getDefault().getRegistry().getActivated();
return (el == null) ? UndoRedo.NONE : el.getUndoRedo();
}
示例13: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
UndoRedo.Provider provider = getLookup().lookup(UndoRedo.Provider.class);
return (provider == null) ? UndoRedo.NONE : provider.getUndoRedo();
}
示例14: getUndoRedo
/**
*
* @return
*/
@Override
public UndoRedo getUndoRedo() {
return UndoRedo.NONE;
}
示例15: getUndoRedo
@Override
public UndoRedo getUndoRedo() {
return UndoRedo.NONE;
}