CPD Results

The following document contains the results of PMD's CPD 4.1.

Duplications

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 43
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 43
public class EditorSaverSupportDialog extends org.eclipse.swt.widgets.Dialog {

	private String diagName;

	private Shell dialogShell;

	private Label promptLabel;

	private Button yesBtn;

	private Button rememberButton;

	private Button cancelBtn;

	private Button noBtn;

	private int dialogResult;

	private boolean rememberResult;

	private boolean showRememberMe;

	/**
	 * Creates new save dialog.
	 *
	 * @param parent
	 *            parent {@link Shell}
	 * @param style
	 *            SWT style
	 * @param diagName
	 *            name of the diagram
	 * @param showRememberMe
	 *            whether <em>remember me</em> button should be displayed
	 */
	public EditorSaverSupportDialog(Shell parent, int style, String diagName, boolean showRememberMe) {
		super(parent, style);
		this.diagName = diagName;
		this.showRememberMe = showRememberMe;
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.layout();
			dialogShell.pack();
			if (showRememberMe) {
				dialogShell.setSize(315, 163);
			} else {
				dialogShell.setSize(315, 133);
			}
			dialogShell.setText(Messages.EditorSaverSupportDialog_0);

			rememberButton = new Button(dialogShell, SWT.CHECK | SWT.LEFT);
			FormData rememberLData = new FormData();
			rememberLData.width = 283;
			rememberLData.height = 16;
			rememberLData.left = new FormAttachment(0, 1000, 12);
			rememberLData.top = new FormAttachment(0, 1000, 101);
			rememberLData.right = new FormAttachment(1000, 1000, -12);
			rememberButton.setLayoutData(rememberLData);
			rememberButton.setVisible(showRememberMe);
			rememberButton.setText(Messages.EditorSaverSupportDialog_1);

			yesBtn = new Button(dialogShell, SWT.PUSH | SWT.CENTER);
			dialogShell.setDefaultButton(yesBtn);
			FormData yesBtnLData = new FormData();
			yesBtnLData.width = 48;
			yesBtnLData.height = 23;
			yesBtnLData.top = new FormAttachment(0, 1000, 66);
			yesBtnLData.right = new FormAttachment(1000, 1000, -120);
			yesBtn.setLayoutData(yesBtnLData);
			yesBtn.setText(Messages.EditorSaverSupportDialog_4);
			yesBtn.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent evt) {
					endDialog(SWT.YES);
				}
			});

			noBtn = new Button(dialogShell, SWT.PUSH | SWT.CENTER);
			FormData noBtnLData = new FormData();
			noBtnLData.width = 48;
			noBtnLData.height = 23;
			noBtnLData.top = new FormAttachment(0, 1000, 66);
			noBtnLData.right = new FormAttachment(1000, 1000, -66);
			noBtn.setLayoutData(noBtnLData);
			noBtn.setText(Messages.EditorSaverSupportDialog_3);
			noBtn.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent e) {
					endDialog(SWT.NO);
				}
			});

			cancelBtn = new Button(dialogShell, SWT.PUSH | SWT.CENTER);
			FormData cancelBtnLData = new FormData();
			cancelBtnLData.width = 48;
			cancelBtnLData.height = 23;
			cancelBtnLData.top = new FormAttachment(0, 1000, 66);
			cancelBtnLData.right = new FormAttachment(1000, 1000, -12);
			cancelBtn.setLayoutData(cancelBtnLData);
			cancelBtn.setText(Messages.EditorSaverSupportDialog_2);
			cancelBtn.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent e) {
					endDialog(SWT.CANCEL);
				}
			});

			promptLabel = new Label(dialogShell, SWT.WRAP);
			FormData promptLabelLData = new FormData();
			promptLabelLData.width = 283;
			promptLabelLData.height = 48;
			promptLabelLData.left = new FormAttachment(0, 1000, 12);
			promptLabelLData.top = new FormAttachment(0, 1000, 12);
			promptLabelLData.right = new FormAttachment(1000, 1000, -12);
			promptLabel.setLayoutData(promptLabelLData);
			promptLabel.setText(NLS.bind(Messages.EditorSaverSupportDialog_5, diagName));

			yesBtn.setFocus();
			dialogShell.addTraverseListener(new TraverseListener() {
				public void keyTraversed(TraverseEvent evt) {
					if (evt.detail == SWT.TRAVERSE_ESCAPE) {
						endDialog(SWT.CANCEL);
						evt.doit = false;
					}
				}
			});
			SWTHelper.placeDialogInCenter(dialogShell, getParent());
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public int getResult() {
		return dialogResult;
	}

	public boolean isRememberResult() {
		return rememberResult;
	}

	private void endDialog(int result) {
		dialogResult = result;
		rememberResult = rememberButton.getSelection();
		dialogShell.close();
	}

}

File Line
pl/edu/agh/cast/editpart/LabelEditManager.java 44
pl/edu/agh/cast/tool/LabelEditManager.java 44
public class LabelEditManager extends DirectEditManager {

	private IActionBars actionBars;

	private CellEditorActionHandler actionHandler;

	private IAction copy;

	private IAction cut;

	private IAction paste;

	private IAction undo;

	private IAction redo;

	private IAction find;

	private IAction selectAll;

	private IAction delete;

	private double cachedZoom = -1.0;

	private Font scaledFont;

	/**
	 * NodeFigure to use as a host of the editing.
	 */
	private NodeFigure figure;

	private ZoomListener zoomListener = new ZoomListener() {
		public void zoomChanged(double newZoom) {
			updateScaledFont(newZoom);
		}
	};

	/**
	 * The default constructor.
	 *
	 * @param source
	 *            is the editpart which should be edited
	 * @param locator
	 *            is the cell editor locator
	 */
	public LabelEditManager(GraphicalEditPart source, LabelCellEditorLocator locator) {
		super(source, null, locator);
		figure = locator.getNodeFigure();
	}

	/**
	 * @see org.eclipse.gef.tools.DirectEditManager#bringDown()
	 */
	@Override
	protected void bringDown() {
		ZoomManager zoomMgr = (ZoomManager)getEditPart().getViewer().getProperty(ZoomManager.class.toString());
		if (zoomMgr != null) {
			zoomMgr.removeZoomListener(zoomListener);
		}

		if (actionHandler != null) {
			actionHandler.dispose();
			actionHandler = null;
		}
		if (actionBars != null) {
			restoreSavedActions(actionBars);
			actionBars.updateActionBars();
			actionBars = null;
		}

		super.bringDown();
		// dispose any scaled fonts that might have been created
		disposeScaledFont();
	}

	@Override
	protected CellEditor createCellEditorOn(Composite composite) {
		return new TextCellEditor(composite, SWT.SINGLE /* | SWT.MULTI | SWT.WRAP */);
	}

	private void disposeScaledFont() {
		if (scaledFont != null) {
			scaledFont.dispose();
			scaledFont = null;
		}
	}

	@Override
	protected void initCellEditor() {
		// update text
		NodeFigure stickyNote = figure;
		getCellEditor().setValue(stickyNote.getLabel());
		// update font
		ZoomManager zoomMgr = (ZoomManager)getEditPart().getViewer().getProperty(ZoomManager.class.toString());
		if (zoomMgr != null) {
			// this will force the font to be set
			cachedZoom = -1.0;
			updateScaledFont(zoomMgr.getZoom());
			zoomMgr.addZoomListener(zoomListener);
		} else {
			getCellEditor().getControl().setFont(stickyNote.getFont());
		}

		// Hook the cell editor's copy/paste actions to the actionBars so that
		// they can
		// be invoked via keyboard shortcuts.
		actionBars = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()
		        .getEditorSite().getActionBars();
		saveCurrentActions(actionBars);
		actionHandler = new CellEditorActionHandler(actionBars);
		actionHandler.addCellEditor(getCellEditor());
		actionBars.updateActionBars();
	}

	private void restoreSavedActions(IActionBars actionBar) {
		actionBar.setGlobalActionHandler(ActionFactory.COPY.getId(), copy);
		actionBar.setGlobalActionHandler(ActionFactory.PASTE.getId(), paste);
		actionBar.setGlobalActionHandler(ActionFactory.DELETE.getId(), delete);
		actionBar.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), selectAll);
		actionBar.setGlobalActionHandler(ActionFactory.CUT.getId(), cut);
		actionBar.setGlobalActionHandler(ActionFactory.FIND.getId(), find);
		actionBar.setGlobalActionHandler(ActionFactory.UNDO.getId(), undo);
		actionBar.setGlobalActionHandler(ActionFactory.REDO.getId(), redo);
	}

	private void saveCurrentActions(IActionBars actionBar) {
		copy = actionBar.getGlobalActionHandler(ActionFactory.COPY.getId());
		paste = actionBar.getGlobalActionHandler(ActionFactory.PASTE.getId());
		delete = actionBar.getGlobalActionHandler(ActionFactory.DELETE.getId());
		selectAll = actionBar.getGlobalActionHandler(ActionFactory.SELECT_ALL.getId());
		cut = actionBar.getGlobalActionHandler(ActionFactory.CUT.getId());
		find = actionBar.getGlobalActionHandler(ActionFactory.FIND.getId());
		undo = actionBar.getGlobalActionHandler(ActionFactory.UNDO.getId());
		redo = actionBar.getGlobalActionHandler(ActionFactory.REDO.getId());
	}

	private void updateScaledFont(double zoom) {
		if (cachedZoom == zoom) {
			return;
		}

		Text text = (Text)getCellEditor().getControl();
		Font font = figure.getFont();

		disposeScaledFont();
		cachedZoom = zoom;
		if (zoom == 1.0) {
			text.setFont(font);
		} else {
			FontData fd = font.getFontData()[0];
			fd.setHeight((int)(fd.getHeight() * zoom));
			scaledFont = new Font(null, fd);
			text.setFont(scaledFont);
		}
	}
}

