public void switchTo() { // select the IO but don't front or activate anything. // IO.select() will also open the TC so is not the right thing! // Mainly used when we switch sessions. IOSelect.select(io, EnumSet.noneOf(IOSelect.AdditionalOperation.class)); }
/** * Checks whether this feature is supported for provided IO * @param io IO to check on * @return true if supported */ public static boolean isSupported(InputOutput io) { return find(io) != null; }
/** * With an empty 'extraOps' simply selects this io * without involving it's containing TopComponent. * <p> * For example: * <pre> * if (IOSelect.isSupported(io) { * IOSelect.select(io, EnumSet.noneOf(IOSelect.AdditionalOperation.class)); * } * </pre> * <p> * If this capability is not supported then regular InputOutput.select() * will be called. * @param io InputOutput to operate on. * @param extraOps Additional operations to apply to the containing * TopComponent. */ public static void select(InputOutput io, Set<AdditionalOperation> extraOps) { Parameters.notNull("extraOps", extraOps); // NOI18N IOSelect ios = find(io); if (ios != null) ios.select(extraOps); else io.select(); // fallback }
String aDescription = impl.description; List<Fix> fixes = new ArrayList<Fix>(); if (IOPosition.isSupported(registry.getIO()) && IOSelect.isSupported(registry.getIO())) { fixes.add(new ShowInOutputFix(impl.description, registry.getIO(), impl.ioPos));
@Override public ChangeInfo implement() throws Exception { IOSelect.select( io, EnumSet.of( IOSelect.AdditionalOperation.OPEN, IOSelect.AdditionalOperation.REQUEST_VISIBLE ) ); position.scrollTo(); return null; }
public void run() { if (io != null) { IOSelect.select(io, EnumSet.noneOf(IOSelect.AdditionalOperation.class)); } if (pae.getType() == ProjectActionEvent.PredefinedType.DEBUG || pae.getType() == ProjectActionEvent.PredefinedType.DEBUG_TEST) { dm.setAction(NativeDebuggerManager.RUN); dm.removeAction(NativeDebuggerManager.STEP); ndi = NativeDebuggerManager.get().debug(executable, configuration, CndRemote.userhostFromConfiguration(configuration), io, DbgActionHandler.this, profile); } else if (pae.getType() == ProjectActionEvent.PredefinedType.DEBUG_STEPINTO || pae.getType() == ProjectActionEvent.PredefinedType.DEBUG_STEPINTO_TEST) { dm.setAction(NativeDebuggerManager.STEP); dm.removeAction(NativeDebuggerManager.RUN); ndi = NativeDebuggerManager.get().debug(executable, configuration, CndRemote.userhostFromConfiguration(configuration), io, DbgActionHandler.this, profile); } else { assert false; } } };