96979899100101102103104105106107108
super.addToWindow(window); manualModeSwitch.setDbLocation(getSelectedLocation()); } public DatabaseLocation getSelectedLocation() { Source source = getSelectedEntity(); if (source != null) { DataLocation dataLocation = source.getLocation(); if (dataLocation instanceof DatabaseLocation) { return (DatabaseLocation) dataLocation; } } return null;
85868788899091929394
checkSource(tx, browser); checkTarget(tx, browser); } private static void checkSource(Transformation tx, TransformationPipelineBrowser browser) { Source source = browser.getSource(); if (isApplicable(source)) { tx.setSourceId(source.getID()); } }
4647484950515253
return getActivity().getContent(); } @Override protected String getContentString() { Source source = getSource(); return source != null ? source.getName() : getActivity().getRole(); }
5253545556575859
return source != null ? source.getName() : getActivity().getRole(); } @Override protected String getContentToolTip() { Source source = getSource(); return (source != null) ? ToolTipStringFactory.getToolTip(source) : TOOLTIP_WHEN_EMPTY; }
6970717273747576777879
return EntityIcons.forType(EntityType.Source).getDefaultIcon(Size.LARGE); } @Override protected TextStyle getLabelStyle() { Source s = getSource(); if (s instanceof SystemSource) { return SYSTEM_STYLE; } return super.getLabelStyle(); }
2122232425262728293031
*/ public final class SourceListDecoratorFactory extends ListDecoratorFactory { @Override protected ListDecorator createListDecorator(IntegrationEntity e) { final Source source = (Source) e; return new IntegrationEntityListDecorator(source) { @Override protected Icon getDefaultIcon(IntegrationEntity entity) { if (LocationDecoratePageIconsPreference.value()) {
141142143144145146147148
applySelectedSource(op); applySelectedTarget(op); } private void applySelectedSource(Operation op) { Source src = (Source) sourceSelector.getSelectedEntity(); op.setSource(src); }
206207208209210211212213214215
private void notifySourceListeners() { if (sourceListeners.isEmpty()) { return; } Source selected = (Source) sourceSelector.getSelectedEntity(); for (OperationSourceListener lst : sourceListeners) { lst.sourceSelectionChanged(selected); } }
7778798081828384858687
public void setSource(Source s) { if (s == source) { return; } Source old = source; source = s; transformationFilter = new TransformationFilter(source); changeSupport.firePropertyChange(SOURCE, old, s); changeSupport.firePropertyChange(TRANSFORMATION_FILTER, null, transformationFilter); }
132133134135136137138139140141142143144
setEnabled(getEnabledState()); } private boolean getEnabledState() { JmsMessage message = model.getSourceMessage(); Source source = model.getSource(); if ((message != null) && (source != null)) { DataLocation loc = source.getLocation(); if (loc != null) { return loc.getDataLocationType() == DataLocationType.JMS; } } return false;