File Line
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 101
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 96
	public NumericFilterPanel(org.eclipse.swt.widgets.Composite parent, int style, String paramName) {
		super(parent, style);
		this.paramName = paramName;
		initGUI();
	}

	private void initGUI() {
		try {
			this.setLayout(new FormLayout());
			this.setSize(461, 100);

			// end range input control
			FormData filterToLData = new FormData();
			filterToLData.width = 110;
			filterToLData.height = 13;
			filterToLData.left = new FormAttachment(0, 1000, 300);
			filterToLData.top = new FormAttachment(0, 1000, 1);
			filterTo = new Text(this, SWT.BORDER);
			filterTo.setEnabled(false);
			filterTo.setLayoutData(filterToLData);

			// hyphen
			FormData hyphenLData = new FormData();
			hyphenLData.width = 15;
			hyphenLData.height = 13;
			hyphenLData.left = new FormAttachment(0, 1000, 290);
			hyphenLData.top = new FormAttachment(0, 1000, 2);
			hyphen = new Label(this, SWT.NONE);
			hyphen.setLayoutData(hyphenLData);
			hyphen.setText("-"); //$NON-NLS-1$

			// start range input control
			FormData filterFromLData = new FormData();
			filterFromLData.width = 110;
			filterFromLData.height = 13;
			filterFromLData.left = new FormAttachment(0, 1000, 160);
			filterFromLData.top = new FormAttachment(0, 1000, 1);
			filterFrom = new Text(this, SWT.BORDER);
			filterFrom.setEnabled(false);
			filterFrom.setLayoutData(filterFromLData);

			// parameter filter selection checkbox
			FormData selectParameterCheckBoxLData = new FormData();
			selectParameterCheckBoxLData.width = 143;
			selectParameterCheckBoxLData.height = 16;
			selectParameterCheckBoxLData.left = new FormAttachment(0, 1000, 12);
			selectParameterCheckBoxLData.top = new FormAttachment(0, 1000, 0);
			selectParameterCheckBox = new Button(this, SWT.CHECK | SWT.LEFT);
			selectParameterCheckBox.setLayoutData(selectParameterCheckBoxLData);
			selectParameterCheckBox.setText(paramName);
			selectParameterCheckBox.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseUp(MouseEvent evt) {
					selectParameterCheckBoxMouseUp(evt);
				}
			});
			this.layout();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void selectParameterCheckBoxMouseUp(MouseEvent evt) {
		filterFrom.setEnabled(selectParameterCheckBox.getSelection());
		if (!selectParameterCheckBox.getSelection()) {
			filterFrom.setText(""); //$NON-NLS-1$
		}
		filterTo.setEnabled(selectParameterCheckBox.getSelection());
		if (!selectParameterCheckBox.getSelection()) {
			filterTo.setText(""); //$NON-NLS-1$
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#getFilter()
	 */
	@Override
	public IParameterFilter getFilter() {

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 267
pl/edu/agh/cast/editor/AbstractEditor.java 298
		registerContextMenu();
		// XXX to investigate/reimplement later
		// viewer.addDropTargetListener(new EntityDropTargetListener(viewer));
	}

	protected KeyHandler getCommonKeyHandler() {
		KeyHandler sharedKeyHandler = new KeyHandler();

		sharedKeyHandler.put(KeyStroke.getPressed((char)26, 'z', SWT.CTRL), getActionRegistry().getAction(
		        ActionFactory.UNDO.getId()));
		sharedKeyHandler.put(KeyStroke.getPressed((char)25, 'y', SWT.CTRL), getActionRegistry().getAction(
		        ActionFactory.REDO.getId()));
		sharedKeyHandler.put(KeyStroke.getPressed(SWT.DEL, 127, 0), getActionRegistry().getAction(
		        ActionFactory.DELETE.getId()));

		return sharedKeyHandler;
	}

	/**
	 * Sets up various actions and handlers needed for zoom support.
	 */
	private void setupZoom() {
		GraphicalViewer viewer = getGraphicalViewer();
		ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart)viewer.getRootEditPart();
		// TODO: ZOOM
		// rectangleZoomToolEntry.setZoomManager(rootEditPart.getZoomManager());
		List<String> zoomLevels = new ArrayList<String>(3);
		zoomLevels.add(ZoomManager.FIT_ALL);
		zoomLevels.add(ZoomManager.FIT_WIDTH);
		zoomLevels.add(ZoomManager.FIT_HEIGHT);
		rootEditPart.getZoomManager().setZoomLevelContributions(zoomLevels);

		// create actions for zooming in, out and fit
		IAction zoomIn = new ZoomInAction(rootEditPart.getZoomManager());
		IAction zoomOut = new ZoomOutAction(rootEditPart.getZoomManager());
		IAction fitZoom = new FitZoomAction(Messages.FitZoomAction_0, null, rootEditPart.getZoomManager());
		getActionRegistry().registerAction(zoomIn);
		getActionRegistry().registerAction(zoomOut);
		getActionRegistry().registerAction(fitZoom);

		// register the key shortcuts for zooming in/out (Ctrl -, Ctrl =)
		IHandlerService service = (IHandlerService)getEditorSite().getService(IHandlerService.class);
		service.activateHandler(zoomIn.getActionDefinitionId(), new ActionHandler(zoomIn));
		service.activateHandler(zoomOut.getActionDefinitionId(), new ActionHandler(zoomOut));
		// register the mouse wheel zoom handler
		viewer
		        .setProperty(MouseWheelHandler.KeyGenerator.getKey(SWT.MOD1), ExtendedMouseWheelZoomHandler
		                .getInstance());
	}

	/**
	 * Returns editor's viewport.
	 * 
	 * @return editor's viewport
	 */
	public Viewport getEditorViewport() {
		return (Viewport)((ScalableFreeformRootEditPart)getGraphicalViewer().getRootEditPart()).getFigure();
	}

	/**
	 * Returns editor's printable layer.
	 * 
	 * @return editor's printable layer
	 */
	public IFigure getPrintableLayer() {
		return ((ScalableFreeformRootEditPart)getGraphicalViewer().getRootEditPart())
		        .getLayer(LayerConstants.PRINTABLE_LAYERS);
	}

	/**
	 * Registers context menu Can be called by subclasses to reregister the menu if the action registry is modified
	 */
	protected final void registerContextMenu() {
		GraphicalViewer viewer = getGraphicalViewer();
		ContextMenuProvider cmProvider = getContextMenuProvider();
		viewer.setContextMenu(cmProvider);
		getSite().registerContextMenu(cmProvider, viewer);
	}

	/**
	 * Return the context menu provider. See {@link ContextMenuProvider}.
	 * 
	 * @return The context menu provider.
	 */
	protected abstract ContextMenuProvider getContextMenuProvider();

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 91
pl/edu/agh/cast/ui/dialogs/search/StringFilterPanel.java 91
	public StringFilterPanel(org.eclipse.swt.widgets.Composite parent, int style, String paramName) {
		super(parent, style);
		this.paramName = paramName;
		initGUI();
	}

	private void initGUI() {
		try {
			this.setLayout(new FormLayout());
			this.setSize(461, 22);

			// string input control
			FormData parameterFilterLData = new FormData();
			parameterFilterLData.width = 250;
			parameterFilterLData.height = 13;
			parameterFilterLData.left = new FormAttachment(0, 1000, 160);
			parameterFilterLData.top = new FormAttachment(0, 1000, 1);
			parameterFilter = new Text(this, SWT.BORDER);
			parameterFilter.setEnabled(false);
			parameterFilter.setLayoutData(parameterFilterLData);

			// parameter filter selection checkbox
			FormData selectParameterCheckBoxLData = new FormData();
			selectParameterCheckBoxLData.width = 143;
			selectParameterCheckBoxLData.height = 16;
			selectParameterCheckBoxLData.left = new FormAttachment(0, 1000, 12);
			selectParameterCheckBoxLData.top = new FormAttachment(0, 1000, 2);
			selectParameterCheckBox = new Button(this, SWT.CHECK | SWT.LEFT);
			selectParameterCheckBox.setLayoutData(selectParameterCheckBoxLData);
			selectParameterCheckBox.setText(paramName);
			selectParameterCheckBox.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseUp(MouseEvent evt) {
					selectParameterCheckBoxMouseUp(evt);
				}
			});
			this.layout();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void selectParameterCheckBoxMouseUp(MouseEvent evt) {
		parameterFilter.setEnabled(selectParameterCheckBox.getSelection());
		if (!selectParameterCheckBox.getSelection()) {
			parameterFilter.setText(""); //$NON-NLS-1$
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#getFilter()
	 */
	@Override
	public IParameterFilter getFilter() {

File Line
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 86
pl/edu/agh/cast/editor/action/delegate/SaveAllActionDelegate.java 77
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged(IAction action, ISelection selection) {
		theAction = action;
		setEnablement();
	}

	private void setEnablement() {
		// could be more effective, but it is not very important
		for (IEditorPart part : parts) {
			if (part.isDirty()) {
				if (theAction != null) {
					theAction.setEnabled(true);
				}
				return;
			}
		}
		if (theAction != null) {
			theAction.setEnabled(false);
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partActivated(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partActivated(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partBroughtToTop(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partBroughtToTop(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partClosed(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partClosed(IWorkbenchPart part) {
		if (part instanceof IEditorPart) {
			parts.remove(part);
			// ((IEditorPart)part).removePropertyListener(this);
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partDeactivated(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partDeactivated(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partOpened(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partOpened(IWorkbenchPart part) {
		if (part instanceof IEditorPart) {
			((IEditorPart)part).addPropertyListener(this);
			parts.add((IEditorPart)part);
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPropertyListener#propertyChanged(java.lang.Object, int)
	 */
	public void propertyChanged(Object source, int propId) {
		if (propId == IEditorPart.PROP_DIRTY) {
			setEnablement();
		}
	}

}

File Line
pl/edu/agh/cast/backward/editor/action/SaveAction.java 42
pl/edu/agh/cast/editor/action/delegate/SaveActionDelegate.java 42
	public SaveActionDelegate() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {
		// invoke doSave method if necessary
		if (editor != null && editor.isDirty()) {
			editor.doSave(null);
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged(IAction action, ISelection selection) {
		editor = null;
		try {
			editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
		} catch (NullPointerException e) {
			// ignore NPEs when closing or no active page/editor
		}

		theAction = action;
		if (editor != null) {
			theAction.setEnabled(editor.isDirty());
			editor.addPropertyListener(this);
		} else {
			theAction.setEnabled(false);
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPropertyListener#propertyChanged(java.lang.Object, int)
	 */
	public void propertyChanged(Object source, int propId) {
		if (propId == IEditorPart.PROP_DIRTY) {
			theAction.setEnabled(editor.isDirty());
		}
	}

}

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 129
pl/edu/agh/cast/editor/AbstractEditor.java 135
		public void partOpened(IWorkbenchPart part) {
			if (part instanceof AbstractEditor) {
				AbstractEditor editor = (AbstractEditor)part;
				// set default zoom as 'fit to page'
				ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart)editor.getGraphicalViewer()
				        .getRootEditPart();
				// activate part so that zoom can get proper dimensions
				PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().activate(part);
				// and calculate zoom
				rootEditPart.getZoomManager().setZoomAsText(ZoomManager.FIT_ALL);
				double zoom = rootEditPart.getZoomManager().getZoom();
				/*
				 * Warning. Do not optimize this code. rootEditPart.getZoomManager().setZoom() does not work for any
				 * zoom - it can only set zoom to one of the registered levels (50/100/150/200 etc). Therefore, zoom has
				 * to be changed only if it's not within the constraints of a specific editor.
				 */
				if (zoom > editor.getMaximumAllowedInitialZoom()) {
					rootEditPart.getZoomManager().setZoom(editor.getMaximumAllowedInitialZoom());
				}
				if (zoom < editor.getMinimumAllowedInitialZoom()) {
					rootEditPart.getZoomManager().setZoom(editor.getMinimumAllowedInitialZoom());
				}
				((ExtendedZoomManager)rootEditPart.getZoomManager()).scaleZoomLevels(zoom);
			}
		}

	};

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 425
pl/edu/agh/cast/editor/AbstractEditor.java 488
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#getAdapter(java.lang.Class)
	 */
	@SuppressWarnings("unchecked")
	@Override
	public Object getAdapter(Class type) {
		if (type == ZoomManager.class) {
			return getGraphicalViewer().getProperty(ZoomManager.class.toString());
		}

		return super.getAdapter(type);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#createPaletteViewerProvider()
	 */
	@Override
	protected PaletteViewerProvider createPaletteViewerProvider() {
		return new PaletteViewerProvider(getEditDomain()) {
			@Override
			protected void configurePaletteViewer(PaletteViewer viewer) {
				super.configurePaletteViewer(viewer);
				viewer.addDragSourceListener(new TemplateTransferDragSourceListener(viewer));
			}
		};
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.ui.parts.GraphicalEditor#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
	 */
	@Override
	public void init(IEditorSite site, IEditorInput input) throws PartInitException {
		super.init(site, input);
		site.getPage().addPartListener(partActivationListener);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.part.WorkbenchPart#getPartName()
	 */
	@Override
	public String getPartName() {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 258
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 208
				}
			});
			dialogShell.addKeyListener(new KeyAdapter() {
				@Override
				public void keyPressed(KeyEvent e) {
					if (e.keyCode == SWT.ESC) {
						cancelButtonWidgetSelected(null);
					}
				}
			});
			SWTHelper.placeDialogInCenter(dialogShell, getParent());
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void okButtonWidgetSelected(SelectionEvent evt) {
		submitChange();
	}

	private void cancelButtonWidgetSelected(SelectionEvent evt) {
		cancelled = true;
		dialogShell.dispose();
	}

	private void newNameTextFieldModifyText(ModifyEvent evt) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupport.java 75
pl/edu/agh/cast/editor/EditorSaverSupport.java 82
	        AbstractEditor<M, V, T> editor) {
		if (new Date().getTime() - answerCacheAge.getTime() < MAXIMUM_ANSWER_CACHE_AGE) {
			return cachedAnswer;
		}

		int dirtyCount = 0;
		/* determine the number of unsaved diagrams */
		IEditorReference[] editors = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
		        .getEditorReferences();
		for (IEditorReference editorRef : editors) {
			IEditorPart editorPart = editorRef.getEditor(false);
			if (editorPart != null && editorPart.getEditorInput() instanceof DiagramEditorInput) {
				if (editorPart.isDirty()) {
					dirtyCount++;
				}
			}
		}

		EditorSaverSupportDialog gui = new EditorSaverSupportDialog(PlatformUI.getWorkbench()
		        .getActiveWorkbenchWindow().getShell(), SWT.NONE,
		        ((DiagramEditorInput<M, V, T>)editor.getEditorInput()).getDiagram().getName(), dirtyCount > 1);

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 62
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 72
		StringFilterPanel inst = new StringFilterPanel(shell, SWT.NULL, "StringParam"); //$NON-NLS-1$
		Point size = inst.getSize();
		shell.setLayout(new FillLayout());
		shell.layout();
		if (size.x == 0 && size.y == 0) {
			inst.pack();
			shell.pack();
		} else {
			Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
			shell.setSize(shellBounds.width, shellBounds.height);
		}
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Creates new string filter panel.
	 *
	 * @param parent
	 *            parent of this control
	 * @param style
	 *            style of this control
	 * @param paramName
	 *            the name of the parameter to filter on
	 */
	public StringFilterPanel(org.eclipse.swt.widgets.Composite parent, int style, String paramName) {

File Line
pl/edu/agh/cast/editpart/LabelCellEditorLocator.java 56
pl/edu/agh/cast/tool/LabelCellEditorLocator.java 59
		Rectangle rect = new Rectangle(nodeFigure.getLabelFigure().getBounds());
		nodeFigure.translateToAbsolute(rect);
		org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
		rect.translate(trim.x, trim.y);
		rect.width += trim.width;
		rect.height += trim.height;
		// make the editor at least 100 pixels wide
		rect.width = Math.max(rect.width, 100);
		text.setBounds(rect.x, rect.y, rect.width, rect.height);
	}

	/**
	 * Returns the nodeFigure figure.
	 */
	protected NodeFigure getLabel() {
		return nodeFigure;
	}

	/**
	 * Sets the node figure.
	 *
	 * @param nodeFigure
	 *            The nodeFigure to set
	 */
	protected void setLabel(NodeFigure stickyNote) {
		this.nodeFigure = stickyNote;
	}

}

File Line
pl/edu/agh/cast/backward/figure/ImageFigure.java 56
pl/edu/agh/cast/figure/ImageFigure.java 97
			        resourceId, size.toString()));
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.draw2d.Figure#paintFigure(org.eclipse.draw2d.Graphics)
	 */
	@Override
	protected void paintFigure(Graphics gc) {
		gc.drawImage(image, getBounds().getTopLeft());
		// super.paintFigure(gc);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.draw2d.Figure#setBounds(org.eclipse.draw2d.geometry.Rectangle)
	 */
	@Override
	public void setBounds(org.eclipse.draw2d.geometry.Rectangle bounds) {
		super.setBounds(bounds);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.draw2d.Figure#getMinimumSize(int, int)
	 */
	@Override
	public Dimension getMinimumSize(int arg0, int arg1) {
		Rectangle bounds = image.getBounds();
		return new Dimension(bounds.width, bounds.height);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.draw2d.Figure#getPreferredSize(int, int)
	 */
	@Override
	public Dimension getPreferredSize(int x, int y) {
		return getMinimumSize(x, y);
	}

}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupport.java 95
pl/edu/agh/cast/editor/EditorSaverSupport.java 102
		        ((DiagramEditorInput<M, V, T>)editor.getEditorInput()).getDiagram().getName(), dirtyCount > 1);

		gui.open();

		// remember only yes/no results
		if (gui.isRememberResult() && SWT.CANCEL != gui.getResult()) {
			answerCacheAge = new Date();
			cachedAnswer = toSaveable(gui.getResult());
		}

		return toSaveable(gui.getResult());
	}

	/**
	 * Converts dialog result from SWT constants to {@link ISaveablePart2} constants.
	 */
	private int toSaveable(int result) {
		switch (result) {
			case SWT.YES:
				return ISaveablePart2.YES;
			case SWT.NO:
				return ISaveablePart2.NO;
			case SWT.CANCEL:
			default:
				return ISaveablePart2.CANCEL;
		}
	}

}

File Line
pl/edu/agh/cast/backward/editor/action/ShowLegendSettingChangedAction.java 55
pl/edu/agh/cast/backward/editor/action/ShowStatisticsAction.java 55
		super(part);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.jface.action.Action#getId()
	 */
	@Override
	public String getId() {
		return ID;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.jface.action.Action#getText()
	 */
	@Override
	public String getText() {
		return MENU_TEXT;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.ui.actions.WorkbenchPartAction#calculateEnabled()
	 */
	@Override
	protected boolean calculateEnabled() {
		return true;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event)
	 */
	@Override
	public void runWithEvent(Event event) {

		IWorkbenchPart part = getWorkbenchPart().getSite().getPart();
		if (null != getCommandStack() && part instanceof AbstractEditor) {
			AbstractEditor schemaEditor = (AbstractEditor)part;
			IDiagram model = ((DiagramEditorInput)schemaEditor.getEditorInput()).getDiagram();

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 85
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 116
			IProject project = CastApplication.getActiveProject();

			if (project == null) {
				MsgBoxHelper.showErrorBox(Display.getCurrent().getActiveShell(), Messages.AbstractOpenEditorAction_0,
				        Messages.AbstractOpenEditorAction_1);
				return;
			}

			ProjectStore modelStore = ProjectStore.getInstance();
			if (!modelStore.isInitialized(project)) {
				modelStore.init(project);
			}

			IEditorDescriptor editor = PlatformUI.getWorkbench().getEditorRegistry().findEditor(editorId);
			IEditorPart editorPart = openNewEditor(project, editor);

File Line
pl/edu/agh/cast/project/ProjectUtil.java 239
pl/edu/agh/cast/project/ProjectUtil.java 516
	public void removeProject(String projectName, IPath location) throws CoreException {
		IWorkspace workspace = ResourcesPlugin.getWorkspace();
		IProjectDescription pd = workspace.newProjectDescription(projectName);
		if (Platform.getLocation() != null && location != null && !Platform.getLocation().isPrefixOf(location)) {
			pd.setLocation(location);
		} else {
			pd.setLocation(null);
		}

		IProject project = workspace.getRoot().getProject(projectName);

File Line
pl/edu/agh/cast/navigator/provider/DomainDataSetNavigatorItemProvider.java 58
pl/edu/agh/cast/navigator/provider/PresentationDataSetNavigatorItemProvider.java 58
		for (PresentationDataSetDescriptor descriptor : persistenceProvider.getPresentationDataSetDescriptors()) {
			IVisualResource visualResource = resourceRegistry.getResource(descriptor.getType().toString());
			if (visualResource == null) {
				visualResource = resourceRegistry.getResource(DataModelVisualResourcesProvider.DEFAULT_RESOURCE_ID);
			}

			Image itemImage = null;
			if (visualResource != null) {
				itemImage = visualResource.getImage(ImageSize.X16X16);
			}

			children.add(new NavigatorTreeItem(descriptor, descriptor.getName(), itemImage));
		}
	}

}

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 117
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 142
			selectParameterCheckBoxLData.top = new FormAttachment(0, 1000, 0);
			selectParameterCheckBox = new Button(this, SWT.CHECK | SWT.LEFT);
			selectParameterCheckBox.setLayoutData(selectParameterCheckBoxLData);
			selectParameterCheckBox.setText(paramName);
			selectParameterCheckBox.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseUp(MouseEvent evt) {
					selectParameterCheckBoxMouseUp(evt);
				}
			});
			this.layout();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void selectParameterCheckBoxMouseUp(MouseEvent evt) {

File Line
pl/edu/agh/cast/editpart/AbstractLegendEditPart.java 89
pl/edu/agh/cast/editpart/LegendEditPart.java 162
		legendFigure.init();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.NodeEditPart#getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart)
	 */
	public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart arg0) {
		return getConnectionAnchor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.NodeEditPart#getSourceConnectionAnchor(org.eclipse.gef.Request)
	 */
	public ConnectionAnchor getSourceConnectionAnchor(Request arg0) {
		return getConnectionAnchor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.NodeEditPart#getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart)
	 */
	public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart arg0) {
		return getConnectionAnchor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.NodeEditPart#getTargetConnectionAnchor(org.eclipse.gef.Request)
	 */
	public ConnectionAnchor getTargetConnectionAnchor(Request arg0) {
		return getConnectionAnchor();
	}

	private ConnectionAnchor getConnectionAnchor() {
		if (connectionAnchor == null) {
			connectionAnchor = new ChopboxAnchor(legendFigure);
		}
		return connectionAnchor;

	}

}

File Line
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 121
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 142
		str.append(variant);
		if (!size.getNameExtension().isEmpty()) {
			str.append(IVisualResource.NAME_SEPARATOR);
			str.append(size.getNameExtension());
		}
		if (!extension.startsWith(EXTENSION_SEPARATOR)) {
			str.append(EXTENSION_SEPARATOR);
		}
		str.append(extension != null ? extension : VisualResourceEntry.RESOURCE_EXTENSION_PNG);

		return str.toString();
	}

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 282
pl/edu/agh/cast/model/visual/backward/ModelElement.java 110
	protected Object readResolve() {
		pcpHelper = new PropertyChangeProviderHelper(this);
		return this;
	}

	// BEGIN Property change support

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider#addPropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void addPropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

	/**
	 * Notifies about property change.
	 *
	 * @param property
	 *            name of the property
	 * @param oldValue
	 *            old value of the property
	 * @param newValue
	 *            new value of the property
	 */
	protected void firePropertyChange(String property, Object oldValue, Object newValue) {
		pcpHelper.firePropertyChange(property, oldValue, newValue);
	}

	// END Property change support

	// BEGIN Attribute handling

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.model.visual.backward.AttributeValueContainer#getAttributeValue(java.lang.String)
	 */
	public AttributeValue getAttributeValue(String name) {

File Line
pl/edu/agh/cast/backward/editor/operation/FindNodesOperation.java 67
pl/edu/agh/cast/backward/editor/operation/FindNodesOperation.java 94
	public Node findPrev(FindNodesParameters params, Collection<Node> nodesToSearch) {

		if (currentParams == null || !currentParams.equals(params)) {
			foundNodes = new LinkedList<Node>(findNodes(params, nodesToSearch));
			currentParams = params;
		}

		if (foundNodes == null) {
			foundNodes = new LinkedList<Node>(findNodes(params, nodesToSearch));
		}

		if (currentPosition > 0 && foundNodes.size() > 0) {

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 252
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 165
			dialogShell.setLocation(getParent().toDisplay(100, 100));
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void okButtonMouseUp(MouseEvent evt) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 174
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 215
					}
				}
			});
			SWTHelper.placeDialogInCenter(dialogShell, getParent());
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

File Line
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 87
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 101
						res.registerVariantImageDescriptor(variant, size, ImageDescriptor
						        .createFromFile(location, path));
						log.info(String.format(LOG_MESSAGE_0, entry.getImageName(), path, res.getLabel(), size
						        .toString()));
					} catch (ResourceException e) {
						log.debug(String.format(LOG_MESSAGE_1, path));
					}
				}

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 357
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 258
		okButton.setEnabled(valid);
	}

	private void newNameTextFieldKeyReleased(KeyEvent evt) {
		if (evt.keyCode == SWT.CR && okButton.isEnabled()) {
			submitChange();
		} else if (evt.keyCode == SWT.ESC) {
			cancelButtonWidgetSelected(null);
		}
	}

	private void submitChange() {
		result = newNameTextField.getText();

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupport.java 35
pl/edu/agh/cast/editor/EditorSaverSupport.java 41
public final class EditorSaverSupport {

	/**
	 * Maximum age of a cached answer; in milliseconds. Should be equal ca. a few seconds.
	 */
	private static final long MAXIMUM_ANSWER_CACHE_AGE = 3 * 1000;

	private static EditorSaverSupport instance;

	private Date answerCacheAge;

	private int cachedAnswer;

	private EditorSaverSupport() {
		answerCacheAge = new Date(0);
	}

	/**
	 * Returns single, shared instance of {@link EditorSaverSupport}.
	 * 
	 * @return single, shared instance of {@link EditorSaverSupport}
	 */
	public static EditorSaverSupport getInstance() {
		if (instance == null) {
			instance = new EditorSaverSupport();
		}
		return instance;
	}

	/**
	 * Prompts the user for action when editor is unsaved. Can return a cached response.
	 * 
	 * See {@link ISaveablePart2#promptToSaveOnClose()}
	 * 
	 * @param editor
	 *            editor to prompt for
	 * @return return code, as defined in {@link ISaveablePart2#promptToSaveOnClose()} - one of
	 *         {@link ISaveablePart2#YES}, {@link ISaveablePart2#NO} or {@link ISaveablePart2#CANCEL}.
	 * 
	 */
	public <M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>, V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>, M>, T extends IDiagram<M, V>> int promptToSaveOnClose(

File Line
pl/edu/agh/cast/navigator/provider/DomainDataSetNavigatorItemProvider.java 40
pl/edu/agh/cast/navigator/provider/PresentationDataSetNavigatorItemProvider.java 40
public class PresentationDataSetNavigatorItemProvider extends AbstractNavigatorItemProvider {

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.navigator.INavigatorItemProvider#loadItems()
	 */
	@Override
	public void loadItems() {
		IResourceRegistry resourceRegistry = CoreServiceLocator.getResourceRegistry();

		// initialize root node
		image = resourceRegistry.getResource(DataModelVisualResourcesProvider.RESOURCE_OPENED_FOLDER_ID).getImage(
		        ImageVariants.VARIANT_OPENED, ImageSize.X16X16);
		children = new LinkedList<INavigatorTreeItem>();

		// initialize children
		IPersistenceProvider persistenceProvider = CoreServiceLocator.getPersistenceProvider();
		for (PresentationDataSetDescriptor descriptor : persistenceProvider.getPresentationDataSetDescriptors()) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 269
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 165
			dialogShell.setLocation(getParent().toDisplay(100, 100));
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void okButtonMouseUp(MouseEvent evt) {

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 284
pl/edu/agh/cast/model/attributes/AttributeManager.java 266
		return this;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider#addPropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void addPropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

	protected void firePropertyChange(String property, Object oldValue, Object newValue) {
		pcpHelper.firePropertyChange(property, oldValue, newValue);
	}

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 91
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 101
	public DateFilterPanel(org.eclipse.swt.widgets.Composite parent, int style, String paramName) {
		super(parent, style);
		this.paramName = paramName;
		initGUI();
	}

	private void initGUI() {
		try {
			this.setLayout(new FormLayout());
			this.setSize(461, 100);

File Line
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 218
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 232
			fillStatistics();
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void fillStatistics() {

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 252
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 218
			SWTHelper.placeDialogInCenter(dialogShell, getParent());
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void okButtonWidgetSelected(SelectionEvent evt) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 269
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 232
			fillStatistics();
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void fillStatistics() {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 269
pl/edu/agh/cast/ui/dialogs/FindDialog.java 252
			dialogShell.setLocation(getParent().toDisplay(100, 100));
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private FindNodesParameters getParameters() {

File Line
pl/edu/agh/cast/backward/editor/action/EditorAction.java 33
pl/edu/agh/cast/editor/action/EditorAction.java 33
public abstract class EditorAction implements IEditorActionDelegate {

	/**
	 * Logger.
	 */
	protected static Logger log = Activator.getLogger();

	private IEditorPart editor;

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction,
	 *      org.eclipse.ui.IEditorPart)
	 */
	public void setActiveEditor(IAction action, IEditorPart targetEditor) {
		editor = targetEditor;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged(IAction action, ISelection selection) {
	}

	protected IEditorPart getEditor() {
		return editor;
	}

}

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 252
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 232
			fillStatistics();
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void fillStatistics() {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 177
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 165
			dialogShell.setLocation(getParent().toDisplay(100, 100));
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 177
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 232
			fillStatistics();
			dialogShell.open();
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 230
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 292
			if (editorReference.isDirty()) {
				IEditorPart editorPart = editorReference.getEditor(false);
				if (editorPart != null && editorPart.getEditorInput() instanceof DiagramEditorInput) {
					DiagramEditorInput diagramEditorInput = (DiagramEditorInput)editorPart.getEditorInput();
					if (resources.contains(diagramEditorInput.getFile())) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 270
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 324
			tableViewer1.getTable().select(0);

			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void link3WidgetSelected(SelectionEvent evt) {

File Line
pl/edu/agh/cast/ui/AbstractTableView.java 84
pl/edu/agh/cast/ui/AbstractTreeView.java 74
		viewer.setInput(object);
	}

	/**
	 * This method sets the focus on the tree viewer.
	 *
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
	 */
	@Override
	public void setFocus() {
		viewer.getControl().setFocus();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.part.WorkbenchPart#dispose()
	 */
	@Override
	public void dispose() {
		if (viewer != null) {
			viewer.getControl().dispose();
		}
		super.dispose();
	}

	protected TreeViewer getViewer() {

File Line
pl/edu/agh/cast/data/converter/ConverterReference.java 63
pl/edu/agh/cast/data/persistence/PersistenceProviderLocator.java 87
		}

		public final String getName() {
			return name;
		}

		public final void setName(String name) {
			this.name = name;
		}

		public final String getDescription() {
			return description;
		}

		public final void setDescription(String description) {
			this.description = description;
		}

	}

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 527
pl/edu/agh/cast/editor/AbstractEditor.java 588
	}

	/**
	 * Executes command.
	 * 
	 * @param command
	 *            command to execute
	 */
	public void executeCommand(Command command) {
		getCommandStack().execute(command);
	}

	/**
	 * Refresh the viewer.
	 */
	public void refresh() {
		getGraphicalViewer().setContents(getEditorInput());
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.commands.CommandStackEventListener#stackChanged(org.eclipse.gef.commands.CommandStackEvent)
	 */
	public void stackChanged(CommandStackEvent event) {
		firePropertyChange(IEditorPart.PROP_DIRTY);
	}

	/**
	 * Selects given visual elements.
	 * 
	 * @param elements
	 *            list of elements to select
	 */
	public void selectElements(Collection<? extends IPresentationElement<? extends IElement>> elements) {

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 253
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 324
			tableViewer1.getTable().select(0);

			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void link3WidgetSelected(SelectionEvent evt) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 111
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 98
	public String getResult() {
		return result;
	}

	/**
	 * Checks whether the dialog was canceled.
	 *
	 * @return <code>true</code> if the dialog was canceled
	 */
	public boolean wasCancelled() {
		return cancelled;
	}

	/**
	 * Opens dialog with current name specified for changes.
	 *
	 * @param name
	 *            current project name
	 */
	public void open(String name) {
		this.currentName = name;

		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 420
pl/edu/agh/cast/tool/OverviewRectangleTool.java 508
		if (this.currentManager != null) {
			this.currentManager.removeZoomListener(this);
			this.currentManager.getViewport().getHorizontalRangeModel().removePropertyChangeListener(this);
			this.currentManager.getViewport().getVerticalRangeModel().removePropertyChangeListener(this);
		}

File Line
pl/edu/agh/cast/editpart/AbstractLegendEditPart.java 65
pl/edu/agh/cast/editpart/LegendEditPart.java 138
	public Legend getModelCasted() {
		return legend;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.editparts.AbstractEditPart#refreshVisuals()
	 */
	@Override
	protected void refreshVisuals() {
		// update the location only if it is not (-1,-1) or when preferred
		// location is not set
		// (i.e. when opening a diagram with default locations)
		if (legend.getLocation().x > 0) {
			legendFigure.setLocation(legend.getLocation());
		}
		refreshItems();
	}

	/**
	 * Refreshes the legend.
	 */
	public void refreshItems() {
		legendFigure.init();

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 178
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 324
			tableViewer1.getTable().select(0);

			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 89
	}

	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.layout();
			dialogShell.pack();

File Line
pl/edu/agh/cast/model/attributes/AttributeManager.java 275
pl/edu/agh/cast/model/visual/backward/DiagramSettings.java 173
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

	/**
	 * Notifies about property change.
	 *
	 * @param property
	 *            name of the property
	 * @param oldValue
	 *            old value of the property
	 * @param newValue
	 *            new value of the property
	 */
	protected void firePropertyChange(String property, Object oldValue, Object newValue) {
		pcpHelper.firePropertyChange(property, oldValue, newValue);
	}

	// END Property change support

}

File Line
pl/edu/agh/cast/backward/figure/NodeFigure.java 93
pl/edu/agh/cast/figure/NodeFigure.java 115
	protected void init(String label, String resourceId, ImageSize size, String defaultResourceId) {

		flowPage = new FlowPage();
		textFlow = new TextFlow(label);
		flowPage.add(textFlow);
		flowPage.setHorizontalAligment(PositionConstants.CENTER);
		flowPage.setBackgroundColor(ColorConstants.listBackground);
		flowPage.setOpaque(true);

		icon = new ImageFigure(resourceId, size, defaultResourceId);

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 109
pl/edu/agh/cast/editor/AbstractEditor.java 110
	protected static Logger log = Activator.getLogger();

	// private RectangleZoomToolEntry rectangleZoomToolEntry;

	// private ArrayList<NodeFactory> nodeFactories = new ArrayList<NodeFactory>();

	private static IPartListener partActivationListener = new IPartListener() {

		public void partActivated(IWorkbenchPart part) {
			// do nothing
		}

		public void partBroughtToTop(IWorkbenchPart part) {
			// do nothing
		}

		public void partClosed(IWorkbenchPart part) {
			// do nothing
		}

		public void partDeactivated(IWorkbenchPart part) {
			// do nothing
		}

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 164
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 198
					newNameTextFieldModifyText(evt);
				}
			});

			dialogShell.addTraverseListener(new TraverseListener() {
				public void keyTraversed(TraverseEvent evt) {
					if (evt.detail == SWT.TRAVERSE_ESCAPE) {
						cancelButtonWidgetSelected(null);
						evt.doit = false;
					}
				}
			});
			dialogShell.addKeyListener(new KeyAdapter() {

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 293
pl/edu/agh/cast/model/visual/backward/DiagramSettings.java 173
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

	/**
	 * Notifies about property change.
	 *
	 * @param property
	 *            name of the property
	 * @param oldValue
	 *            old value of the property
	 * @param newValue
	 *            new value of the property
	 */
	protected void firePropertyChange(String property, Object oldValue, Object newValue) {
		pcpHelper.firePropertyChange(property, oldValue, newValue);
	}

File Line
pl/edu/agh/cast/backward/figure/NodeFigure.java 60
pl/edu/agh/cast/figure/NodeFigure.java 64
		init(label, resourceId, size);
	}

	public IFigure getIcon() {
		return icon;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.backward.figure.ILabeledFigure#getLabel()
	 */
	public String getLabel() {
		return textFlow.getText();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.backward.figure.ILabeledFigure#setLabel(java.lang.String)
	 */
	public void setLabel(String label) {
		textFlow.setText(label);
	}

	/**
	 * Initializes the node figure.
	 *
	 * @param label
	 *            node label
	 * @param resourceId
	 *            node resource id
	 * @param size
	 *            size of figure image
	 */
	protected void init(String label, String resourceId, ImageSize size) {

File Line
pl/edu/agh/cast/model/visual/backward/VisualModelCachingFactory.java 92
pl/edu/agh/cast/model/visual/backward/VisualModelCachingFactory.java 105
		entityToNode = new HashMap<String, Node>();
		relationToConnection = new HashMap<IRelation, Connection>();
		connectionToRelation = new HashMap<Connection, IRelation>();
		connectionToConnectionGroup = new HashMap<Connection, ConnectionGroup>();

	}

	/**
	 * Returns a node corresponding to the given entity, creating if it necessary.
	 *
	 * @param entity
	 *            {@link IEntity} to return node for
	 * @return {@link Node} that wraps given entity
	 */
	public Node createNode(IEntity entity) {

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 105
pl/edu/agh/cast/editor/EditorUtil.java 135
	}

	/**
	 * Method is switching to default workbench perspective.
	 */
	public static void switchToDiagramPerspective() {
		IPerspectiveDescriptor diagramPerspective = PlatformUI.getWorkbench().getPerspectiveRegistry()
		        .findPerspectiveWithId(DefaultPerspective.ID);

		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setPerspective(diagramPerspective);
	}

File Line
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 126
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 172
				doRestoreElements(monitor);
				monitor.subTask(Messages.DeleteModelElementsCommand_6);
				diagram.setSuppressEvents(false);
				monitor.done();
			}
		}, new IExceptionHandler() {
			public void handleException(Exception e) {
				Activator.getLogger().warn("Error undoing model element removal", e); //$NON-NLS-1$

File Line
pl/edu/agh/cast/ui/outline/OutlineMiniatureView.java 209
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 131
	private void updateActiveEditor() {
		IEditorPart activeEditor = getSite().getPage().getActiveEditor();
		if (activeEditor instanceof AbstractEditor) {
			AbstractEditor editor = (AbstractEditor)activeEditor;
			DiagramEditorInput input = (DiagramEditorInput)editor
					.getEditorInput();

File Line
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 115
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 134
	private String createIconPath(String path, String name, String variant, ImageSize size, String extension) {
		StringBuilder str = new StringBuilder();
		str.append(path);
		if (!path.endsWith(DIRECTORY_SEPARATOR)) {
			str.append(DIRECTORY_SEPARATOR);
		}
		str.append(name);

File Line
pl/edu/agh/cast/editor/AbstractEditor.java 103
pl/edu/agh/cast/editor/EditorSaverSupport.java 81
public abstract class AbstractOpenEditorActionDelegate<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>, V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>, M>, T extends IDiagram<M, V>>

File Line
pl/edu/agh/cast/backward/figure/NodeFigure.java 102
pl/edu/agh/cast/figure/NodeFigure.java 124
		icon = new ImageFigure(resourceId, size, defaultResourceId);

		add(icon);
		add(flowPage);

		ToolbarLayout layout = new ToolbarLayout();
		layout.setStretchMinorAxis(false);
		layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
		setLayoutManager(layout);

	}

	public Figure getLabelFigure() {
		return flowPage;
	}

}

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 71
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 148
	private IEditorPart openNewEditor(IProject project, IEditorDescriptor desc) throws PartInitException {

		if (desc == null) {
			// no editor defined
			MsgBoxHelper.showErrorBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
			        Messages.EditorUtil_0, Messages.EditorUtil_1);
			return null;
		}

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 165
pl/edu/agh/cast/editor/AbstractEditor.java 161
	};

	/**
	 * @return minimum allowed initial zoom for this editor, expressed as a double where 1.0 is 100% zoom
	 */
	protected abstract double getMinimumAllowedInitialZoom();

	/**
	 * @return maximum allowed initial zoom for this editor, expressed as a double where 1.0 is 100% zoom
	 */
	protected abstract double getMaximumAllowedInitialZoom();

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#initializeGraphicalViewer()
	 */
	@Override
	protected void initializeGraphicalViewer() {
		super.initializeGraphicalViewer();
		getGraphicalViewer().setContents(getEditorInput());
		getCommandStack().addCommandStackEventListener(this);

	}

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 110
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 135
			filterFrom.setLayoutData(filterFromLData);

			// parameter filter selection checkbox
			FormData selectParameterCheckBoxLData = new FormData();
			selectParameterCheckBoxLData.width = 143;
			selectParameterCheckBoxLData.height = 16;
			selectParameterCheckBoxLData.left = new FormAttachment(0, 1000, 12);
			selectParameterCheckBoxLData.top = new FormAttachment(0, 1000, 0);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 240
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 157
			okButton.setEnabled(false);
			okButton.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent evt) {
					okButtonWidgetSelected(evt);
				}
			});

			cancelButton = new Button(dialogShell, SWT.PUSH | SWT.CENTER);

File Line
pl/edu/agh/cast/ui/AbstractTableView.java 35
pl/edu/agh/cast/ui/AbstractTreeView.java 35
	private TreeViewer viewer;

	/**
	 * This method initializes the part control, i.e. the {@link TreeViewer}.
	 *
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
	@Override
	public void createPartControl(Composite parent) {
		createControl(parent);
		// actions and menus oriented methods
		makeActions();
		hookContextMenu();
		hookDoubleClickAction();
		contributeToActionBars();
		activate();
	}

	/**
	 * This method creats the tree control, it is intendet to be changed in subclasses which need some more
	 * sophisticated control.
	 *
	 * @param parent
	 *            parent control
	 */
	protected void createControl(Composite parent) {
		viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);

File Line
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 48
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 43
public class NumericFilterPanel extends FilterPanel {

	private Button selectParameterCheckBox;

	private Text filterFrom;

	private Label hyphen;

	private Text filterTo;

	private String paramName;

	/**
	 * Auto-generated main method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	// public static void main(String[] args) {
	// showGUI();
	// }
	/**
	 * Auto-generated method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	public static void showGUI() {
		Display display = Display.getDefault();
		Shell shell = new Shell(display);

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 253
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 192
		dialogShell.open();
		Display display = dialogShell.getDisplay();
		while (!dialogShell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 121
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 89
	}

	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.layout();

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 178
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 192
		dialogShell.open();
		Display display = dialogShell.getDisplay();
		while (!dialogShell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/FindDialog.java 121
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(Messages.FindElement_Find);

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 178
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 192
		dialogShell.open();
		Display display = dialogShell.getDisplay();
		while (!dialogShell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/FindDialog.java 121
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(Messages.FindElement_Find);

File Line
pl/edu/agh/cast/ui/outline/OutlineMiniatureView.java 128
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 77
		getSite().getPage().removePartListener(this);
	}

	@Override
	protected void contributeToActionBars() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void hookContextMenu() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void hookDoubleClickAction() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void makeActions() {
		// TODO Auto-generated method stub

	}

	@Override

File Line
pl/edu/agh/cast/action/PluginConfigurationAction.java 31
pl/edu/agh/cast/action/PluginUpdateAction.java 31
public class PluginUpdateAction implements IWorkbenchWindowActionDelegate {

	private IWorkbenchWindow window;

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
		window = null;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow win) {
		this.window = win;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {
		UpdateManagerUI.openInstaller(window.getShell());

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 147
pl/edu/agh/cast/ui/dialogs/search/StringFilterPanel.java 147
		StringParameterFilter filter = new StringParameterFilter(paramName, parameterFilter.getText());
		return filter;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#getParameterName()
	 */
	@Override
	public String getParameterName() {
		return paramName;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#isFilterEnabled()
	 */
	@Override
	public boolean isFilterEnabled() {
		return selectParameterCheckBox.getSelection();
	}
}

File Line
pl/edu/agh/cast/navigator/ui/action/CreateProjectAction.java 48
pl/edu/agh/cast/navigator/ui/action/OpenProjectAction.java 44
public class OpenProjectAction implements IWorkbenchWindowActionDelegate {

	private static final Logger LOG = Activator.getLogger();

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 48
pl/edu/agh/cast/editor/action/delegate/SaveAllActionDelegate.java 50
	public SaveAllActionDelegate() {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
		window.getActivePage().addPartListener(this);
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 84
pl/edu/agh/cast/editor/EditorUtil.java 171
    private static IProject getActiveProject() {
		IProject project = CastApplication.getActiveProject();

		if (project == null) {
			MsgBoxHelper.showErrorBox(Display.getCurrent().getActiveShell(), Messages.AbstractOpenEditorAction_0,
			        Messages.AbstractOpenEditorAction_1);

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 388
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 432
		} else {
			try {
				runnable.run(new NullProgressMonitor());
			} catch (Exception e) {
				if (exceptionHandler != null) {
					exceptionHandler.handleException(e);
				}
			}
		}
	}

File Line
pl/edu/agh/cast/action/ExitAction.java 30
pl/edu/agh/cast/action/PluginConfigurationAction.java 31
public class PluginConfigurationAction implements IWorkbenchWindowActionDelegate {

	private IWorkbenchWindow window;

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
		window = null;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow win) {
		this.window = win;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 324
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 192
		dialogShell.open();
		Display display = dialogShell.getDisplay();
		while (!dialogShell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 204
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 185
			newNameTextField = new Text(dialogShell, SWT.BORDER);
			newNameTextField.setText(currentName);
			newNameTextField.setLayoutData(newNameTextFieldLData);
			newNameTextField.setSelection(0, currentName.length());
			newNameTextField.addKeyListener(new KeyAdapter() {

File Line
pl/edu/agh/cast/editor/EditorUtil.java 172
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 116
			IProject project = CastApplication.getActiveProject();

			if (project == null) {
				MsgBoxHelper.showErrorBox(Display.getCurrent().getActiveShell(), Messages.AbstractOpenEditorAction_0,
				        Messages.AbstractOpenEditorAction_1);

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 127
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(dialogTitle);

File Line
pl/edu/agh/cast/model/visual/backward/Diagram.java 612
pl/edu/agh/cast/model/visual/backward/IDiagram.java 302
	public void addAttributesFromEntities(Collection<IEntity> entities, Collection<String> attributes,
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, String sourceJoinAttribute,
	        String targetJoinAttribute, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/model/visual/Diagram.java 40
pl/edu/agh/cast/model/visual/IDiagram.java 47
public interface IDiagram<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>, V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>, M>> {

File Line
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 46
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 83
		private MergePolicyLogicalAnd() {
			super();
		}

		/**
		 * {@inheritDoc}
		 *
		 * @see pl.edu.agh.cast.model.attributes.AttributeMergePolicy
		 *      #mergeValues(pl.edu.agh.cast.model.attributes.VisualAttribute, java.lang.Object, java.lang.Object)
		 */
		@Override
		public Object mergeValues(Attribute attribute, Object firstValue, Object secondValue) {
			checkIfBoolean(firstValue, secondValue);
			return ((Boolean)firstValue) && ((Boolean)secondValue);

File Line
pl/edu/agh/cast/backward/editor/action/SearchAction.java 95
pl/edu/agh/cast/ui/dialogs/FindDialog.java 343
		if (nodesFinder.foundCount() == 0) {
			MessageBox box = new MessageBox(Display.getCurrent().getActiveShell(), SWT.OK);
			box.setText(Messages.CAST);
			box.setMessage(Messages.NodesFinder_0);

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 42
pl/edu/agh/cast/ui/dialogs/search/StringFilterPanel.java 42
public class StringFilterPanel extends FilterPanel {

	private Button selectParameterCheckBox;

	private Text parameterFilter;

	private String paramName;

	/**
	 * Auto-generated main method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	// public static void main(String[] args) {
	// showGUI();
	// }
	/**
	 * Auto-generated method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	public static void showGUI() {
		Display display = Display.getDefault();
		Shell shell = new Shell(display);

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 343
pl/edu/agh/cast/ui/dialogs/FindDialog.java 348
		} else {
			MessageBox box = new MessageBox(Display.getCurrent().getActiveShell(), SWT.OK);
			box.setText(Messages.CAST);
			box.setMessage(Messages.NodesFinder_1);

File Line
pl/edu/agh/cast/editor/AbstractEditor.java 103
pl/edu/agh/cast/model/visual/Diagram.java 40
public abstract class Diagram<M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>, V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>, M>>

File Line
pl/edu/agh/cast/backward/resources/xml/XMLImporter.java 85
pl/edu/agh/cast/backward/resources/xml/XMLImporter.java 106
			diagram = (IDiagram)objectInputStream.readObject();
		} catch (ClassNotFoundException e) {
			throw new IOException(e.getMessage());
		}
		objectInputStream.close();
		reader.close();
		return diagram;

File Line
pl/edu/agh/cast/backward/resources/DiagramEditorInput.java 55
pl/edu/agh/cast/backward/resources/ModelEditorInput.java 50
	}

	/**
	 * Two {@link ModelEditorInput}s are equal if their files are equal. That basically means that
	 * {@link FileEditorInput}'s equals should be used.
	 *
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.backward.resources.FileEditorInput#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.backward.resources.FileEditorInput#hashCode()
	 */
	@Override
	public int hashCode() {
		return super.hashCode();
	}

}

File Line
pl/edu/agh/cast/backward/editor/operation/search/filters/DateParameterFilter.java 53
pl/edu/agh/cast/backward/editor/operation/search/filters/StringParameterFilter.java 57
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.backward.editor.operation.search.filters.IParameterFilter#matches(pl.edu.agh.cast.model.visual.backward.Node)
	 */
	public boolean matches(Node node) {
		AttributeValue property = node.getAttributeValue(paramName);
		if (property.getAttribute().getType() == ValueType.String) {

File Line
pl/edu/agh/cast/backward/editor/action/SearchAction.java 95
pl/edu/agh/cast/ui/dialogs/FindDialog.java 348
		} else {
			MessageBox box = new MessageBox(Display.getCurrent().getActiveShell(), SWT.OK);
			box.setText(Messages.CAST);
			box.setMessage(Messages.NodesFinder_1);

File Line
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 92
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.layout();

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 53
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 48
public class GetNewNameDialog extends org.eclipse.swt.widgets.Dialog {

	private Shell dialogShell;

	private Label errorLabel;

	private Label promptLabel;

	private Button okButton;

	private Button cancelButton;

	private Text newNameTextField;

	private String dialogTitle = "Title"; //$NON-NLS-1$

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 87
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(dialogTitle);

File Line
pl/edu/agh/cast/backward/resources/SerializationUtil.java 54
pl/edu/agh/cast/backward/resources/SerializationUtil.java 95
	public static IDiagram readDiagram(IFile file) {
		ObjectInputStream ois = null;
		try {
			ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(new File(file.getLocationURI()))));

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 87
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(dialogTitle);

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 454
pl/edu/agh/cast/tool/OverviewRectangleTool.java 464
			getCurrentViewer().getControl().addControlListener(this);
			GraphicalEditPart part = (GraphicalEditPart)getCurrentViewer().getContents();
			if (part != null) {
				IFigure referenceFigure = part.getContentPane();
				referenceFigure.addFigureListener(this);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 177
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 141
		firePropertyChange(Events.NEW_DATA_SET_EVENT, null, id);
		return id;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderDecorator#saveDataSets(java.util.Collection)
	 */
	@Override
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets) {
		Map<UUID, UUID> dsIdMap = super.saveDataSets(dataSets);

File Line
pl/edu/agh/cast/backward/figure/NodeFigure.java 33
pl/edu/agh/cast/figure/NodeFigure.java 35
public class NodeFigure extends Figure implements ILabeledFigure {

	/**
	 * The image figure that is used for displaying the node.
	 */
	protected ImageFigure icon;

	private FlowPage flowPage;

	private TextFlow textFlow;

	/**
	 * Creates an empty figure.
	 */
	public NodeFigure() {
		super();
	}

	/**
	 * Creates new node figure.
	 *
	 * @param label
	 *            node label
	 * @param resourceId
	 *            node resource id
	 * @param size
	 *            image size
	 */
	public NodeFigure(String label, String resourceId, ImageSize size) {

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 235
pl/edu/agh/cast/editor/AbstractEditor.java 269
	@Override
	protected FlyoutPreferences getPalettePreferences() {
		return new DefaultFlayoutPreferences();
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.gef.ui.parts.GraphicalEditor#configureGraphicalViewer()
	 */
	@Override
	protected void configureGraphicalViewer() {
		super.configureGraphicalViewer();
		GraphicalViewer viewer = getGraphicalViewer();

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorPresenter.java 359
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorPresenter.java 364
		} else {
			// add removable (custom) properties
			entry = new PropertyTreeEntry(property.getMetaProperty().getName(), property, property.getMetaProperty()
			        .isWritable() ? PropertyTreeEntry.PropertyEditType.CUSTOM_EDITABLE

File Line
pl/edu/agh/cast/model/attributes/AttributeManager.java 200
pl/edu/agh/cast/model/attributes/AttributeManager.java 222
	public Attribute getAttribute(String id) {
		if (!registeredAttributes.containsKey(id)) {
			throw new IllegalArgumentException(NLS.bind(Messages.ModelElementPropertyManager_0, id));
		}

File Line
pl/edu/agh/cast/editor/input/DiagramEditorInput.java 62
pl/edu/agh/cast/editor/input/ModelEditorInput.java 55
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorInput#exists()
	 */
	@Override
	public boolean exists() {
		// TODO Auto-generated method stub
		return false;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
	 */
	@Override
	public ImageDescriptor getImageDescriptor() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorInput#getName()
	 */
	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;

File Line
pl/edu/agh/cast/backward/editor/operation/search/filters/ColorParameterFilter.java 46
pl/edu/agh/cast/backward/editor/operation/search/filters/StringParameterFilter.java 57
	}

	/**
	 * {@inheritDoc}
	 * @see pl.edu.agh.cast.backward.editor.operation.search.filters.IParameterFilter#matches(pl.edu.agh.cast.model.visual.backward.Node)
	 */
	public boolean matches(Node node) {
		AttributeValue property = node.getAttributeValue(paramName);
		if (property.getAttribute().getType() == ValueType.Integer) {

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 147
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 179
		NumericParameterFilter filter = new NumericParameterFilter(paramName, from, to);
		return filter;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#getParameterName()
	 */
	@Override
	public String getParameterName() {
		return paramName;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#isFilterEnabled()
	 */
	@Override
	public boolean isFilterEnabled() {
		return selectParameterCheckBox.getSelection();
	}

}

File Line
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 134
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 88
		filterPanels = new LinkedList<FilterPanel>();
	}

	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/editpart/LabelEditManager.java 99
pl/edu/agh/cast/editpart/LabelEditManager.java 137
		ZoomManager zoomMgr = (ZoomManager)getEditPart().getViewer().getProperty(ZoomManager.class.toString());
		if (zoomMgr != null) {

File Line
pl/edu/agh/cast/editpart/LabelCellEditorLocator.java 53
pl/edu/agh/cast/tool/LabelCellEditorLocator.java 56
	public void relocate(CellEditor celleditor) {
		Text text = (Text)celleditor.getControl();
		// show the editor in place of node's label
		Rectangle rect = new Rectangle(nodeFigure.getLabelFigure().getBounds());

File Line
pl/edu/agh/cast/editor/ExtendedMouseWheelScrollHandler.java 66
pl/edu/agh/cast/editor/ExtendedMouseWheelZoomHandler.java 88
	public void handleMouseWheel(Event event, EditPartViewer viewer) {
		ZoomManager zoomMgr = (ZoomManager)viewer.getProperty(ZoomManager.class.toString());
		/**
		 * If zoom has maximum or minimum level no action is performed.
		 */
		if (!zoomMgr.canZoomIn() && event.count > 0) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupport.java 82
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 75
		IEditorReference[] editors = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
		        .getEditorReferences();
		// invoke doSave method for all modified editors
		for (IEditorReference editorRef : editors) {
			IEditorPart editor = editorRef.getEditor(false);

File Line
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 141
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 187
	private void doRestoreElements(IProgressMonitor progress) {
		int count = 110 * (nodes.size() + connections.size()) / 100;
		progress.beginTask(Messages.DeleteModelElementsCommand_3, count);

File Line
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 119
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 165
		if (undone) {
			return;
		}

		diagram.setSuppressEvents(true);
		EditorUtilBackward.runWithProgressMonitorInUIThread(new IRunnableWithProgress() {
			public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {

File Line
pl/edu/agh/cast/CastApplication.java 228
pl/edu/agh/cast/model/attributes/AttributeManager.java 267
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider#addPropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void addPropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 121
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 135
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/model/visual/backward/Diagram.java 596
pl/edu/agh/cast/model/visual/backward/IDiagram.java 260
	public void addAttributesFromEntities(Collection<IEntity> entities, Collection<String> attributes,
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/model/visual/backward/Connection.java 114
pl/edu/agh/cast/model/visual/backward/Node.java 430
		return "PN " + getLabel(); //$NON-NLS-1$
	}

	/**
	 * Two nodes are equal if their {@link #getId()}s are equal.
	 *
	 * {@inheritDoc}
	 *
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		}
		if (!(obj instanceof Node)) {

File Line
pl/edu/agh/cast/editpart/LabelCellEditorLocator.java 32
pl/edu/agh/cast/tool/LabelCellEditorLocator.java 32
public class LabelCellEditorLocator implements CellEditorLocator {

	private NodeFigure nodeFigure;

	public NodeFigure getNodeFigure() {
		return nodeFigure;
	}

	/**
	 * Constructor.
	 *
	 * @param nodeFigure
	 *            node figure
	 */
	public LabelCellEditorLocator(NodeFigure nodeFigure) {
		setLabel(nodeFigure);
	}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 135
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 479
pl/edu/agh/cast/editor/AbstractEditor.java 541
			return input.getDiagram().getName();
		} else {
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.part.WorkbenchPart#getTitle()
	 */
	@Override
	public String getTitle() {
		return getPartName();
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.part.EditorPart#getTitleToolTip()
	 */
	@Override
	public String getTitleToolTip() {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 208
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 188
			newNameTextField.setSelection(0, currentName.length());
			newNameTextField.addKeyListener(new KeyAdapter() {
				@Override
				public void keyReleased(KeyEvent evt) {
					newNameTextFieldKeyReleased(evt);
				}
			});
			newNameTextField.setFocus();

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 454
pl/edu/agh/cast/tool/OverviewRectangleTool.java 597
		Rectangle newBounds = new Rectangle(x, y, width, height);
		GraphicalEditPart part = (GraphicalEditPart)getCurrentViewer().getContents();
		if (part != null) {
			IFigure referenceFigure = part.getContentPane();

File Line
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 84
pl/edu/agh/cast/resource/AbstractVisualResourcesProvider.java 97
				for (ImageSize size : ImageSize.values()) {
					String path = createIconPath(entry.getImagesPath(), entry.getImageName(), variant, size, entry

File Line
pl/edu/agh/cast/model/visual/backward/Diagram.java 587
pl/edu/agh/cast/model/visual/backward/Diagram.java 602
		        NodeAttributeManager.PERMANENT_ID, monitor);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.model.visual.backward.IDiagram#addAttributesFromEntities(java.util.Collection, java.util.Collection,
	 *      java.util.Map, java.lang.String, java.lang.String, java.lang.String,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	public void addAttributesFromEntities(Collection<IEntity> entities, Collection<String> attributes,
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, String sourceJoinAttribute,

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 168
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 166
			});

			dialogShell.addTraverseListener(new TraverseListener() {
				public void keyTraversed(TraverseEvent evt) {
					if (evt.detail == SWT.TRAVERSE_ESCAPE) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 240
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 182
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderDecorator
	 *      #saveDiagram(pl.edu.agh.cast.data.model.presentation.IPresentationDataSet,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 103
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 133
		} catch (Exception e) {
			log.error("Failed to open editor", e); //$NON-NLS-1$
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged(IAction action, ISelection selection) {

	}

File Line
pl/edu/agh/cast/backward/editor/EntityCreationTool.java 44
pl/edu/agh/cast/backward/editor/EntityDropTargetListener.java 51
	@SuppressWarnings("unchecked")
	@Override
	protected Request createTargetRequest() {
		Request req = super.createTargetRequest();
		Map data = req.getExtendedData();

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 168
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 166
			});

			dialogShell.addTraverseListener(new TraverseListener() {
				public void keyTraversed(TraverseEvent evt) {
					if (evt.detail == SWT.TRAVERSE_ESCAPE) {

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 149
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 193
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#getParameterName()
	 */
	@Override
	public String getParameterName() {
		return paramName;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.ui.dialogs.search.FilterPanel#isFilterEnabled()
	 */
	@Override
	public boolean isFilterEnabled() {
		return selectParameterCheckBox.getSelection();
	}

}

File Line
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 135
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 128
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 237
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 172
			cancelButton.setText(Messages.Button_Cancel);
			cancelButton.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent evt) {
					cancelButtonWidgetSelected(evt);
				}
			});

			FormData newNameTextFieldLData = new FormData();

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 234
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 137
				cancelButtonLData.top = new FormAttachment(0, 1000, 288);
				cancelButton = new Button(dialogShell, SWT.PUSH | SWT.CENTER);
				cancelButton.setLayoutData(cancelButtonLData);
				cancelButton.setText(Messages.AdvancedSearchDialog_3);

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 121
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 128
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/resource/VisualResource.java 162
pl/edu/agh/cast/resource/VisualResource.java 290
				if (!variantImages.containsKey(variant)) {
					variantImages.put(variant, new HashMap<ImageSize, Image>());
				}

File Line
pl/edu/agh/cast/resource/VisualResource.java 124
pl/edu/agh/cast/resource/VisualResource.java 169
			return variantImageDescriptors.get(variant).put(size, descriptor);
		} else {
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.append(ERROR_MSG_01);
			stringBuilder.append(descriptor);

File Line
pl/edu/agh/cast/model/visual/backward/IDiagram.java 241
pl/edu/agh/cast/model/visual/backward/IDiagram.java 261
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, IProgressMonitor monitor);

	/**
	 * Adds attributes from a collection of entities to the diagram. The join between the entities and nodes is
	 * performed on the <code>sourceJoinAttribute</code> of <code>entities</code> and <code>targetJoinAttribute</code>
	 * of diagram nodes.
	 *
	 * For each {@link Node} <code>node</code> of type <code>nodeType</code> from the current {@link Diagram}, if there
	 * is an <code>entity</code> (of type {@link IEntity}) such that:
	 *
	 * <pre>
	 * node.getAttributeValue(targetJoinAttribute).equals(entity.getAttribute(sourceJoinAttribute));
	 * </pre>
	 *
	 * then the attributes from the <code>entity</code> are added to the <code>node</code>.
	 *
	 * The <code>sourceJoinAttribute</code> entity attribute should be unique across the <code>entities</code>
	 * collection, in order for the results to be deterministic.
	 *
	 * In order to resolve conflicts where the same attribute is present in both <code>entity</code> and
	 * <code>node</code>, instances {@link AttributeMergePolicy} can be used. These policies should be supplied in a map
	 * with entity attribute IDs as keys. A <code>null</code> key defines the default policy, otherwise
	 * {@link AttributeMergePolicy#MERGE_POLICY_ALWAYS_SECOND} is used.
	 *
	 * @param entities
	 *            collection of entities to add attributes from
	 * @param attributes
	 *            collection of attributes from <code>entities</code> that should be added to nodes
	 * @param mergePolicies
	 *            map of {@link AttributeMergePolicy} policies
	 * @param nodeType
	 *            type of nodes that the attributes should be added to, if <code>null</code> then all types are taken
	 *            into account
	 * @param sourceJoinAttribute
	 *            id of the entity attribute to join on
	 * @param targetJoinAttribute
	 *            id of the node attribute to join on
	 * @param monitor
	 *            progress monitor for this task, if <code>null</code> then
	 *            {@link org.eclipse.core.runtime.NullProgressMonitor} is used
	 */
	public void addAttributesFromEntities(Collection<IEntity> entities, Collection<String> attributes,
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, String sourceJoinAttribute,

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 203
pl/edu/agh/cast/model/visual/backward/Node.java 430
		return sourceNode.getLabel() + "->" + targetNode.getLabel(); //$NON-NLS-1$
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		}
		if (!(obj instanceof Connection)) {

File Line
pl/edu/agh/cast/editor/action/SaveAllAction.java 51
pl/edu/agh/cast/editor/action/SaveAllAction.java 66
	public void update() {
		IEditorPart[] editors = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();
		if (editors == null || editors.length == 0) {

File Line
pl/edu/agh/cast/editor/ExtendedScalableFreeformRootEditPart.java 41
pl/edu/agh/cast/editpart/ZoomableScalableFreeformRootEditPart.java 36
		zoomManager = new RectangleZoomManager((ScalableFigure)getScaledLayers(), (Viewport)getFigure());
	}

	/** {@inheritDoc} */
	public ZoomManager getZoomManager() {
		return this.zoomManager;
	}

}

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 128
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 257
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 264
    }


	// END Delegated methods

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#setConfig(java.lang.String)
	 */
	@Override
	public void setConfig(String filePath) {
		this.config = filePath;
	}

	public String getConfig() {
		return this.config;
	}

File Line
pl/edu/agh/cast/backward/editor/operation/FindNodesOperation.java 133
pl/edu/agh/cast/backward/editor/operation/FindNodesOperation.java 161
	protected Collection<Node> findNoWildcards(FindNodesParameters params, Collection<Node> nodesToSearch) {

		Collection<Node> found = new LinkedList<Node>();
		boolean matches = false;

File Line
pl/edu/agh/cast/backward/editor/action/SaveAction.java 42
pl/edu/agh/cast/backward/editor/action/SearchAction.java 48
	public SearchAction() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * Open dialog for defining finding criteria.
	 *
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 382
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 423
						dialog.run(false, false, runnable);

					} catch (Exception e) {
						if (exceptionHandler != null) {
							exceptionHandler.handleException(e);
						}
					}
				}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 81
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 128
	}

	/**
	 * Opens the dialog.
	 */
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 258
pl/edu/agh/cast/editor/AbstractEditor.java 291
		viewer.setKeyHandler(keyHandler);

		setupZoom();

		viewer.setProperty(MouseWheelHandler.KeyGenerator.getKey(SWT.MOD2), ExtendedMouseWheelScrollHandler
		        .getInstance());

		registerContextMenu();

File Line
pl/edu/agh/cast/ui/outline/OutlineMiniatureView.java 89
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 146
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partBroughtToTop(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partBroughtToTop(IWorkbenchPart part) {
		updateActiveEditor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partClosed(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partClosed(IWorkbenchPart part) {
		updateActiveEditor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partOpened(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partOpened(IWorkbenchPart part) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 253
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 172
			cancelButton.setText(Messages.FindElement_Cancel);
			cancelButton.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent evt) {
					cancelButtonWidgetSelected(evt);
				}
			});

File Line
pl/edu/agh/cast/resource/ResourceRegistry.java 145
pl/edu/agh/cast/resource/ResourceRegistry.java 173
			IVisualResource resource = idToResourceMap.remove(id);
			List<String> tags = resource.getTags();
			if (tags != null) {
				for (String tag : tags) {

File Line
pl/edu/agh/cast/navigator/ui/action/CloseProjectAction.java 33
pl/edu/agh/cast/navigator/ui/action/ShowProjectStartupAction.java 34
public class ShowProjectStartupAction implements IWorkbenchWindowActionDelegate {

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/model/visual/backward/Diagram.java 596
pl/edu/agh/cast/model/visual/backward/IDiagram.java 302
	public void addAttributesFromEntities(Collection<IEntity> entities, Collection<String> attributes,
	        Map<String, AttributeMergePolicy> mergePolicies, String nodeType, String sourceJoinAttribute,

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 204
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 448
	}

	/**
	 * Two {@link ConnectionGroup}s are equal if their sources and targets are equal.
	 *
	 * {@inheritDoc}
	 *
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		}
		if (!(obj instanceof ConnectionGroup)) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 193
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 155
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderDecorator#saveDataSets(java.util.Collection,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/backward/figure/LegendFigure.java 137
pl/edu/agh/cast/backward/figure/LegendFigure.java 192
		Figure labeledImageFigure = new Figure();
		ToolbarLayout imageLayout = new ToolbarLayout(true);
		imageLayout.setStretchMinorAxis(false);
		imageLayout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);

File Line
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 48
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 53
	private String paramName;

	/**
	 * Auto-generated main method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	// public static void main(String[] args) {
	// showGUI();
	// }
	/**
	 * Auto-generated method to display this org.eclipse.swt.widgets.Composite inside a new Shell.
	 */
	public static void showGUI() {
		Display display = Display.getDefault();
		Shell shell = new Shell(display);

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 213
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 91
	public void open() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 255
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 286
		statisticsCombo.addSelectionListener(new SelectionListener() {

			public void widgetDefaultSelected(SelectionEvent e) {
			}

			public void widgetSelected(SelectionEvent e) {

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 126
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 213
	private void createUI() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 310
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 332
			if (currentName.equalsIgnoreCase(newName)) {
				validName = false;
				if (validLocation) {
					errorLabel.setText(""); //$NON-NLS-1$
					errorLabel.update();
				}
			} else {

File Line
pl/edu/agh/cast/resource/VisualResource.java 340
pl/edu/agh/cast/resource/VisualResource.java 349
				Image img = map.get(size);
				if (img != null && !img.isDisposed()) {
					img.dispose();
				}
			}

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 125
pl/edu/agh/cast/model/attributes/AttributeManager.java 112
	private void registerAttribute(String id, boolean nameIsLocalizable, ValueType type, Object defaultValue,
	        boolean permanent, boolean editable, boolean showAsLabel, String ownerTypeName, String modelExtensionId) {

File Line
pl/edu/agh/cast/editor/input/DiagramEditorInput.java 39
pl/edu/agh/cast/editor/input/IDiagramEditorInput.java 38
public interface IDiagramEditorInput<M extends IPresentationDataSet<?>, V extends IVisualDataSet<?, M>,
		T extends IDiagram<M, V>> extends IEditorInput {

File Line
pl/edu/agh/cast/editor/action/delegate/SaveActionDelegate.java 50
pl/edu/agh/cast/navigator/ui/action/CloseProjectAction.java 40
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {
		if (ProjectUtil.getInstance().closeProject(CastApplication.getActiveProject())) {

File Line
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 87
pl/edu/agh/cast/navigator/ui/action/OpenProjectAction.java 46
	private static final Logger LOG = Activator.getLogger();

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 86
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 213
	private void createUI() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/editor/AbstractEditor.java 118
pl/edu/agh/cast/editor/action/delegate/SaveAllActionDelegate.java 110
	public void partActivated(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partBroughtToTop(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partBroughtToTop(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPartListener#partClosed(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partClosed(IWorkbenchPart part) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 250
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 240
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 217
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 176
	@Override
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {
		T savedDataSet = super.saveDiagram(presentationDataSet);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 154
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 155
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSetsById(Collection<UUID> ids) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 139
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 146
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSets(Collection<DataSetDescriptor> descs) {

File Line
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 119
pl/edu/agh/cast/editor/AbstractEditor.java 118
		public void partActivated(IWorkbenchPart part) {
			// do nothing
		}

		public void partBroughtToTop(IWorkbenchPart part) {
			// do nothing
		}

		public void partClosed(IWorkbenchPart part) {

File Line
pl/edu/agh/cast/backward/editor/action/SaveAction.java 50
pl/edu/agh/cast/navigator/ui/action/CloseProjectAction.java 40
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {
		if (ProjectUtil.getInstance().closeProject(CastApplication.getActiveProject())) {

File Line
pl/edu/agh/cast/backward/editor/action/DeleteActionDelegate.java 45
pl/edu/agh/cast/backward/editor/action/SelectAllActionDelegate.java 37
	public void run(IAction action) {
		ActionRegistry registry = (ActionRegistry)getEditor().getAdapter(ActionRegistry.class);
		((SelectAllAction)registry.getAction(ActionFactory.SELECT_ALL.getId())).run();

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 66
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 94
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {

	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {
		try {

File Line
pl/edu/agh/cast/backward/editor/EntityCreationTool.java 49
pl/edu/agh/cast/backward/editor/EntityDropTargetListener.java 57
		NodeFactory factory = (NodeFactory)templateTransfer.getObject();
		data.put(EntityCreationTool.IMAGE_ID, factory.getImageId());
		req.setExtendedData(data);
		return req;
	}

}

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 217
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 274
	public static boolean saveModifiedEditors(IProject project) {

		List<IResource> resources = new LinkedList<IResource>();
		try {
			if (!project.isOpen()) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 86
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 213
	private void createUI() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 407
pl/edu/agh/cast/backward/editor/AbstractEditor.java 501
	public String getTitleToolTip() {
		DiagramEditorInput input = (DiagramEditorInput)getEditorInput();
		IDiagram diagram = input.getDiagram();
		if (diagram.getFile() != null) {

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 113
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 119
	public void partActivated(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partBroughtToTop(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partBroughtToTop(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partClosed(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partClosed(IWorkbenchPart part) {

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 194
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 84
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Creates new color filter panel.
	 *
	 * @param parent
	 *            parent of this control
	 * @param style
	 *            style of this control
	 * @param paramName
	 *            the name of the parameter to filter on
	 */
	public ColorFilterPanel(org.eclipse.swt.widgets.Composite parent, int style, String paramName) {

File Line
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 225
pl/edu/agh/cast/ui/dialogs/ProjectStartupDialog.java 293
			link1.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent evt) {
					link1WidgetSelected(evt);
				}
			});

File Line
pl/edu/agh/cast/project/ProjectUtil.java 586
pl/edu/agh/cast/project/ProjectUtil.java 608
	public void handleMissingProjectFile(String location) {
		MsgBoxHelper.showWarningBox(CastApplication.getActiveShell(), Messages.ApplicationWorkbenchAdvisor_3, NLS.bind(
		        Messages.ApplicationWorkbenchAdvisor_9, location));

File Line
pl/edu/agh/cast/model/visual/Legend.java 60
pl/edu/agh/cast/model/visual/backward/Node.java 295
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.model.visual.backward.IMoveable#getLocation()
	 */
	public Point getLocation() {
		return location;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.model.visual.backward.IMoveable#setLocation(org.eclipse.draw2d.geometry.Point)
	 */
	public void setLocation(Point newLocation) {
		Point oldLocation = location;
		location = newLocation;

File Line
pl/edu/agh/cast/data/persistence/serialize/SerializationPersistenceProvider.java 78
pl/edu/agh/cast/data/persistence/serialize/SerializationPersistenceProvider.java 105
	private void deserialize() {
		if (getConfig() == null) {
			return;
		}
		List<IDataSet<? extends IElement>> dataSets = null;

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 240
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 217
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 155
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 139
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSetsById(Collection<UUID> ids);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 250
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 217
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 154
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 139
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSetsById(Collection<UUID> ids);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 130
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 145
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#getDataSetsById(java.util.Collection)
	 */
	@SuppressWarnings("unchecked")
	@Override
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSetsById(Collection<UUID> ids) {

File Line
pl/edu/agh/cast/backward/resources/xml/XMLExporter.java 77
pl/edu/agh/cast/backward/resources/xml/XMLExporter.java 90
		LOG.debug("Exporting a diagram to file: " + file.getAbsolutePath()); //$NON-NLS-1$
		Writer fileWriter = new BufferedWriter(new FileWriter(file));
		fileWriter.write(XML_ENCODING_HEADER); // XStream doesn't do that

File Line
pl/edu/agh/cast/backward/figure/LegendFigure.java 145
pl/edu/agh/cast/backward/figure/LegendFigure.java 146
		colorLineFigure.setBackgroundColor(new Color(null, colorId.getRed(), colorId.getGreen(), colorId.getBlue()));

File Line
pl/edu/agh/cast/backward/figure/LegendFigure.java 95
pl/edu/agh/cast/figure/AbstractLegendFigure.java 74
		ToolbarLayout layout = new ToolbarLayout();
		layout.setStretchMinorAxis(false);
		layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
		setLayoutManager(layout);

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 59
pl/edu/agh/cast/editor/action/delegate/SaveActionDelegate.java 43
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 355
pl/edu/agh/cast/backward/editor/action/SearchAction.java 74
	public void run(IAction action) {

		IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();

		if (editor == null) {

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 569
pl/edu/agh/cast/editor/AbstractEditor.java 633
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.ISaveablePart2#promptToSaveOnClose()
	 */
	public int promptToSaveOnClose() {
		return EditorSaverSupport.getInstance().promptToSaveOnClose(this);
	}

	/**
	 * Gets {@link EditPartFactory} for this editor.
	 * 
	 * @return {@link EditPartFactory}
	 */
	public abstract EditPartFactory getEditPartsFactory();

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 353
pl/edu/agh/cast/editor/AbstractEditor.java 389
	@Override
	protected PaletteRoot getPaletteRoot() {

		PaletteRoot root = new PaletteRoot();

		PaletteGroup basic = new PaletteGroup(Messages.AbstractEditor_0);

File Line
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 168
pl/edu/agh/cast/ui/dialogs/search/ColorFilterPanel.java 74
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorPresenter.java 386
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorPresenter.java 390
			originalProperty = model.getOriginalElements().get(0).getProperty(
			        entry.getProperty().getMetaProperty().getName());
		}
		if (originalProperty == null) {

File Line
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 235
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 79
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 133
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 213
	private void createUI() {
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 221
pl/edu/agh/cast/ui/dialogs/search/StringFilterPanel.java 74
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/dialogs/FindDialog.java 292
pl/edu/agh/cast/ui/dialogs/FindDialog.java 304
		if (diagramIsOpened()) {
			selectNode(nodesFinder.findNext(getParameters(), getNodes()));
		}
	}

	private void findAllButtonWidgetSelected(SelectionEvent evt) {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 272
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 79
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/resource/VisualResource.java 152
pl/edu/agh/cast/resource/VisualResource.java 277
	public Image getImage(String variant, ImageSize size) {
		assert variantImageDescriptors != null;
		assert variantImages != null;

		if (variant == null || variant.isEmpty() || size == null) {

File Line
pl/edu/agh/cast/navigator/ui/action/CloseProjectAction.java 40
pl/edu/agh/cast/navigator/ui/action/OpenProjectAction.java 53
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 119
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 154
		private MergePolicyAlwaysFirst() {
			super();
		}

		/**
		 * {@inheritDoc}
		 *
		 * @see pl.edu.agh.cast.model.attributes.AttributeMergePolicy
		 *      #mergeValues(pl.edu.agh.cast.model.attributes.VisualAttribute, java.lang.Object, java.lang.Object)
		 */
		@Override
		public Object mergeValues(Attribute attribute, Object firstValue, Object secondValue) {
			return firstValue;

File Line
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 94
pl/edu/agh/cast/navigator/ui/action/ShowProjectStartupAction.java 41
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 180
pl/edu/agh/cast/ui/dialogs/search/NumericFilterPanel.java 79
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 168
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 182
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderDecorator
	 *      #saveDiagram(pl.edu.agh.cast.data.model.presentation.IPresentationDataSet,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 90
pl/edu/agh/cast/model/attributes/Attribute.java 306
	protected void firePropertyChange(String property, Object oldValue, Object newValue) {
		pcpHelper.firePropertyChange(property, oldValue, newValue);
	}

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 202
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 220
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/backward/resources/xml/XMLImporter.java 80
pl/edu/agh/cast/backward/resources/xml/XMLImporter.java 99
	public IDiagram importDiagram(File file) throws IOException {
		FileReader reader = new FileReader(file);
		ObjectInputStream objectInputStream = xstream.createObjectInputStream(reader);

File Line
pl/edu/agh/cast/backward/figure/ImageFigure.java 36
pl/edu/agh/cast/figure/ImageFigure.java 38
public class ImageFigure extends Figure {

	private Image image;

	/**
	 * Use ImageFigure(String imageId) constructor to create this figure.
	 */
	@SuppressWarnings("unused")
	private ImageFigure() {
	}

	/**
	 * Creates new figure with an image in resource by given id and with given size.
	 *
	 * @param resourceId
	 *            id of the image to be used
	 * @param size
	 *            image size
	 * @throws IllegalArgumentException
	 *             when resource does not exist or resource does not contain image with given size
	 */
	public ImageFigure(String resourceId, ImageSize size) {

File Line
pl/edu/agh/cast/backward/editor/action/AbstractOpenEditorAction.java 66
pl/edu/agh/cast/navigator/ui/action/ShowProjectStartupAction.java 41
	public void dispose() {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
	 */
	public void init(IWorkbenchWindow window) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
	 */
	public void run(IAction action) {

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 382
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 390
				runnable.run(new NullProgressMonitor());
			} catch (Exception e) {
				if (exceptionHandler != null) {
					exceptionHandler.handleException(e);
				}
			}
		}

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 224
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 283
		} catch (CoreException e) {
			// exception is thrown by members method in two cases:
			// - Project does not exist.
			// - Project is not open.
			// All this cases can't occur here
		}

		IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 180
pl/edu/agh/cast/ui/dialogs/search/DateFilterPanel.java 84
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

File Line
pl/edu/agh/cast/ui/util/MsgBoxHelper.java 127
pl/edu/agh/cast/ui/util/MsgBoxHelper.java 159
		int style = SWT.ICON_WARNING | SWT.YES | SWT.NO;
		return showBox(parent, title, msg, style);
	}

	/**
	 * Shows error box.
	 * 
	 * @param parent
	 *            parent control
	 * @param title
	 *            message box title
	 * @param msg
	 *            error message
	 * @return message box result
	 */
	public static int showErrorBox(Composite parent, String title, String msg) {

File Line
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 214
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 196
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 135
			promptLabel = new Label(dialogShell, SWT.NONE);
			promptLabel.setLayoutData(komunikatLData);
			promptLabel.setText(dialogPrompt);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 133
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 214
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 317
pl/edu/agh/cast/tool/OverviewRectangleTool.java 322
	boolean isWest(int loc) {
		loc = (isInside(loc)) ? loc ^ INSIDE : loc;
		return (loc & WEST) != 0;

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 197
pl/edu/agh/cast/tool/OverviewRectangleTool.java 212
					newBounds.y = minY;
				}
				if (newBounds.x + newBounds.width > minX + maxWidth) {
					newBounds.width = maxWidth - newBounds.x;

File Line
pl/edu/agh/cast/model/attributes/validation/ListAttributeValidator.java 54
pl/edu/agh/cast/model/attributes/validation/StringAttributeValidator.java 35
	@Override
	protected boolean checkFormat(String value) {
		return true;
	}

	/**
	 * {@inheritDoc}
	 * @see pl.edu.agh.cast.model.attributes.validation.AttributeValidator#convert(java.lang.String)
	 */
	@Override
	protected Object convert(String value) {

File Line
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 281
pl/edu/agh/cast/model/visual/backward/Node.java 450
		if (!getId().equals(that.getId())) {
			return false;
		}
		return true;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {

File Line
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 46
pl/edu/agh/cast/model/attributes/AttributeMergePolicy.java 154
		private MergePolicyAlwaysSecond() {
			super();
		}

		/**
		 * {@inheritDoc}
		 *
		 * @see pl.edu.agh.cast.model.attributes.AttributeMergePolicy
		 *      #mergeValues(pl.edu.agh.cast.model.attributes.VisualAttribute, java.lang.Object, java.lang.Object)
		 */
		@Override
		public Object mergeValues(Attribute attribute, Object firstValue, Object secondValue) {

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 279
pl/edu/agh/cast/model/visual/backward/DiagramSettings.java 65
	@XStreamOmitField
	private transient PropertyChangeProviderHelper pcpHelper;

	protected Object readResolve() {
		pcpHelper = new PropertyChangeProviderHelper(this);
		return this;
	}

	public boolean isShowLegend() {

File Line
pl/edu/agh/cast/editor/action/delegate/SaveActionDelegate.java 92
pl/edu/agh/cast/editor/action/delegate/SaveAllActionDelegate.java 149
			parts.add((IEditorPart)part);
		}
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.ui.IPropertyListener#propertyChanged(java.lang.Object, int)
	 */
	public void propertyChanged(Object source, int propId) {
		if (propId == IEditorPart.PROP_DIRTY) {

File Line
pl/edu/agh/cast/editor/ExtendedMouseWheelScrollHandler.java 76
pl/edu/agh/cast/editor/ExtendedMouseWheelScrollHandler.java 78
				newX = zoomMgr.getScalableFigure().getBounds().width
						- zoomMgr.getViewport().getBounds().width - 1;

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 87
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 133
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/data/persistence/TransparentPersistenceProvider.java 35
pl/edu/agh/cast/data/persistence/TransparentPersistenceProvider.java 68
			setProvider(provider);
			getProvider().initialize();
			firePropertyChange(IObservablePersistenceProvider.Events.INITIALIZED_EVENT, getProvider(), null);
		}

File Line
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 190
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 164
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 251
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 177
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 230
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 242
		return (T)provider.saveDiagram(presentationDataSet, monitor);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider
	 *      #saveDiagram(pl.edu.agh.cast.data.model.presentation.IPresentationDataSet)
	 */
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 220
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 190
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 146
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 150
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSets(Collection<DataSetDescriptor> descriptors);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 218
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 251
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 217
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 249
	@Override
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 202
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 190
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 139
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 150
	public <T extends IDataSet<? extends IElement>> Map<UUID, T> getDataSets(Collection<DataSetDescriptor> descriptors);

File Line
pl/edu/agh/cast/backward/editor/action/SaveAction.java 92
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 158
			parts.add((IEditorPart)part);
		}
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPropertyListener#propertyChanged(java.lang.Object, int)
	 */
	public void propertyChanged(Object source, int propId) {
		if (propId == IEditorPart.PROP_DIRTY) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 87
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 133
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 129
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 277
						doCalculateStatistics(stat, provider, progress);
					}
				}, new IExceptionHandler() {
					public void handleException(Exception e) {
						Activator.getLogger().error("Error calculating statistics", e); //$NON-NLS-1$

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 237
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 155
			okButton.setLayoutData(okButtonLData);
			okButton.setText(Messages.Button_OK);
			okButton.setEnabled(false);
			okButton.addSelectionListener(new SelectionAdapter() {

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 229
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 146
			errorLabel.setText(errorMessage);
			errorLabel.setVisible(false);

			okButton = new Button(dialogShell, SWT.PUSH | SWT.CENTER);

File Line
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 199
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 216
		} else if (left.equals(node)) {
			return rightConnections;
		}
		throw new IllegalArgumentException(NO_SUCH_NODE_MESSAGE);

	}

	/**
	 * Returns the list of all {@link Connection}s in this group.
	 *
	 * @return list of all {@link Connection}s in this group
	 */
	public List<Connection> getAllConnections() {

File Line
pl/edu/agh/cast/model/attributes/AttributeManager.java 169
pl/edu/agh/cast/model/attributes/AttributeManager.java 177
	        String ownerTypeId, String modelExtensionId) {
		registerAttribute(id, true, type, type.getDefaultValue(), true, editable, showAsLabel, ownerTypeId,

File Line
pl/edu/agh/cast/model/DefaultStatisticsProvider.java 42
pl/edu/agh/cast/model/DefaultStatisticsProvider.java 56
		        + dataProvider.getEntities().size());
		ArrayList<Statistic> result = new ArrayList<Statistic>();
		for (IEntity e : dataProvider.getEntities()) {

File Line
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 136
pl/edu/agh/cast/editor/EditorSaverSupportDialog.java 151
			cancelBtn.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent e) {
					endDialog(SWT.CANCEL);

File Line
pl/edu/agh/cast/data/persistence/runtime/RuntimePersistenceProviderFactory.java 42
pl/edu/agh/cast/data/persistence/serialize/SerializationPersistenceProviderFactory.java 42
	public SerializationPersistenceProviderFactory() {
		super(PROVIDER_ID);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProviderFactory#createPersistenceProvider(java.lang.String)
	 */
	@Override
	public IPersistenceProvider createPersistenceProvider(String filePath) {
		IPersistenceProvider provider = new SerializationPersistenceProvider();

File Line
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 143
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 155
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderDecorator#saveDataSets(java.util.Collection,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 202
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 177
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {

File Line
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 190
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 203
	        T presentationDataSet);

	/**
	 * Saves the given presentation data set with associated visual data set and returns their new version.
	 *
	 * @param <T>
	 *            the type of presentation data set
	 *
	 * @param presentationDataSet
	 *            the presentation data set to save
	 * @param monitor
	 *            operation progress monitor
	 * @return the new version of presentation data set (with associated visual data set) as saved
	 */
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 251
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 202
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 110
pl/edu/agh/cast/data/persistence/runtime/RuntimePersistenceProvider.java 85
	public <T extends IDataSet<? extends IElement>> T getDataSet(UUID id) {
		return (T)dsMap.get(id);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 218
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 202
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 179
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 155
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#saveDataSets(java.util.Collection,
	 *      org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 128
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 100
	public <T extends IDataSet<? extends IElement>> T getDataSet(DataSetDescriptor descriptor) {
		return (T)provider.getDataSet(descriptor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 114
pl/edu/agh/cast/data/persistence/runtime/RuntimePersistenceProvider.java 76
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#getDataSet(java.util.UUID)
	 */
	@SuppressWarnings("unchecked")
	@Override
	public <T extends IDataSet<? extends IElement>> T getDataSet(UUID id) {

File Line
pl/edu/agh/cast/backward/resources/SerializationUtil.java 64
pl/edu/agh/cast/backward/resources/SerializationUtil.java 110
			        + file.getName(), e);
		} finally {
			closeDiagramInput(file, ois);
		}
		return null;
	}

File Line
pl/edu/agh/cast/backward/figure/icons/NodeIconProvider.java 150
pl/edu/agh/cast/backward/figure/icons/NodeIconProvider.java 166
	public String getSmallIconId(String nodeType) {
		NodeIcon nodeIcon = getNodeIcon(nodeType);
		if (nodeIcon != null) {
			return nodeIcon.getSmallIconId();

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 375
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 413
	        final IExceptionHandler exceptionHandler) {
		if (runnable == null) {
			return;
		}
		if (PlatformUI.isWorkbenchRunning()) {

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 136
pl/edu/agh/cast/backward/editor/EditorSaverSupportDialog.java 151
			cancelBtn.addSelectionListener(new SelectionAdapter() {
				@Override
				public void widgetSelected(SelectionEvent e) {
					endDialog(SWT.CANCEL);

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 123
pl/edu/agh/cast/backward/editor/action/SaveAllAction.java 140
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partDeactivated(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partDeactivated(IWorkbenchPart part) {
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partOpened(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partOpened(IWorkbenchPart part) {
		if (part instanceof IEditorPart) {

File Line
pl/edu/agh/cast/CastApplication.java 236
pl/edu/agh/cast/model/visual/backward/DiagramSettings.java 173
		pcpHelper.addPropertyChangeListener(l);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
	 *      #removePropertyChangeListener(java.beans.PropertyChangeListener)
	 */
	public void removePropertyChangeListener(PropertyChangeListener l) {
		pcpHelper.removePropertyChangeListener(l);
	}

File Line
pl/edu/agh/cast/ui/outline/OutlineMiniatureView.java 117
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 162
	public void partClosed(IWorkbenchPart part) {
		updateActiveEditor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partOpened(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partOpened(IWorkbenchPart part) {
		updateActiveEditor();
	}

File Line
pl/edu/agh/cast/ui/outline/OutlineMiniatureView.java 107
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 118
	public void partActivated(IWorkbenchPart part) {
		updateActiveEditor();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IPartListener#partDeactivated(org.eclipse.ui.IWorkbenchPart)
	 */
	public void partDeactivated(IWorkbenchPart part) {
		updateActiveEditor();
	}

File Line
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 120
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 134
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 139
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 124
			dialogShell.setLayout(new FormLayout());
			dialogShell.setText(dialogTitle);
			dialogShell.layout();
			dialogShell.pack();
			dialogShell.setSize(363, 155);

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 133
pl/edu/agh/cast/ui/dialogs/StatisticsDialog.java 134
		try {
			Shell parent = getParent();
			dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 414
pl/edu/agh/cast/tool/OverviewRectangleTool.java 453
		if (getCurrentViewer() != null) {
			getCurrentViewer().getControl().removeControlListener(this);

File Line
pl/edu/agh/cast/tool/OverviewRectangleTool.java 294
pl/edu/agh/cast/tool/OverviewRectangleTool.java 454
			getCurrentViewer().getControl().removeControlListener(this);
			GraphicalEditPart part = (GraphicalEditPart)getCurrentViewer().getContents();
			if (part != null) {

File Line
pl/edu/agh/cast/navigator/ui/action/CreateProjectAction.java 87
pl/edu/agh/cast/navigator/ui/action/OpenProjectAction.java 86
			if (!ProjectUtil.getInstance().closeProject(CastApplication.getActiveProject())) {
				return;
			}

File Line
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 329
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 365
		rightConnections.remove(connection);

		updateProperties();

		firePropertyChange(CONNECTION_COUNT_CHANGED, oldTargetConnectionCount, rightConnections.size());
	}

	/**
	 * Adds this connection group to both nodes.
	 */
	public void addConnectionGroupToNodes() {

File Line
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 314
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 347
		leftConnections.remove(connection);

		updateProperties();

		firePropertyChange(CONNECTION_COUNT_CHANGED, oldSourceConnectionCount, leftConnections.size());
	}

	/**
	 * Removes a {@link Connection} originating from right node.
	 *
	 * @param connection
	 *            {@link Connection} originating from right node
	 */
	public void removeRightConnection(Connection connection) {

File Line
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 143
pl/edu/agh/cast/model/visual/backward/ConnectionGroup.java 159
		} else if (right.equals(node)) {
			return rightConnections.size();
		}
		throw new IllegalArgumentException(NO_SUCH_NODE_MESSAGE);
	}

File Line
pl/edu/agh/cast/editor/input/DiagramEditorInput.java 94
pl/edu/agh/cast/editor/input/ModelEditorInput.java 88
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorInput#getPersistable()
	 */
	@Override
	public IPersistableElement getPersistable() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IEditorInput#getToolTipText()
	 */
	@Override
	public String getToolTipText() {
		// TODO Auto-generated method stub
		return null;

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 240
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 177
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 229
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 151
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 211
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 221
		return provider.saveDataSets(dataSets, monitor);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#saveDataSets(java.util.Collection)
	 */
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 90
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 101
		return (T)provider.getDataSet(descriptor);
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#getDataSet(java.util.UUID)
	 */
	@SuppressWarnings("unchecked")
	public <T extends IDataSet<? extends IElement>> T getDataSet(UUID id) {

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 218
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 240
	public <T extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>> T saveDiagram(
	        T presentationDataSet, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 187
pl/edu/agh/cast/data/persistence/AbstractPersistenceProviderDecorator.java 229
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets) {

File Line
pl/edu/agh/cast/backward/figure/LegendFigure.java 119
pl/edu/agh/cast/figure/AbstractLegendFigure.java 83
		legendBorder = new FrameBorder(Messages.Legend_0);
		this.setBackgroundColor(ColorConstants.listBackground);
		this.setOpaque(true);
		this.setBorder(legendBorder);

File Line
pl/edu/agh/cast/backward/editor/action/EnhanceNodesAction.java 57
pl/edu/agh/cast/backward/editor/action/PasteAction.java 54
		CommandStack commandStack = (CommandStack)getEditor().getAdapter(CommandStack.class);
		commandStack.execute(new PasteCommand(clipboardContents.getNodes(), diagram));

File Line
pl/edu/agh/cast/backward/editor/AbstractEditor.java 504
pl/edu/agh/cast/backward/editor/AbstractEditor.java 507
		} else {
			return NLS.bind(Messages.AbstractEditor_9, new Object[] { diagram.getDisplayName(), "---" }); //$NON-NLS-1$

File Line
pl/edu/agh/cast/backward/command/DeleteModelElementsCommand.java 124
pl/edu/agh/cast/backward/command/EnhanceNodesCommand.java 91
		EditorUtilBackward.runWithProgressMonitorInUIThread(new IRunnableWithProgress() {
			public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {

File Line
pl/edu/agh/cast/action/PluginConfigurationAction.java 59
pl/edu/agh/cast/action/PluginUpdateAction.java 59
		UpdateManagerUI.openInstaller(window.getShell());
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged(IAction action, ISelection selection) {
	}

}

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 349
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 381
			cancelButton.addListener(SWT.Selection, new Listener() {
				public void handleEvent(Event event) {

File Line
pl/edu/agh/cast/ui/dialogs/property/PropertiesContentProvider.java 50
pl/edu/agh/cast/ui/dialogs/property/PropertiesContentProvider.java 63
	public boolean hasChildren(Object element) {
		if (element instanceof PropertyTreeEntry) {
			return ((PropertyTreeEntry)element).hasChildren();

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 248
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorDialog.java 389
			cancelButton = new Button(composite3, SWT.PUSH | SWT.CENTER);
			GridData cancelButtonLData = new GridData();
			cancelButtonLData.widthHint = 100;

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 104
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 90
	public GetNewNameDialog(Shell parent, int style, String title, String dialogPrompt, String errorMsg) {
		super(parent, style);
		this.dialogTitle = title;
		this.dialogPrompt = dialogPrompt;
		this.errorMessage = errorMsg;

File Line
pl/edu/agh/cast/ui/dialogs/CreateProjectDialog.java 82
pl/edu/agh/cast/ui/dialogs/GetNewNameDialog.java 66
	private String dialogPrompt = "Enter name:"; //$NON-NLS-1$

	private String result = null;

	private boolean cancelled = false;

	private String currentName = null;

File Line
pl/edu/agh/cast/project/UserPreferences.java 149
pl/edu/agh/cast/project/UserPreferences.java 216
			Preferences mruNode = getPluginNode().node(MRU_NODE_NAME);
			Preferences orderNode = mruNode.node(MRU_ORDER_NODE_NAME);

File Line
pl/edu/agh/cast/project/ProjectUtil.java 474
pl/edu/agh/cast/project/ProjectUtil.java 477
			} else if (res == ProjectOpenStatus.INVALID_VERSION) {
				rett = MsgBoxHelper.showWarningQuestionBox(Display.getCurrent().getActiveShell(),
				        Messages.ProjectUtil_WrongVersionTitle, NLS.bind(Messages.ProjectUtil_WrongVersionMRUMessage,

File Line
pl/edu/agh/cast/navigator/ui/action/CreateProjectAction.java 87
pl/edu/agh/cast/project/ProjectUtil.java 444
		if (!ProjectUtil.getInstance().closeProject(CastApplication.getActiveProject())) {
			return true;

File Line
pl/edu/agh/cast/navigator/ui/NavigatorTreeView.java 188
pl/edu/agh/cast/ui/outline/OutlineTreeView.java 96
	}

	@Override
	protected void makeActions() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void createControl(Composite parent) {

File Line
pl/edu/agh/cast/model/visual/backward/VisualModelCachingFactory.java 486
pl/edu/agh/cast/model/visual/backward/VisualModelCachingFactory.java 488
				r = new Relation(new Entity(srcPn.getId()), new Entity(trgPn.getId()));

File Line
pl/edu/agh/cast/model/visual/backward/Statistic.java 66
pl/edu/agh/cast/model/visual/backward/Statistic.java 85
		setNodeName(nodeName);
		this.sourceValue = outgoing;
		this.targetValue = incoming;
	}

	/**
	 * Creates new statistics with no values.
	 *
	 * @param nodeName
	 *            the name of the node which correspond to this statistics row
	 */
	public Statistic(String nodeName) {

File Line
pl/edu/agh/cast/model/attributes/Attribute.java 274
pl/edu/agh/cast/model/attributes/AttributeManager.java 253
	}

	/**
	 * Property change support
	 */
	@XStreamOmitField
	private transient PropertyChangeProviderHelper pcpHelper;

	protected Object readResolve() {
		pcpHelper = new PropertyChangeProviderHelper(this);

File Line
pl/edu/agh/cast/editor/EditorUtil.java 103
pl/edu/agh/cast/navigator/ui/NavigatorTreeView.java 446
			        .getClass().getName()));
			MsgBoxHelper.showErrorBox(Display.getCurrent().getActiveShell(), Messages.NavigatorTreeView_8,

File Line
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 179
pl/edu/agh/cast/data/persistence/ObservablePersistenceProvider.java 151
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets) {

File Line
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 170
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 179
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets);

	/**
	 * Saves the given collection of data sets.
	 *
	 * @param dataSets
	 *            collection of data sets to save
	 * @param monitor
	 *            operation progress monitor
	 * @return a map containing new IDs (as saved) of the data sets indexed by their old IDs
	 */
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets, IProgressMonitor monitor);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 187
pl/edu/agh/cast/data/persistence/IPersistenceProvider.java 179
	public Map<UUID, UUID> saveDataSets(Collection<IDataSet<? extends IElement>> dataSets);

File Line
pl/edu/agh/cast/data/persistence/AbstractPersistenceProvider.java 129
pl/edu/agh/cast/data/persistence/runtime/RuntimePersistenceProvider.java 75
		dsDescriptors.clear();
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see pl.edu.agh.cast.data.persistence.IPersistenceProvider#getDataSet(java.util.UUID)
	 */
	@SuppressWarnings("unchecked")
	@Override
	public <T extends IDataSet<? extends IElement>> T getDataSet(UUID id) {

File Line
pl/edu/agh/cast/command/ModifyPresentationElementCommand.java 47
pl/edu/agh/cast/ui/dialogs/property/PropertiesEditorPresenter.java 56
public class PropertiesEditorPresenter {

	private static Logger log = Activator.getLogger();

	private IPresentationElement<? extends IElement> model;

	private IPropertiesEditorView view;

File Line
pl/edu/agh/cast/backward/resources/xml/XMLExporter.java 66
pl/edu/agh/cast/backward/resources/xml/XMLImporter.java 59
	public XMLImporter(Class<?>[] classesWithAnnotations) {
		this.xstream = XStreamInitializer.createXStreamInstance(classesWithAnnotations);

File Line
pl/edu/agh/cast/backward/figure/LegendFigure.java 94
pl/edu/agh/cast/figure/NodeFigure.java 127
		add(flowPage);

		ToolbarLayout layout = new ToolbarLayout();
		layout.setStretchMinorAxis(false);
		layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 356
pl/edu/agh/cast/ui/dialogs/search/AdvancedSearchDialog.java 190
		IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 231
pl/edu/agh/cast/editor/EditorSaverSupport.java 92
			IEditorPart editorPart = editorRef.getEditor(false);
			if (editorPart != null && editorPart.getEditorInput() instanceof DiagramEditorInput) {

File Line
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 198
pl/edu/agh/cast/editor/action/delegate/AbstractOpenEditorActionDelegate.java 165
			editor = workbenchPage.openEditor(editorInput, desc.getId());
		} else {
			workbenchPage.activate(editor);
		}
		return editor;
	}

File Line
pl/edu/agh/cast/backward/editor/EditorSaverSupport.java 85
pl/edu/agh/cast/backward/editor/EditorUtilBackward.java 231
			IEditorPart editorPart = editorReference.getEditor(false);
			if (editorPart != null && editorPart.getEditorInput() instanceof DiagramEditorInput) {

File Line
pl/edu/agh/cast/backward/command/EnhanceNodesCommand.java 70
pl/edu/agh/cast/command/RemoveMetaPropertiesCommand.java 50
	}

	/**
	 * Always returns false as the commend cannot be undone. {@inheritDoc}
	 *
	 * @see org.eclipse.gef.commands.Command#canUndo()
	 */
	@Override
	public boolean canUndo() {
		return false;
	}

	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.gef.commands.Command#execute()
	 */
	@Override
	public void execute() {