use of org.eclipse.che.ide.api.resources.Project in project che by eclipse.
the class ShowRemoteAction method actionPerformed.
/** {@inheritDoc} */
@Override
public void actionPerformed(ActionEvent e) {
final Project project = appContext.getRootProject();
checkState(project != null, "Null project occurred");
presenter.showDialog(project);
}
use of org.eclipse.che.ide.api.resources.Project in project che by eclipse.
the class ShowStatusAction method actionPerformed.
/** {@inheritDoc} */
@Override
public void actionPerformed(ActionEvent e) {
final Project project = appContext.getRootProject();
checkState(project != null, "Null project occurred");
presenter.showStatus(project);
}
use of org.eclipse.che.ide.api.resources.Project in project che by eclipse.
the class CompareWithRevisionAction method actionPerformed.
/** {@inheritDoc} */
@Override
public void actionPerformed(ActionEvent e) {
final Project project = appContext.getRootProject();
final Resource resource = appContext.getResource();
checkState(project != null, "Null project occurred");
checkState(resource instanceof File, "Invalid file occurred");
presenter.showRevisions(project, (File) resource);
}
use of org.eclipse.che.ide.api.resources.Project in project che by eclipse.
the class FetchAction method actionPerformed.
/** {@inheritDoc} */
@Override
public void actionPerformed(ActionEvent e) {
final Project project = appContext.getRootProject();
checkState(project != null, "Null project occurred");
presenter.showDialog(project);
}
use of org.eclipse.che.ide.api.resources.Project in project che by eclipse.
the class GitAction method updateInPerspective.
@Override
public void updateInPerspective(@NotNull ActionEvent event) {
event.getPresentation().setVisible(true);
final Project project = appContext.getRootProject();
event.getPresentation().setEnabled(project != null && GitUtil.isUnderGit(project));
}
Aggregations