use of org.tigris.subversion.subclipse.ui.svnproperties.SvnPropertiesView in project subclipse by subclipse.
the class ShowPropertiesSynchronizeOperation method run.
protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
run(new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) {
getShell().getDisplay().syncExec(new Runnable() {
public void run() {
try {
SvnPropertiesView view = (SvnPropertiesView) showView(SvnPropertiesView.VIEW_ID);
if (view != null) {
ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
view.showSvnProperties(svnResource);
}
} catch (SVNException e) {
SVNUIPlugin.log(IStatus.ERROR, e.getMessage(), e);
}
}
});
}
}, false, /* cancelable */
PROGRESS_BUSYCURSOR);
}
use of org.tigris.subversion.subclipse.ui.svnproperties.SvnPropertiesView in project subclipse by subclipse.
the class ShowSvnPropertiesAction method execute.
protected void execute(IAction action) throws InvocationTargetException, InterruptedException {
if (action != null && !action.isEnabled()) {
action.setEnabled(true);
} else {
if (getSelectedResources() != null && getSelectedResources().length > 0) {
IResource resource = (IResource) getSelectedResources()[0];
final ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
try {
SvnPropertiesView view = (SvnPropertiesView) showView(SvnPropertiesView.VIEW_ID);
if (view != null)
view.showSvnProperties(svnResource);
} catch (SVNException e) {
throw new InvocationTargetException(e);
}
}
}
}
Aggregations