File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
43 |
de/mindcrimeilab/xsanalyzer/ui/renderer/ComplexTypeCellRenderer.java |
45 |
private final static Icon icon = ((IconSource) Application.services().getService(IconSource.class)).getIcon("complexType.icon");
private final TreeCellRenderer treeCellRendererDelegate = new DefaultTreeCellRenderer();
private final ListCellRenderer listCellRendererDelegate = new DefaultListCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) treeCellRendererDelegate.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/ElementRenderer.java |
40 |
de/mindcrimeilab/xsanalyzer/ui/renderer/GroupCellRenderer.java |
40 |
private final static Icon icon = ((IconSource) Application.services().getService(IconSource.class)).getIcon("modelGroup.icon");
private final TreeCellRenderer delegateTreeCellRenderer = new DefaultTreeCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) delegateTreeCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
if (value instanceof XSModelGroupDefinition) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
170 |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
178 |
annotationContent.append("<").append(qName);
for (int i = 0; i < atts.getLength(); ++i) {
annotationContent.append(" ").append(atts.getQName(i)).append("=\"").append(atts.getValue(i)).append("\"");
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypeFinderWorker.java |
96 |
de/mindcrimeilab/xsanalyzer/SimilarTypeFinderWorker.java |
117 |
xsoList = similarTypes.get(signatureDigest);
for (int i = 0; i < xsoList.getLength(); ++i) {
XSObject object = xsoList.item(i);
// check for duplicate types
if (XSModelHelper.isSameTypeDefinition(object, type)) { return; }
}
xsoList.add(type);
}
else {
xsoList = new XSObjectListImpl();
xsoList.add(type);
|
File |
Line |
de/mindcrimeilab/swing/util/AbstractTreeModel.java |
98 |
de/mindcrimeilab/swing/util/AbstractTreeModel.java |
115 |
protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) {
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
TreeModelEvent e = null;
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == TreeModelListener.class) {
// Lazily create the event:
if (e == null) {
e = new TreeModelEvent(source, path, childIndices, children);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/NamespaceItemRenderer.java |
35 |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSParticleRenderer.java |
35 |
public class XSParticleRenderer implements ListCellRenderer {
private final ListCellRenderer listCellRendererDelegate = new DefaultListCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing.JList, java.lang.Object, int, boolean,
* boolean)
*/
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel cell = (JLabel) listCellRendererDelegate.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value instanceof XSParticle) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SameNameDifferentTypeCommand.java |
58 |
de/mindcrimeilab/xsanalyzer/actions/SimilarTypeFinderCommand.java |
48 |
super(SimilarTypeFinderCommand.ID);
}
/*
* (non-Javadoc)
*
* @see org.springframework.richclient.command.ActionCommand#doExecuteCommand()
*/
@Override
protected void doExecuteCommand() {
final XsAnalyzerApplicationModel model = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
final JFrame parent = Application.instance().getActiveWindow().getControl();
final VisualProgressWorker<Map<String, ? extends XSObjectList>, Map.Entry<String, ? extends XSObjectList>> worker = new VisualProgressWorker<Map<String, ? extends XSObjectList>, Map.Entry<String, ? extends XSObjectList>>(parent) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/ElementRenderer.java |
42 |
de/mindcrimeilab/xsanalyzer/ui/renderer/SimpleTypeCellRenderer.java |
49 |
private final ListCellRenderer delegateListCellRenderer = new DefaultListCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) delegateTreeCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
157 |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
180 |
private class XSStringListRenderer extends DefaultTableCellRenderer {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
final JLabel cell = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (value instanceof StringList) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SimilarTypeFinderCommand.java |
48 |
de/mindcrimeilab/xsanalyzer/actions/TypeUsageCommand.java |
53 |
super(TypeUsageCommand.ID);
}
/*
* (non-Javadoc)
*
* @see org.springframework.richclient.command.ActionCommand#doExecuteCommand()
*/
@Override
protected void doExecuteCommand() {
final XsAnalyzerApplicationModel model = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
final JFrame parent = Application.instance().getActiveWindow().getControl();
final VisualProgressWorker worker = new VisualProgressWorker(parent) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SameNameDifferentTypeCommand.java |
73 |
de/mindcrimeilab/xsanalyzer/actions/SimilarTypeFinderCommand.java |
63 |
protected Map<String, ? extends XSObjectList> doInBackground() throws Exception {
final XSModel xsmodel = model.getSchemaModel();
final PropertyChangeListener changeListener = new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
setDetailMessage("Examining type:" + evt.getNewValue());
}
};
final SimilarTypeFinderWorker similarTypeFinder = new SimilarTypeFinderWorker();
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SameNameDifferentTypeCommand.java |
58 |
de/mindcrimeilab/xsanalyzer/actions/TypeUsageCommand.java |
53 |
super(TypeUsageCommand.ID);
}
/*
* (non-Javadoc)
*
* @see org.springframework.richclient.command.ActionCommand#doExecuteCommand()
*/
@Override
protected void doExecuteCommand() {
final XsAnalyzerApplicationModel model = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
final JFrame parent = Application.instance().getActiveWindow().getControl();
final VisualProgressWorker worker = new VisualProgressWorker(parent) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
91 |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
180 |
private class XSStringListRenderer extends DefaultTableCellRenderer {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
final JLabel cell = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
60 |
de/mindcrimeilab/xsanalyzer/ui/renderer/ComplexTypeCellRenderer.java |
62 |
ComplexTypeCellRenderer.renderComplexType(value, cell);
return cell; // TODO Auto-generated method stub
}
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel cell = (JLabel) listCellRendererDelegate.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
91 |
de/mindcrimeilab/xsanalyzer/ui/renderer/XSRenderFactory.java |
157 |
private class XSTypeDefinitionRenderer extends DefaultTableCellRenderer implements TableCellRenderer {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
// TODO Auto-generated method stub
final JLabel cell = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
120 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
134 |
masterDetailList.addPropertyChangeListener(MasterListDetailList.PC_DETAILLIST_LISTMODEL, new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
logger.debug("Adjusting commands to new model " + evt.getPropertyName());
final ListModel listModel = (ListModel) evt.getNewValue();
final ValueModel selectionModel = new ListSelectionValueModelAdapter(masterDetailList.getDetailList().getSelectionModel());
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
102 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
138 |
logger.debug("Adjusting commands to new model " + evt.getPropertyName());
final ListModel listModel = (ListModel) evt.getNewValue();
final ValueModel selectionModel = new ListSelectionValueModelAdapter(masterDetailList.getDetailList().getSelectionModel());
final ValueModel vModel = new JListSelectionValueModelAdapter(listModel, (ListSelectionValueModelAdapter) selectionModel);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/util/XSModelHelper.java |
81 |
de/mindcrimeilab/xsanalyzer/util/XSModelHelper.java |
109 |
XSNamedMap xsmap = model.getComponentsByNamespace(XSConstants.MODEL_GROUP_DEFINITION, ns.getSchemaNamespace());
if (xsmap != null) {
for (int i = 0; i < xsmap.getLength(); ++i) {
if (null != xsmap.item(i)) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
71 |
de/mindcrimeilab/xsanalyzer/ui/renderer/NamespaceItemRenderer.java |
45 |
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel cell = (JLabel) listCellRendererDelegate.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/OutlineToolWindow.java |
164 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
281 |
@Override
public void valueChanged(TreeSelectionEvent e) {
TreePath path = e.getPath();
if (null != path) {
Map<String, XSObject> parameters = new HashMap<String, XSObject>();
|
File |
Line |
de/mindcrimeilab/xsanalyzer/NamespaceToolWindow.java |
77 |
de/mindcrimeilab/xsanalyzer/OutlineToolWindow.java |
114 |
}
@Override
public void onApplicationEvent(ApplicationEvent event) {
logger.debug(event);
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case OPEN:
|
File |
Line |
de/mindcrimeilab/swing/util/VisualProgressWorker.java |
179 |
de/mindcrimeilab/swing/util/VisualProgressWorker.java |
221 |
gbc.gridheight = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.insets = new Insets(0, 0, 5, 10);
component.add(getJlDetailMessage(), gbc);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SameNameDifferentTypeCommand.java |
110 |
de/mindcrimeilab/xsanalyzer/actions/SimilarTypeFinderCommand.java |
98 |
e.printStackTrace();
}
finally {
// parent.showSimilarTypePanel();
super.done();
}
}
};
worker.setTitle("Operation in progress...");
worker.setActionText("Searching for similar type definitions");
worker.showProgressDialog();
worker.execute();
}
}
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
252 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
243 |
updateUsedTypesView(Collections.<XSObject, XSObjectList> emptyMap());
}
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case TYPE_USAGE:
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
217 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
173 |
}
/**
* @return the model
*/
public XsAnalyzerApplicationModel getModel() {
return model;
}
/**
* @param model
* the model to set
*/
public void setModel(XsAnalyzerApplicationModel model) {
this.model = model;
updateModel();
}
private void updateModel() {
if (null != model) {
|
File |
Line |
de/mindcrimeilab/swing/util/VisualProgressWorker.java |
164 |
de/mindcrimeilab/swing/util/VisualProgressWorker.java |
192 |
gbc.gridwidth = 1;
gbc.gridheight = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.insets = new Insets(0, 0, 5, 0);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
47 |
de/mindcrimeilab/xsanalyzer/ui/renderer/SimpleTypeCellRenderer.java |
49 |
private final ListCellRenderer delegateListCellRenderer = new DefaultListCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) delegateTreeCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/XsModelWalker.java |
316 |
de/mindcrimeilab/xsanalyzer/xsext/ComplexTypeDescription.java |
111 |
List<String> subSignatures = new ArrayList<String>();
for (int i = 0; i < list.getLength(); ++i) {
XSParticle part = (XSParticle) list.item(i);
XSTerm item = part.getTerm();
|
File |
Line |
de/mindcrimeilab/xsanalyzer/AnnotationToolWindow.java |
60 |
de/mindcrimeilab/xsanalyzer/OutlineToolWindow.java |
114 |
}
@Override
public void onApplicationEvent(ApplicationEvent event) {
logger.debug(event);
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case OPEN:
|
File |
Line |
de/mindcrimeilab/xsanalyzer/XsModelWalker.java |
122 |
de/mindcrimeilab/xsanalyzer/ui/MasterListDetailList.java |
87 |
changeSupport.addPropertyChangeListener(propertyName, listener);
}
/**
* @param listener
* @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.beans.PropertyChangeListener)
*/
public void removePropertyChangeListener(PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(listener);
}
/**
* @param propertyName
* @param listener
* @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.lang.String,
* java.beans.PropertyChangeListener)
*/
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(propertyName, listener);
}
public void setMasterListModel(ListModel model) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/XsModelWalker.java |
78 |
de/mindcrimeilab/xsanalyzer/ui/MasterListDetailList.java |
70 |
}
/**
* @param listener
* @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.beans.PropertyChangeListener)
*/
public void addPropertyChangeListener(PropertyChangeListener listener) {
changeSupport.addPropertyChangeListener(listener);
}
/**
* @param propertyName
* @param listener
* @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.lang.String,
* java.beans.PropertyChangeListener)
*/
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
changeSupport.addPropertyChangeListener(propertyName, listener);
}
/**
* @param listener
* @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.beans.PropertyChangeListener)
*/
public void removePropertyChangeListener(PropertyChangeListener listener) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/ComplexTypeCellRenderer.java |
62 |
de/mindcrimeilab/xsanalyzer/ui/renderer/SimpleTypeCellRenderer.java |
62 |
SimpleTypeCellRenderer.renderSimpleType(value, cell);
return cell;
}
/*
* (non-Javadoc)
*
* @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing .JList, java.lang.Object, int,
* boolean, boolean)
*/
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel cell = (JLabel) delegateListCellRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/ComplexTypeCellRenderer.java |
49 |
de/mindcrimeilab/xsanalyzer/ui/renderer/ElementRenderer.java |
42 |
private final TreeCellRenderer delegateTreeCellRenderer = new DefaultTreeCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) delegateTreeCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
60 |
de/mindcrimeilab/xsanalyzer/ui/renderer/SimpleTypeCellRenderer.java |
62 |
SimpleTypeCellRenderer.renderSimpleType(value, cell);
return cell;
}
/*
* (non-Javadoc)
*
* @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing .JList, java.lang.Object, int,
* boolean, boolean)
*/
@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
JLabel cell = (JLabel) delegateListCellRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
47 |
de/mindcrimeilab/xsanalyzer/ui/renderer/ElementRenderer.java |
42 |
private final TreeCellRenderer delegateTreeCellRenderer = new DefaultTreeCellRenderer();
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax. swing.JTree, java.lang.Object,
* boolean, boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = (JLabel) delegateTreeCellRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
172 |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
173 |
anContent.append(" ").append(atts.getQName(i)).append("=\"").append(atts.getValue(i)).append("\"");
|
File |
Line |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
108 |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
164 |
}
else if (StringUtils.equals(XSD_DOCUMENTATION_TAG.getNamespaceURI(), uri) && StringUtils.equals(XSD_DOCUMENTATION_TAG.getLocalPart(), localName)) {
logger.debug("found documentation tag");
|
File |
Line |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
31 |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
54 |
List<XSObject> result;
try {
result = collectionClazz.newInstance();
}
catch (InstantiationException e) {
XSListHelper.logger.warn("Could not create class " + collectionClazz, e);
result = new ArrayList<XSObject>(xsobjectList.getLength());
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
176 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
196 |
detailList.addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent evt) {
Map<String, XSObject> parameters = new HashMap<String, XSObject>();
|
File |
Line |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
104 |
de/mindcrimeilab/xsanalyzer/xml/AnnotationContentHandler.java |
161 |
else if (StringUtils.equals(XSD_APPINFO_TAG.getNamespaceURI(), uri) && StringUtils.equals(XSD_APPINFO_TAG.getLocalPart(), localName)) {
logger.debug("found appinfo tag");
|
File |
Line |
de/mindcrimeilab/xsanalyzer/model/TreeModelAdapter.java |
75 |
de/mindcrimeilab/xsanalyzer/model/UsedTypesTreeModelAdapter.java |
63 |
Collections.sort(types, new DefaultMutableTreeNodeComparator(new NameComparator()));
}
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeModel#addTreeModelListener(javax.swing.event.TreeModelListener)
*/
@Override
public void addTreeModelListener(TreeModelListener l) {
treeModelListeners.addElement(l);
}
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeModel#getChild(java.lang.Object, int)
*/
@Override
public Object getChild(Object parent, int index) {
Object child;
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
152 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
253 |
}
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case SIMILAR_TYPES:
|
File |
Line |
de/mindcrimeilab/xsanalyzer/OutlineToolWindow.java |
85 |
de/mindcrimeilab/xsanalyzer/SchemaInfoView.java |
70 |
public XsAnalyzerApplicationModel getModel() {
return model;
}
/**
* @param model
* the model to set
*/
public void setModel(XsAnalyzerApplicationModel model) {
this.model = model;
if (null != this.model.getSchemaModel()) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
47 |
de/mindcrimeilab/xsanalyzer/ui/renderer/SchemaElementsRenderer.java |
67 |
private static final MessageSource MESSAGE_SOURCE = (MessageSource) Application.services().getService(MessageSource.class);
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeCellRenderer#getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean,
* boolean, boolean, int, boolean)
*/
@Override
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
JLabel cell = null;
|
File |
Line |
de/mindcrimeilab/xsanalyzer/model/TreeModelAdapter.java |
199 |
de/mindcrimeilab/xsanalyzer/model/UsedTypesTreeModelAdapter.java |
164 |
return 0 == getChildCount(node);
}
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeModel#removeTreeModelListener(javax.swing.event.TreeModelListener)
*/
@Override
public void removeTreeModelListener(TreeModelListener l) {
treeModelListeners.removeElement(l);
}
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeModel#valueForPathChanged(javax.swing.tree.TreePath, java.lang.Object)
*/
@Override
public void valueForPathChanged(TreePath path, Object newValue) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/model/TreeModelAdapter.java |
48 |
de/mindcrimeilab/xsanalyzer/model/TypeHierarchyTreeModelAdapter.java |
28 |
public class TypeHierarchyTreeModelAdapter implements TreeModel {
private static final Log logger = LogFactory.getLog("xsAnalyzerApplicationLogger");
private final Vector<TreeModelListener> treeModelListeners = new Vector<TreeModelListener>();
private final List<XSObject> hierarchy;
|
File |
Line |
de/mindcrimeilab/xsanalyzer/actions/SameNameDifferentTypeCommand.java |
74 |
de/mindcrimeilab/xsanalyzer/actions/TypeUsageCommand.java |
83 |
UnusedTypeFinderWorker unusedTypeFinder = new UnusedTypeFinderWorker(definedTypes);
final PropertyChangeListener changeListener = new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
setDetailMessage("Examining type:" + evt.getNewValue());
}
};
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
126 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
163 |
final JList masterList = masterDetailList.getMasterList();
final JList detailList = masterDetailList.getDetailList();
detailList.setCellRenderer(new SchemaElementsRenderer());
masterList.setCellRenderer(new SimilarTypeRenderer());
|
File |
Line |
de/mindcrimeilab/xsanalyzer/ui/renderer/AttributeRenderer.java |
41 |
de/mindcrimeilab/xsanalyzer/ui/renderer/ComplexTypeCellRenderer.java |
43 |
public class SimpleTypeCellRenderer implements TreeCellRenderer, ListCellRenderer {
private final static Icon icon = ((IconSource) Application.services().getService(IconSource.class)).getIcon("simpleType.icon");
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
259 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
250 |
case TYPE_USAGE:
XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) getApplicationContext().getBean("applicationModel");
setModel(appmodel);
break;
case OPEN:
invalidate();
break;
}
}
}
private static class XsPropertiesSelectionListener implements ListSelectionListener, TreeSelectionListener {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
173 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
180 |
}
/**
* @param model
* the model to set
*/
public void setModel(XsAnalyzerApplicationModel model) {
this.model = model;
updateModel();
}
private void updateModel() {
if (null != model) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
110 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
112 |
xsPropertiesSelectionListener = new XsPropertiesSelectionListener(xsElementPropertiesExecutor);
}
@Override
protected void registerLocalCommandExecutors(PageComponentContext context) {
context.register(GlobalCommandIds.PROPERTIES, xsElementPropertiesExecutor);
}
/*
* (non-Javadoc)
*
* @see org.springframework.richclient.application.support.AbstractView#createControl ()
*/
@Override
protected JComponent createControl() {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
108 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
144 |
numSimilarTypes.setValue(listModel.getSize());
}
});
}
@Override
protected void registerLocalCommandExecutors(PageComponentContext context) {
context.register(GlobalCommandIds.PROPERTIES, propertiesExecutor);
|
File |
Line |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
58 |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
62 |
catch (IllegalAccessException e) {
XSListHelper.logger.warn("Could not create class " + collectionClazz, e);
result = new ArrayList<XSObject>(xsobjectList.getLength());
}
|
File |
Line |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
35 |
de/mindcrimeilab/xsanalyzer/util/XSListHelper.java |
39 |
catch (IllegalAccessException e) {
XSListHelper.logger.warn("Could not create class " + collectionClazz, e);
result = new ArrayList<String>(stringList.getLength());
}
|
File |
Line |
de/mindcrimeilab/xsanalyzer/model/UsedTypesTreeModelAdapter.java |
85 |
de/mindcrimeilab/xsanalyzer/model/UsedTypesTreeModelAdapter.java |
129 |
index = types.indexOf(child);
}
else if (parent instanceof DefaultMutableTreeNode) {
DefaultMutableTreeNode tn = (DefaultMutableTreeNode) parent;
XSObjectList list = usedBy.get(tn.getUserObject());
|
File |
Line |
de/mindcrimeilab/xsanalyzer/model/TreeModelAdapter.java |
139 |
de/mindcrimeilab/xsanalyzer/model/UsedTypesTreeModelAdapter.java |
112 |
count = list.getLength();
}
else {
count = 0;
}
return count;
}
/*
* (non-Javadoc)
*
* @see javax.swing.tree.TreeModel#getIndexOfChild(java.lang.Object, java.lang.Object)
*/
@Override
public int getIndexOfChild(Object parent, Object child) {
int index = 0;
if (parent == UsedTypesTreeModelAdapter.ROOT_NODE) {
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SchemaInfoView.java |
124 |
de/mindcrimeilab/xsanalyzer/TypeUsageView.java |
247 |
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case SIMILAR_TYPES:
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
164 |
de/mindcrimeilab/xsanalyzer/SimilarTypesView.java |
259 |
case SIMILAR_TYPES:
XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) getApplicationContext().getBean("applicationModel");
setModel(appmodel);
break;
case OPEN:
invalidate();
break;
}
}
}
|
File |
Line |
de/mindcrimeilab/xsanalyzer/SameNameDifferentTypesView.java |
161 |
de/mindcrimeilab/xsanalyzer/SchemaInfoView.java |
124 |
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case OPEN:
|
File |
Line |
de/mindcrimeilab/xsanalyzer/AnnotationToolWindow.java |
64 |
de/mindcrimeilab/xsanalyzer/XsPropertyToolWindow.java |
105 |
XsPropertyToolWindow.logger.debug(event);
if (event instanceof XsAnalyzerApplicationEvent) {
switch (((XsAnalyzerApplicationEvent) event).getEventType()) {
case SHOW_SCHEMA_ELEMENT_DETAIL:
|